You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Hoffer (JIRA)" <ji...@codehaus.org> on 2007/05/02 15:08:26 UTC

[jira] Created: (ARCHETYPE-71) Allow for more flexable directory strucuture in custom archetype

Allow for more flexable directory strucuture in custom archetype
----------------------------------------------------------------

                 Key: ARCHETYPE-71
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-71
             Project: Maven Archetype
          Issue Type: Improvement
    Affects Versions: 1.0-alpha-4
         Environment: XP Pro SP2
            Reporter: David Hoffer


The process given for creating a custom archetype seems limiting and confusing.

I want the standard maven directory layout but in addition I want to add higher level folders called trunk & tags this way my new artifact projects will be configured correctly for VCS usage.  (The maven build usage of this will be in the trunk folder so we do use the standard maven layout.)

The docs say that these elements represent different sections of the project, what is not clear is if these are hard coded paths or if these have this path because the archetype descriptor defines them this way.
If they are hard coded it makes no sense for the path to be included in the descriptor file, which it is.
* <sources> = src/main/java
* <resources> = src/main/resources
* <testSources> = src/test/java
* <testResources> = src/test/resources
* <siteResources> = src/site 

Here is my descriptor:
<archetype>
    <id>xrite-archetype-default</id>
    <sources>
        <source>trunk/src/main/java/App.java</source>
    </sources>
    <testSources>
        <source>trunk/src/test/java/AppTest.java</source>
    </testSources>
    <resources>
        <resource>trunk/src/site/site.xml</resource>
        <resource>trunk/src/site/apt/overview.apt</resource>
        <resource>trunk/src/site/fml/faqs.fml</resource>
    </resources>
</archetype>

Although my files do have this layout pattern when I run this archetype I an error "Template 'trunk/src/main/java/App.java' not in directory 'src/main/java'

This should be supported.



-- 
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