Hi Dave,

Currently, you can't add that folder.

Please feel free to raise a Jira.

Raphaël

2007/5/2, Dave Hoffer <[EMAIL PROTECTED]>:
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'

How can I add the trunk folder?

-Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to