I think my problem is that I have one hierarchy more than a multi module 
project usually has. The artifactId in the upper level (customer) will be 
replaced with the id I enter during the generation. But I also would like to 
replace the name of the artifactId in the second level - PROJECT. 

In the first step I use the artifactId Template for the top level and PROJECT 
for the second level. Then I use the goal create-from-project and get my 
archetype. Here I execute the changes: I replace PROJECT with ${project} in the 
both POMs. After installing and generating the project with the property 
archetype.properties I get the new project. The string ${project} hasn´t been 
replaced.

Can the problem stick together with to the message which I get during the 
generating:
Parent element not overwritten in C:\tmp\archetype\CUSTOMER\PROJECT\pom.xml 
Is there a possibility to force the replacing? The attribute filtered="true" in 
the archetype descriptor is set.


-----Ursprüngliche Nachricht-----
Von: lukewpatterson [mailto:lukewpatter...@gmail.com] 
Gesendet: Freitag, 5. November 2010 16:20
An: users@maven.apache.org
Betreff: Re: How to set some variables in archetypes?



Sonja Stocker wrote:
> 
> Ive tried it with 
> <modules>
>     <module>${project}</module>
> </modules>
> in the upper POM and using archetype.properties where this property was
> declared: project=PROJECTNAME. But it didnt work. 
> 

Just to clarify, are you saying that "${project}" wasn't replaced with the
value of the archetype-gathered property?  Or are you fighting a problem
with folder names matching up with module names?
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-set-some-variables-in-archetypes-tp3251703p3251980.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to