DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Generated pom.xml Could Contain Property References to artifactId #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate AMP project: mvn archetype:generate 
-DarchetypeCatalog=http://maven.alfresco.com/nexus/content/repositories/releases
/archetype-catalog.xml

What is the expected output? What do you see instead?
Expected:
    <artifactId>myamp</artifactId>
    ...
    <webapp.name>${artifactId}-webapp</webapp.name>
    ...
    <targetPath>alfresco/module/${artifactId}</targetPath>
    ...

Instead:
    <artifactId>myamp</artifactId>
    ...
    <webapp.name>myamp-webapp</webapp.name>
    ...
    <targetPath>alfresco/module/myamp</targetPath>
    ...

What version of the product are you using? On what operating system?
maven-alfresco-amp-archetype:3.9.0, OS X 10.7.3

Please provide any additional information below.

Very trivial issue.  Users can just find and replace all if they want to change 
the name later, but some may just see artifactId at the top of the pom and 
think that's the only place they need to change it.

Original issue reported on code.google.com by rgau...@gmail.com on 21 Feb 2012 at 7:41

GoogleCodeExporter commented 9 years ago
Fixed on trunk, the generated pom.xml now uses placeholders to refer to 
${project.artifactId}, not hardcoded values  - 
http://code.google.com/p/maven-alfresco-archetypes/source/detail?r=373

Original comment by mauri...@session.it on 4 Apr 2012 at 7:38