Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-alpha-1
-
Component/s: Archetypes
-
Labels:None
-
Number of attachments :
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
| This issue duplicates: | ||||
| ARCHETYPE-65 | Restore the ability to "package" non-Java resources |
|
|
|
| This issue is duplicated by: | ||||
| ARCHETYPE-53 | No longer possible to place non-Java resources into package structure |
|
|
|
Let's keep the more recent one which has been discussed on the dev list.