Thanks for your help in finding this. I've verified this is a bug:

http://issues.appfuse.org/browse/APF-1177

as well as the the following:

<include>**/*.java</include> (should be removed)

Will be fixed in the next release. In the meantime, you should be able to
workaround this issue by moving the directories up one level.

Matt


On Wed, Dec 2, 2009 at 12:23 AM, johnydz <yanda...@msn.com> wrote:

>
> Capture screen
>
> only "mvn archetype:generate ..." but it still generate double webapp
> directory.
>
> http://n4.nabble.com/file/n932797/s5.png
>
>
>
>
> johnydz wrote:
> >
> >
> > it's very easy to reproduce....
> >
> > see...
> >
> >
> >
> > Microsoft Windows [版本 6.1.7600]
> > 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
> >
> > C:\Users\Yen>mvn archetype:generate -B
> > -DarchetypeGroupId=org.appfuse.archetypes
> >  -DarchetypeArtifactId=appfuse-basic-struts-archetype
> > -DarchetypeVersion=2.1.0-M
> > 1 -DgroupId=com.mycompany -DartifactId=myproject
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building Maven Default Project
> > [INFO]    task-segment: [archetype:generate] (aggregator-style)
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Preparing archetype:generate
> > [INFO] No goals needed for project - skipping
> > [INFO] Setting property: classpath.resource.loader.class =>
> > 'org.codehaus.plexus
> > .velocity.ContextClassLoaderResourceLoader'.
> > [INFO] Setting property: velocimacro.messages.on => 'false'.
> > [INFO] Setting property: resource.loader => 'classpath'.
> > [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> > [INFO] [archetype:generate {execution: default-cli}]
> > [INFO] Generating project in Batch mode
> > [WARNING] No archetype repository found. Falling back to central
> > repository (htt
> > p://repo1.maven.org/maven2).
> > [WARNING] Use -DarchetypeRepository=<your repository> if archetype's
> > repository
> > is elsewhere.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 38,column 26] :
> > ${appfuse.version}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 40,column 34] :
> > ${amp.genericCore}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 41,column 33] :
> > ${amp.fullSource} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 47,column 34] :
> > ${jdbc.groupId} is
> > not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 48,column 37] :
> > ${jdbc.artifactId}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 49,column 34] :
> > ${jdbc.version} is
> > not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 80,column 34] :
> > ${aspectj.version}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 85,column 34] :
> > ${aspectj.version}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 139,column 31] :
> ${skipTests}
> > is no
> > t a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 152,column 34] :
> > ${jdbc.groupId} is
> >  not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 153,column 37] :
> > ${jdbc.artifactId}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 154,column 34] :
> > ${jdbc.version} is
> >  not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 163,column 42] :
> > ${dbunit.dataTypeF
> > actoryName} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 164,column 29] :
> > ${jdbc.driverClass
> > Name} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 165,column 31] :
> > ${jdbc.username} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 166,column 31] :
> > ${jdbc.password} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 167,column 26] : ${jdbc.url}
> > is not
> >  a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 169,column 27] :
> > ${dbunit.operation
> > .type} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 170,column 29] :
> > ${dbunit.schema} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 171,column 27] :
> ${skipTests}
> > is no
> > t a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 193,column 34] :
> > ${jdbc.groupId} is
> >  not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 194,column 37] :
> > ${jdbc.artifactId}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 195,column 34] :
> > ${jdbc.version} is
> >  not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 335,column 22] :
> > ${appfuse.version}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 349,column 33] :
> > ${dao.framework} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 350,column 22] :
> > ${appfuse.version}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 353,column 22] :
> > ${jdbc.groupId} is
> >  not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 354,column 25] :
> > ${jdbc.artifactId}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 355,column 22] :
> > ${jdbc.version} is
> >  not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 360,column 22] :
> > ${displaytag.versi
> > on} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 365,column 22] :
> > ${servlet.version}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 371,column 22] :
> > ${jsp.version} is
> > not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 377,column 22] :
> > ${struts.version}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 382,column 22] :
> > ${struts.version}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 387,column 22] :
> > ${struts.version}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 410,column 22] :
> > ${commons.fileuplo
> > ad.version} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 416,column 22] :
> > ${commons.io.versi
> > on} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 421,column 22] :
> > ${jmock.version} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 427,column 22] :
> > ${jmock.version} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 433,column 22] :
> > ${junit.version} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 439,column 22] :
> > ${spring.version}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 445,column 22] :
> > ${wiser.version} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 497,column 35] :
> > ${cargo.wait} is n
> > ot a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 499,column 46] :
> > ${cargo.container}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 500,column 39] :
> > ${cargo.container.
> > home} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 502,column 42] :
> > ${cargo.container.
> > url} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 503,column 49] :
> > ${installDir} is n
> > ot a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 507,column 39] :
> > ${project.build.di
> > rectory} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 507,column 66] :
> > ${cargo.container}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 509,column 53] :
> > ${cargo.host} is n
> > ot a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 510,column 57] :
> > ${cargo.port} is n
> > ot a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 544,column 72] : ${basedir}
> > is not
> > a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 545,column 61] :
> > ${project.build.fi
> > nalName} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 545,column 102] :
> > ${user.language}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 546,column 89] : ${test} is
> > not a v
> > alid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 547,column 75] :
> > ${user.language} i
> > s not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 548,column 73] :
> > ${project.build.fi
> > nalName} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 549,column 66] :
> > ${cargo.host} is n
> > ot a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 550,column 66] :
> > ${cargo.port} is n
> > ot a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 566,column 42] :
> > ${webtest.version}
> >  is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 602,column 50] : ${db.name}
> > is not
> > a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 616,column 40] : ${db.name}
> > is not
> > a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 629,column 44] : ${db.name}
> > is not
> > a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 656,column 55] : ${db.name}
> > is not
> > a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 673,column 64] : ${db.name}
> > is not
> > a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 684,column 39] :
> > ${env.JBOSS_HOME}
> > is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 721,column 31] :
> > ${env.CATALINA_HOM
> > E} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference :
> > template = archetype-resources/pom.xml [line 740,column 42] : ${db.name}
> > is not
> > a valid reference.
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 6 seconds
> > [INFO] Finished at: Wed Dec 02 13:07:32 CST 2009
> > [INFO] Final Memory: 8M/15M
> > [INFO]
> > ------------------------------------------------------------------------
> > C:\Users\Yen>cd myproject
> >
> > C:\Users\Yen\myproject>cd src
> >
> > C:\Users\Yen\myproject\src>cd main
> >
> > C:\Users\Yen\myproject\src\main>cd java
> >
> > C:\Users\Yen\myproject\src\main\java>cd com
> >
> > C:\Users\Yen\myproject\src\main\java\com>cd mycompany
> >
> > C:\Users\Yen\myproject\src\main\java\com\mycompany>cd webapp
> >
> > C:\Users\Yen\myproject\src\main\java\com\mycompany\webapp>dir
> >  驱动器 C 中的卷没有标签。
> >  卷的序列号是 CC68-69C4
> >
> >  C:\Users\Yen\myproject\src\main\java\com\mycompany\webapp 的目录
> >
> > 2009/12/02  13:07    <DIR>          .
> > 2009/12/02  13:07    <DIR>          ..
> > 2009/12/02  13:07    <DIR>          model
> > 2009/12/02  13:07    <DIR>          webapp
> >                0 个文件              0 字节
> >                4 个目录 31,110,639,616 可用字节
> >
> > C:\Users\Yen\myproject\src\main\java\com\mycompany\webapp>
> >
> >
> >
> > Date: Tue, 1 Dec 2009 21:05:01 -0800
> > From: 
> > ml-node+932786-1877360...@n4.nabble.com<ml-node%2b932786-1877360...@n4.nabble.com>
> > To: yanda...@msn.com
> > Subject: Re: [appfuse-user] It Maybe a bug?
> >
> > Can you please provide the steps to reproduce this, starting with
> creating
> > the archetype and ending with seeing the duplicate classes?
> >
> > I need to reproduce the bug before I can fix it. ;-)
> >
> > Thanks,
> >
> > Matt
> >
> >
> > On Tue, Dec 1, 2009 at 4:56 AM, johnydz <[hidden email]> wrote:
> >
> >
> > duplication in test directory
> >
> > http://n4.nabble.com/file/n932071/show3.png
> >
> >
> >
> >
> >
> >
> > johnydz wrote:
> >>
> >> in pom.xml
> >>
> >>
> >>
> >> <resource>
> >>                 <directory>src/main/java</directory>
> >>                 <includes>
> >>                     <!--include>**/*.java</include-->
> >>                     <include>**/*.xml</include>
> >>                 </includes>
> >>             </resource>
> >>
> >> johnydz wrote:
> >>>
> >>>
> >>> i dont know why include **/*.java
> >>>
> >>> both .class and .java is my fualt,forget it
> >>>
> >>> johnydz wrote:
> >>>>
> >>>> I do not know whether  it is an individual problem,there are both
> >>>> .class
> >>>> and .java files in war file.
> >>>>
> >>>>
> >>>>
> >>>> johnydz wrote:
> >>>>>
> >>>>> and some validation.xml file in the java directory,
> >>>>>
> >>>>> they should be in the resources directory
> >>>>>
> >>>>>
> >>>>>
> >>>>> johnydz wrote:
> >>>>>>
> >>>>>> it did not happen on appfuse 2.0.2
> >>>>>>
> >>>>>> it must be something wrong
> >>>>>>
> >>>>>>
> >>>>>> johnydz wrote:
> >>>>>>>
> >>>>>>>  http://n4.nabble.com/file/n931944/show1.png
> >>>>>>>
> >>>>>>> In the war package 's WEB-INF\classes
> >>>>>>> directory,packagename.webapp.webapp is  duplication
> >>>>>>>
> >>>>>>>  http://n4.nabble.com/file/n931944/show2.png
> >>>>>>>
> >>>>>>> also in the src/main/java directory, packagename.webapp.webapp is
> >>>>>>> duplication
> >>>>>>>
> >>>>>>> maybe something is wrong?
> >>>>>>>
> >>>>>>> thanks!
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> > --
> > View this message in context:
> > http://n4.nabble.com/It-Maybe-a-bug-tp931944p932071.html
> >
> >
> >
> > Sent from the AppFuse - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
> >
> >
> >
> >
> >
> > View message @ http://n4.nabble.com/It-Maybe-a-bug-tp931944p932786.html
> > To unsubscribe from Re: It Maybe a bug?, click here.
> >
> > _________________________________________________________________
> > 约会说不清地方?来试试微软地图最新msn互动功能!
> > http://ditu.live.com/?form=TL&swm=1
> >
>
> --
> View this message in context:
> http://n4.nabble.com/It-Maybe-a-bug-tp931944p932797.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to