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