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

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

    Component/s:     (was: Plugin)
            Key: MARCHETYPES-9  (was: ARCHETYPE-218)
        Project: Maven Archetype Bundles  (was: Maven Archetype)

> Setting required properties when instantiating archetype from execution in 
> pom.xml
> ----------------------------------------------------------------------------------
>
>                 Key: MARCHETYPES-9
>                 URL: http://jira.codehaus.org/browse/MARCHETYPES-9
>             Project: Maven Archetype Bundles
>          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