Hi,
You might need to update to maven-archetype-plugin 1.0-alpha-4.
Try executing archetype:create w/ '-cpu' argument, to update the plugin...
or, I actually deleted the whole archetype plugin stuff and let maven
redownload the latest version.
ray,
On 5/11/06, Christoph Sandhaus <[EMAIL PROTECTED]> wrote:
Hi!
Sorry for posting to issues first. Once again ... ;)
I try to create an archetype (Maven version: 2.0.4), but I can't solve
package problems.
My project contains the file
src/main/resources/archetype-resources/src/main/java/cfg/Constants.java
which is packaged as java source inside archetype.xml:
<archetype>
<id>jsf</id>
<sources>
<source>src/main/java/cfg/Constants.java</source>
</sources>
The package declaration of Constants.java looks like this:
package ${groupId}.cfg;
I installed my archetype locally (mvn install) and create a sample project:
mvn archetype:create -DarchetypeGroupId=net.sit -DarchetypeArtifactId=jsf
-DarchetypeVersion=0.1 -DgroupId=my.jsf.test -DartifactId=JSF
And now my Constants.java is located inside (watch for 'cfg'):
src/main/java/cfg/my/jsf/test/Constants.java
Why? I expect it to be inside:
src/main/java/my/jsf/test/cfg/Constants.java
Any help would be appreciated!
(Perhaps a more detailed documentation than
http://maven.apache.org/guides/mini/guide-creating-archetypes.html
)
Thanks ...
Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]