Maven Archetype

Dynamic archetype resource

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0-alpha-1
  • Component/s: Archetypes
  • Labels:
    None
  • Number of attachments :
    0

Description

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

Issue Links

Activity

Hide
Wendy Smoak added a comment -

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

Show
Wendy Smoak added a comment - Let's keep the more recent one which has been discussed on the dev list.
Hide
Raphaël Piéroni added a comment -

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

Show
Raphaël Piéroni added a comment - These issues are addressed since the 2.0-alpha-n version of the plugin

People

  • Assignee:
    Unassigned
    Reporter:
    tm_jee
Vote (3)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: