apache / apache/maven-archetype

[ARCHETYPE-604] create-from-project: resource files with name containing custom property value not included in new project

Open
#837 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

**[Dietrich Schulten](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dschulten)** opened **[ARCHETYPE-604](https://issues.apache.org/jira/browse/ARCHETYPE-604?redirect=false)** and commented

I have a project with a shell script whose file name contains a custom property value.

 

The name of the shellscript:

_start-myproject-with-secrets.sh_

 

Inside _archetype.properties_

serviceName=myproject

 

When I run archetype:create-from-project, a file start-__serviceName__-with-secrets.sh is created in the archetype, but that file does not end up in new projects created from the archetype because the generated archetype-metadata.xml still contains the unchanged file name start_myproject-with-secrets.sh:

 

```java



.gitattributes
.gitignore
Dockerfile
mvnw
mvnw.cmd
start-myproject-with-secrets.sh

```

 

 

---
No further details from [ARCHETYPE-604](https://issues.apache.org/jira/browse/ARCHETYPE-604?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the archetype:create-from-project flow and the generated archetype-metadata.xml shown in the report. Trace how the shell script filename is transformed when the custom property is applied, then create a new project from the archetype and verify that start-myproject-with-secrets.sh is included.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, shell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.