[ http://jira.codehaus.org/browse/ARCHETYPE-21?page=comments#action_68490 ] 

Julian Wood commented on ARCHETYPE-21:
--------------------------------------

You can just checkout our archetype.

svn checkout http://apollo.ucalgary.ca:8800/lc-webapp-archetype/trunk 
lc-webapp-archetype

archetype.xml looks like this:

<archetype>
  <id>lc-webapp</id>
  
  <!--<sources>-->
    <!--<source>trunk/src/main/java/App.java</source>-->
  <!--</sources>-->

  <!--<testSources>-->
    <!--<source>src/test/java/AppTest.java</source>-->
  <!--</testSources>-->
  <!---->
  <!--<testResources>-->
        <!--<resource>src/test/resources/users.xml</resource>-->
  <!--</testResources>-->

    <resources>
        <resource>tags/readme.txt</resource>
        <resource>branches/readme.txt</resource>

        <!-- we don't want this here, but it is a requirement -->
        <resource>pom.xml</resource>

        <resource>trunk/pom.xml</resource>
        <resource>trunk/license.txt</resource>
        <resource>trunk/src/main/java/App.java</resource>
        <resource>trunk/src/test/java/AppTest.java</resource>
        <resource>trunk/src/test/resources/users.xml</resource>

        <resource>trunk/src/main/webapp/index.jsp</resource>
        <resource>trunk/src/main/webapp/WEB-INF/web.xml</resource>
        <resource>trunk/src/main/resources/users.xml</resource>
        <resource>trunk/src/main/filters/build.dev.properties</resource>
        <resource>trunk/src/main/filters/build.uc.properties</resource>
        <resource>trunk/src/site/site.xml</resource>
        <resource>trunk/src/site/changes.xml</resource>
        <resource>trunk/src/site/apt/syntax.apt</resource>
        <resource>trunk/src/site/fml/faq.fml</resource>
        <resource>trunk/src/site/resources/css/site.css</resource>

        <resource 
filtered="false">trunk/src/site/resources/documents/SRS.doc</resource>
        <resource 
filtered="false">trunk/src/site/resources/documents/WSD.doc</resource>
        <resource 
filtered="false">trunk/src/site/resources/images/lc_logo8.png</resource>
    </resources>
    
</archetype>

I think things have changed a bit with the latest archetype. What happens now 
is that a src/main/resources directory is made, though I only want 
trunk/src/main/resources. Also, you need to have a pom.xml at the root level 
(whereas I want it in the trunk), otherwise the archetype command will fail, 
though the archetype itself builds without problem. So I have a placeholder 
pom.xml.


> Unecessary java directory creation
> ----------------------------------
>
>          Key: ARCHETYPE-21
>          URL: http://jira.codehaus.org/browse/ARCHETYPE-21
>      Project: Maven Archetype
>         Type: Improvement

>   Components: Plugin
>     Reporter: Eric Redmond
>     Assignee: Jason van Zyl
>     Priority: Trivial

>
>
> Whether specified in the archetype.xml or not, the plugin will generate the 
> path /src/main/java if <source> tags are used. It would be nice if it only 
> honored the specified source dirs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to