[ 
http://jira.codehaus.org/browse/ARCHETYPE-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy moved MARCHETYPES-9 to ARCHETYPE-313:
---------------------------------------------------

        Key: ARCHETYPE-313  (was: MARCHETYPES-9)
    Project: Maven Archetype  (was: Maven Archetype Bundles)

> Setting required properties when instantiating archetype from execution in 
> pom.xml
> ----------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-313
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-313
>             Project: Maven Archetype
>          Issue Type: Improvement
>            Reporter: Florian Motlik
>            Priority: Minor
>         Attachments: patch, pom.xml
>
>
> When calling archetype:generate from an execution in the pom there is no 
> possibility to set required properties of the Archetype. So when for testing 
> purposes you are trying to use the archetype for creating a new project, 
> package and compile it it won't work, because required properties are not 
> set. Workaround would be to define default values for all required fields, 
> but this is a NoGo.
> A solution for the Problem would be to have an environment String in the 
> CreateProjectFromArchetypeMojo Class which points to a Properties File. This 
> Properties file contains the correct values for the Archetype. They are 
> loaded into executionProperties, so as if they were given over command line. 
> If no environment is given they are simply not loaded.

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