Sean, thanks for the answer but that part works ok. When I embed variable1 it
is used by my plugin.
I would like to pass the value of the variable1 through command line when I create project using
archetype.
Does anybody knows if it is possible?
Sean Hennessy wrote:
The element <variable1> is not defined in the POM schema (xsd)
http://maven.apache.org/maven-model/maven.html
Maybe..
<property>
<name>variable1</name>
<value>${variable1Value}</value>
</property>
-----Original Message-----
From: Nitko2 [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 03, 2005 7:29 AM
To: Maven Users List
Subject: [m2]Archetype variables
Hi!
Is it possible to include variables in archetype pom.xml template?
I created pom.xml which includes this part:
<configuration>
<variable1>${variable1}</variable1>
</configuration>
and I tried to fill it with -D like this
mvn archetype:create
-DarchetypeGroupId=my-plugins
-DarchetypeArtifactId=my-simple-archetype
-DarchetypeVersion=1.0
-DgroupId=mygroupid
-DartifactId=myartifactId
-Dvariable1=variable1Value
but I get the message that variable1 is not a valid message.
Thanks,
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]