You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Milos Kleint (JIRA)" <ji...@codehaus.org> on 2008/02/22 10:09:28 UTC
[jira] Commented: (ARCHETYPE-136) Add the possibility to generate
resources using the package variable
[ http://jira.codehaus.org/browse/ARCHETYPE-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124639 ]
Milos Kleint commented on ARCHETYPE-136:
----------------------------------------
this is already possible with the current 2.0-alpha-1
check
http://svn.codehaus.org/mojo/trunk/mojo/mojo-archetypes/nbm-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
as an example how to do it.. it will not work with 1.x version of archetype plugin though..
> Add the possibility to generate resources using the package variable
> --------------------------------------------------------------------
>
> Key: ARCHETYPE-136
> URL: http://jira.codehaus.org/browse/ARCHETYPE-136
> Project: Maven Archetype
> Issue Type: Improvement
> Affects Versions: 2.0-alpha-2
> Reporter: Dominique Jean-Prost
>
> Actually, the sources files are generated in filesystem using the package variable. Resources are not. Add the possibility to get resources in filesystem using package variable too.
> Example :
> with package = com.foo
> and
> <archetype>
> <id>foo</id>
> <sources>
> <source>src/main/java/App.java</source>
> </sources>
> <resources>
> <resource> src/main/resources/i18n_FR.properties</resource>
> </resources>
> </archetype>
> App.java is created in dir /src/main/java/com/foo/App.java
> i18n_FR.properties is created in /src/main/resources/i18n_FR.properties. I would like to have this properties file in /src/main/resources/com/foo/i18n_FR.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