Hi Khin, How did you manage this problem? I'm trying to do the same thing.
Thanks Thiago Moreira On Fri, Jun 11, 2010 at 11:29 AM, NGUYEN Cong Kinh < cong_kinh.ngu...@it-sudparis.eu> wrote: > Hi everybody, > > I create a maven-archetype as the following: > > - myArchetype > + pom.xml (1) > + src/main/resources > + META-INF... > + archetype-resources > - pom.xml (2) > - src/... > > > > In the second POM (pom.xml - 2) which module will be generated by my > maven-archetype, I want to set the version of one dependency to the same > version with my maven - archetype. Could you any ideas for that? (I tried to > use ${archetypeVersion}, but it seems to me that this isn't correct). > > For example, I define the second POM as following: > > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > > <modelVersion>4.0.0</modelVersion> > <groupId>${groupId}</groupId> > <artifactId>${artifactId}</artifactId> > <packaging>jar</packaging> > <version>${version}</version> > <name>Your custom project</name> > > <dependencies> > <dependency> > <groupId>my groupID</groupId> > <artifactId>my artifactID</artifactId> > <version>what will be placed here ?</version> > </dependency> > </dependencies> > ... > </project> > > > > Thanks in advance, > Kinh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >