I have created Archetype for my project using link http://maven.apache.org/guides/mini/guide-creating-archetypes.html. My new pom looks like <project> <modelVersion>4.0.0</modelVersion> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <packaging>jar</packaging> <version>${version}</version> <name>A custom project</name> <url>http://www.myorganization.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> When I am creating new project from my Archetype i pass parameters ${groupId}, ${artifactId} and ${version} using command line and everything is ok. But I don't know how to pass an additional parameter for example projectname, so I can use it in my new pom like this: <project> <modelVersion>4.0.0</modelVersion> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <packaging>jar</packaging> <version>${version}</version> <name>${projectname}</name> <url>http://www.myorganization.org</url> I tried to pass it using command line -Dprojectname = HelloWorld. Didn't work. I tried to do it using archetype-metadata.xml. <requiredProperties> <requiredProperty key="projectname" /> </requiredProperties> It supposed to ask me when creating for projectname but it didn't work either. -- View this message in context: http://www.nabble.com/passing-parameters-to-plugin-Archetype-tp16807963s177p16807963.html Sent from the Maven - Users mailing list archive at Nabble.com.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
