On 9/3/06, tm jee <[EMAIL PROTECTED]> wrote:
Is there a way allow resource generated by maven archetype to change dynamically.
...
The files under the generated resources directory seems to be static. It doesn't seems to change accordingly with the -DgroupId argument passed in. Is there a way to configured it to change according to the groupId?
Apparently not. In a prior version of Maven Archetype, you could put non-Java files in the <sources> section, and it would put them in the proper package structure. There are some notes in the Shale Blank archetype.xml file [1]. It probably needs to be raised in Maven's JIRA. I haven't filed it, let me know the issue number if you do. <!-- The next line causes an error with 'mvn archetype:create': Embedded error: Template 'src/main/resources/Bundle.properties' not in directory 'src/main/java' --> <!--source>src/main/resources/Bundle.properties</source--> ... <!-- See above, but here, Bundle.properties does not get placed in the package structure --> <resource>src/main/resources/Bundle.properties</resource> (And it's actually packageName, though that will default to groupId if you don't specify it.) [1] http://svn.apache.org/repos/asf/shale/maven/trunk/archetypes/shale-archetype-blank/src/main/resources/META-INF/archetype.xml -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]