Issue Details (XML | Word | Printable)

Key: ARCHETYPE-54
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: tm_jee
Votes: 3
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Maven Archetype

Dynamic archetype resource

Created: 04/Sep/06 12:53 AM   Updated: 25/Mar/08 06:44 PM   Resolved: 25/Mar/08 06:44 PM
Component/s: Archetypes
Affects Version/s: None
Fix Version/s: 2.0-alpha-1

Time Tracking:
Not Specified

Issue Links:
Duplicate


 Description  « Hide

It would be nice if the following could be done

eg.
mvn archetype:create -DgroupId=com.myComp -DartifactId=myApp -DarchetypeGroupId=.... -DarchetypeArtifactId=....

with META-INF/archetype.xml

<sources>
<source>src/main/java/HelloWorldAction.java</source>
</sources>
<resources>
<resource>src/main/resources/someProperty.properties</resource>
</resources>

The generated template will have
src/main/java/com/myComp/HelloWorldAction.java
src/main/resources/someProperty.properties

A nice improvement would be to be able to allow (selectively) eg. someProperty.properties to be "package" aware as well, maybe with

<resources>
<resource packageAware="true">src/main/resources/someProperty.properties</resource>
</resources>

someProperty.properties coudl be generated at

src/main/resources/com/myComp/someProperty.properties



Wendy Smoak added a comment - 08/Mar/07 12:43 PM

Let's keep the more recent one which has been discussed on the dev list.


Raphaël Piéroni added a comment - 25/Mar/08 06:44 PM

These issues are addressed since the 2.0-alpha-n version of the plugin