It works if I modify the following files in my local repository. It's a bad
thing to do, I know, but otherwise it won't work at all:
1) maven-archetype-j2ee-simple-1.0-alpha-4.jar\archetype-resources\pom.xml:
modules
moduleprojects/module
moduleprimary-source/module
moduleservlets/module
moduleejbs/module
moduleear/module
!-- modulesite/module --
/modules
2) maven-archetype-j2ee-simple-1.0-alpha-4.jar\META-INF\archetype.xml:
resources
resourcepom.xml/resource
resourceear/pom.xml/resource
resourceejbs/src/main/resources/META-INF/ejb-jar.xml/resource
resourceejbs/pom.xml/resource
resourceprimary-source/pom.xml/resource
resourceprojects/logging/pom.xml/resource
resourceprojects/pom.xml/resource
resourceservlets/pom.xml/resource
resourceservlets/servlet/pom.xml/resource
resourceservlets/servlet/src/main/webapp/index.jsp/resource
resourceservlets/servlet/src/main/webapp/WEB-INF/web.xml/resource
!-- resourcesite/pom.xml/resource
resourcesite/src/site/site.xml/resource
resourcesite/src/site/apt/site.apt/resource --
/resources
After I did that, the j2ee project was created and also a 'mvn install' worked
fine.
_ ___ _
//\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
`-`
Andreas Ebbert-Karroum
Senior Software Design Engineer
Nokia Networks Services / Middleware
phone: +49-211-94123928, fax: +49-211-9412-3838
Heltorfer Straße 1, 40472 Düsseldorf, Germany
--
This message is confidential. If you have received this message in error,
please delete it from your system. You should not copy it for any purpose, or
disclose its contents to any other person. Internet communications are not
secure and therefore Nokia GmbH does not accept legal responsibility for the
contents of this message as it has been transmitted over a public network.
Thank you.
Nokia GmbH, Nokia Networks is a German Company. Further information about the
Company is available from its principal offices at Heltorferstrasse 1, D-40472,
Düsseldorf, Germany and from the website at http://www.nokia.com/
--
-Original Message-
From: ext
[EMAIL PROTECTED]
ry.dev.java.net
[mailto:[EMAIL PROTECTED]
repository.dev.java.net]
Sent: 25 July, 2006 21:27
To: [EMAIL PROTECTED]
Subject: does the maven-archetype-j2ee-simple work?
Question as in the subject.
This is how I invoked it:
mvn archetype:create
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-j2ee-simple
-DarchetypeVersion=1.0-alpha-4
-DgroupId=ossj.jsr264
-DartifactId=oss_om_ri
And this is the error in the output:
###
#
[INFO] ResourceManager : found
archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml
with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[ERROR] ResourceManager : unable to find resource
'archetype-resources/site/pom.xml' in any resource loader.
[INFO]
---
-
[ERROR] BUILD ERROR
[INFO]
---
-
[INFO] Error creating from archetype
Embedded error: Error processing templates.
Unable to find resource 'archetype-resources/site/pom.xml'
###
#
Indeed, if I take a look into the jar file from
http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven
-archetype-j2ee-simple/1.0-alpha-4/maven-archetype-j2ee-simple-
1.0-alpha-4.jar
* the archetype-resources\pom.xml refers to the site project:
modules
moduleprojects/module
moduleprimary-source/module
moduleservlets/module
moduleejbs/module
moduleear/module
modulesite/module
/modules
* there is no such project as archetype-resources\site
Also, I could not find a bug report for it at
http://jira.codehaus.org/browse/ARCHETYPE. Is it really a bug,
or am I doing something wrong?
_ ___ _
//\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
`-`
Andreas Ebbert-Karroum
Senior Software Design Engineer
Nokia Networks Services / Middleware
phone: +49-211-94123928, fax: +49-211-9412-3838
Heltorfer Straße 1, 40472 Düsseldorf, Germany
--
This message is confidential. If you have received this
message in error, please delete it from your system. You
should not copy it for any purpose, or disclose its contents
to any other person