I don't understand where the archetype/test directories came from:
<blockquote>
<pre>
Java6TestProjectFromAboveArcheType
| Java6TestArtifactFromArcheType.txt
| pom.xml
|
\---src
+---main
| \---java
| \---com
| \---mooo
| \---archetype <-- ****Where did this come from?****
| \---test
| App.java
|
\---test
\---java
\---com
\---mooo
\---archetype <-- ****Where did this come from?****
\---test
AppTest.java
</pre>
</blockquote>
I was actually expecting it to turn out more like the following:
(note that the archetype/test directories are both gone)
<blockquote>
<pre>
Java6TestProjectFromAboveArcheType
| Java6TestArtifactFromArcheType.txt
| pom.xml
|
\---src
+---main
| \---java
| \---com
| \---mooo
| App.java
|
\---test
\---java
\---com
\---mooo
AppTest.java
</pre>
</blockquote>
Again thank you,
I appreciate the help,
Andrew J. Leer
On 8/30/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Everything looks right/good to me.
>
> What exactly is wrong, from your perspective? Its not clear what
> you're getting vs what you expect to get.
>
> Wayne
>
> On 8/29/07, Andrew Leer <[EMAIL PROTECTED]> wrote:
> > See:
> >
> > http://docs.codehaus.org/download/attachments/37533/MavenArchTypes_Template_N_Result2.zip
> >
> > For full code of Archetype and resulting project from Archetype.
> >
> > Thank you,
> >
> > Andrew J. Leer
> >
> > <quote author="Andrew Leer-2">
> > Hello, I am trying to make an archtype in mvn2.
> >
> > My Archetype project has the following directory structure:
> >
> > <blockquote>
> > <pre>
> > Java6ArchetypeProjectRoot
> > | Java6ArchetypeProject.txt
> > | pom.xml
> > | pom.xml~
> > |
> > +---src
> > | \---main
> > | \---resources
> > | +---archetype-resources
> > | | | pom.xml
> > | | |
> > | | \---src
> > | | +---main
> > | | | \---java
> > | | | App.java
> > | | |
> > | | \---test
> > | | \---java
> > | | AppTest.java
> > | |
> > | \---META-INF
> > | \---maven
> > | archetype.xml
> > | archetype.xml~
> > |
> > \---target
> > | maven-archetype-java-6-1.0-SNAPSHOT.jar
> > |
> > \---classes
> > +---archetype-resources
> > | | .pom.xml.swp
> > | | pom.xml
> > | |
> > | \---src
> > | +---main
> > | | \---java
> > | | App.java
> > | |
> > | \---test
> > | \---java
> > | AppTest.java
> > |
> > \---META-INF
> > \---maven
> > archetype.xml
> >
> > </pre>
> > </blockquote>
> >
> > I then installed the new Archetype in the repository using "mvn install".
> >
> >
> > When I attempt to generate the project using the command:
> >
> > <blockquote>
> > <pre>
> > mvn archetype:create
> > -DarchetypeGroupId=com.mooo.mv.archetype.compilerversion
> > -DarchetypeArtifactId=maven-archetype-java-6
> > -DarchetypeVersion=1.0-SNAPSHOT
> > -DgroupId=com.mooo.archetype.test
> > -DartifactId=Java6TestArtifact
> > </pre>
> > </blockquote>
> >
> >
> > I receive the following "flawed" directory structure:
> > (flawed mainly because of the placement of AppTest.java in
> > src\main\java\moo\archetype\test\AppTest.java
> >
> > <blockquote>
> > <pre>
> > Java6TestProjectFromAboveArcheType
> > | Java6TestArtifactFromArcheType.txt
> > | pom.xml
> > |
> > \---src
> > +---main
> > | \---java
> > | \---com
> > | \---mooo
> > | \---archetype
> > | \---test
> > | App.java
> > |
> > \---test
> > \---java
> > \---com
> > \---mooo
> > \---archetype
> > \---test
> > AppTest.java
> >
> > </pre>
> > </blockquote>
> >
> > My archetype.xml looks like the following:
> >
> > <pre>
> > <blockquote><archetype>
> > <id>maven-archetype-java-6</id>
> >
> > <sources>
> > <source>src/main/java/App.java</source>
> > </sources>
> > <testSources>
> > <source>src/test/java/AppTest.java</source>
> > </testSources>
> > <!--
> > Allows archetype:create to be
> > called on an existing project.
> > -->
> > <allowPartial>true</allowPartial>
> > </archetype>
> > </blockquote>
> > </pre>
> >
> > Thank you,
> > Andrew J. Leer
> >
> > P.S. Thank the DOS "tree" command for generating that directory
> > structure for me.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > </quote>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]