apache / apache/maven-archetype

[ARCHETYPE-547] triple underlines

Open
#821 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
148
Forks
181
Avg merge
1d 20h
Merged PRs (30d)
8

Description

**[Dorin Brage](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dorin.brage@gmail.com)** opened **[ARCHETYPE-547](https://issues.apache.org/jira/browse/ARCHETYPE-547?redirect=false)** and commented

Let's say you have the next path

```java
/src/main/resources/50____rootArtifactId__.ui/
|---local___rootArtifactId__.properties
|---prod___rootArtifactId__.properties
```

I want to achieve 

 

```java
/src/main/resources/50_demoApp.ui/
|---local_demoApp.ui.properties
|---prod_demoApp.ui.properties
```

The console output

 

```java
[WARNING] Property '_rootArtifactId' was not specified, so the token in 'src/main/resources/////50___rootArtifactId__.ui/local___rootArtifactId__.properties
```

 

Workaround 

Avoid adding as a prefix/suffix extra underlines

```java
50.__rootArtifactId__.ui
```

 

---

**Affects:** 3.0.1

1 votes, 2 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the shown /src/main/resources/50____rootArtifactId__.ui/ layout and compare it with the 50_demoApp.ui/ target layout. Start by tracing Maven Archetype's resource-path token processing and verify that extra underscores are preserved correctly while _rootArtifactId is substituted without producing the warning's malformed path.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.