You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Florian Motlik (JIRA)" <ji...@codehaus.org> on 2008/10/26 10:23:51 UTC
[jira] Created: (ARCHETYPE-218) Setting required properties when
instantiating archetype from execution in pom.xml
Setting required properties when instantiating archetype from execution in pom.xml
----------------------------------------------------------------------------------
Key: ARCHETYPE-218
URL: http://jira.codehaus.org/browse/ARCHETYPE-218
Project: Maven Archetype
Issue Type: Improvement
Components: Plugin
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
[jira] Moved: (ARCHETYPE-313) Setting required properties when
instantiating archetype from execution in pom.xml
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Moved: (MARCHETYPES-9) Setting required properties when
instantiating archetype from execution in pom.xml
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ 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