this is my archetype version
build
extensions
extension
groupIdorg.apache.maven.archetype/groupId
artifactIdarchetype-packaging/artifactId
version2.0-alpha-3/version
/extension
/extensions
plugins
plugin
artifactIdmaven-archetype-plugin/artifactId
version2.0-alpha-3/version
extensionstrue/extensions
/plugin
/plugins
/build
when i create new project in the directory of the pom file that packaging is
pom. it will generate the module element in the parent pom and the parent
element in the submodule pom.
quarph
2008-08-08
发件人: [EMAIL PROTECTED]
发送时间: 2008-08-07 19:50:24
收件人: users@maven.apache.org
抄送:
主题: Re: Looking for MultiModule Archetype (Packaging POM)
Jep.
I already tried this in a shell script. Which results in an error that project
pom is not of type pom. I tried to pass -Dpackaging=pom while creating that
project.
Archetype is a useless plugin without that feature. I was looking also at the
maling list on that issue for last year with no luck. I found some outdated
Docu on the Archetypes.
My solutions works like this:
create all projects on same directory level.
copy projects which depends on POM package into subdirectory
modify the pom packaging element for that project(s).
But it would be fine if archetype would support -Dpackaging=pom|jar|ejb| and so
on
thx anyway,
Jens
here is my solution
1.mvn -DgroupId=org.quarph -DartifactId=myproject archetype:create
2.delete the src directory in the newly created module
3.edit pom.xml and change packaging to pom instead of jar
4.navigate to the myproject directory
5.mvn -DgroupId=org.quarph -DartifactId=myproject-module-1 archetype:create
maybe someone has a better way!
quarph
2008-08-07
发件人: [EMAIL PROTECTED]
发送时间: 2008-08-07 17:30:04
收件人: users@maven.apache.org
抄送:
主题: Looking for MultiModule Archetype (Packaging POM)
Which is a Multi Module Archetype ? I need to create Subprojects. Is there some
template ?
1: internal - appfuse-basic-jsf (AppFuse archetype for creating a web
application with Hibernate, Spring and JSF)
2: internal - appfuse-basic-spring (AppFuse archetype for creating a web
application with Hibernate, Spring and Spring MVC)
3: internal - appfuse-basic-struts (AppFuse archetype for creating a web
application with Hibernate, Spring and Struts 2)
4: internal - appfuse-basic-tapestry (AppFuse archetype for creating a web
application with Hibernate, Spring and Tapestry 4)
5: internal - appfuse-core (AppFuse archetype for creating a jar application
with Hibernate and Spring and XFire)
6: internal - appfuse-modular-jsf (AppFuse archetype for creating a modular
application with Hibernate, Spring and JSF)
7: internal - appfuse-modular-spring (AppFuse archetype for creating a
modular application with Hibernate, Spring and Spring MVC)
8: internal - appfuse-modular-struts (AppFuse archetype for creating a
modular application with Hibernate, Spring and Struts 2)
9: internal - appfuse-modular-tapestry (AppFuse archetype for creating a
modular application with Hibernate, Spring and Tapestry 4)
10: internal - maven-archetype-j2ee-simple (A simple J2EE Java application)
11: internal - maven-archetype-marmalade-mojo (A Maven plugin development
project using marmalade)
12: internal - maven-archetype-mojo (A Maven Java plugin development
project)
13: internal - maven-archetype-portlet (A simple portlet application)
14: internal - maven-archetype-profiles ()
15: internal - maven-archetype-quickstart ()
16: internal - maven-archetype-site-simple (A simple site generation
project)
17: internal - maven-archetype-site (A more complex site project)
18: internal - maven-archetype-webapp (A simple Java web application)
19: internal - struts2-archetype-starter (A starter Struts 2 application
with
Sitemesh, DWR, and Spring)
20: internal - struts2-archetype-blank (A minimal Struts 2 application)
21: internal - struts2-archetype-portlet (A minimal Struts 2 application
that
can be deployed as a portlet)
22: internal - struts2-archetype-dbportlet (A starter Struts 2 portlet that
demonstrates a simple CRUD interface with db backing)
23: internal - struts2-archetype-plugin (A Struts 2 plugin)
24: internal - shale-archetype-blank (A blank Shale web application with
JSF)
25: internal - maven-adf-archetype (Archetype to ease the burden of creating
a new application based with ADF)
26: internal - data-app (A new Databinder application with sources and
resources.)
27: internal - jini-service-archetype (Archetype for Jini service project
creation)
28: internal - softeu-archetype-seam (JSF+Facelets+Seam Archetype)
29: internal - softeu-archetype-seam-simple (JSF+Facelets+Seam (no
persistence) Archetype)
30: internal - softeu-archetype-jsf (JSF+Facelets Archetype)
31: internal - jpa-maven-archetype (JPA application)
32: internal - spring-osgi-bundle-archetype (Spring