Dynamic archetype resource
--------------------------

                 Key: ARCHETYPE-54
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-54
             Project: Maven Archetype
          Issue Type: Improvement
          Components: Archetypes
            Reporter: tm_jee


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





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to