[ http://jira.codehaus.org/browse/MNG-490?page=all ]

Rahul Thakur updated MNG-490:
-----------------------------

    Attachment: DefaultArchetype.diff

DefaultArchetype now overrides defaults if following are specified in the POM 
template: 
- source directory
- test source directory
- resources director(y/ies)
- test resource director(y/ies)
- script source directory

Re. Overriding the default archetype resource location within the archetype JAR 
An alternative  to do this would be to have a tag, say <directory>, in the 
archetype descriptor that points to the location under which all the archetype 
resources are sitting. This, however, hasn't been implemented as this would 
require change in method signature for processTemplate() in DefaultArchetype 
class. 


> Creating an archetype with a different folder structure for java and test 
> sources still results in default (src/main/java) folder being generated.
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-490
>          URL: http://jira.codehaus.org/browse/MNG-490
>      Project: Maven 2
>         Type: Bug
>  Environment: Windows XP, JDK 1.5.0, Maven2 SVN 
>     Reporter: Rahul Thakur
>      Fix For: 2.0-beta-1
>  Attachments: DefaultArchetype.diff
>
>
> Creating an archetype with a different folder structure for java and test 
> sources still results in default (src/main/java) folder being generated, even 
> though these are being created empty.
> I created an archetype and need to follow a set folder structure (all java 
> sources to sit under folder "src" and tests under "test" folder respectively)
> Also the Archetype plugin makes an assumption that the archetype resources 
> will always reside under "archetype-resources/". User should be able to 
> override this and specify a custom name. 

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


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

Reply via email to