Re: How to take archetypeVersion in archetype-resources ?
Hi Thiago, I'm sorry. Until now I don't solve it. Kinh Quoting Thiago Moreira (timba) tmoreira2...@gmail.com: 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; modelVersion4.0.0/modelVersion groupId${groupId}/groupId artifactId${artifactId}/artifactId packagingjar/packaging version${version}/version nameYour custom project/name dependencies dependency groupIdmy groupID/groupId artifactIdmy artifactID/artifactId versionwhat 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to take archetypeVersion in archetype-resources ?
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; modelVersion4.0.0/modelVersion groupId${groupId}/groupId artifactId${artifactId}/artifactId packagingjar/packaging version${version}/version nameYour custom project/name dependencies dependency groupIdmy groupID/groupId artifactIdmy artifactID/artifactId versionwhat 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
How to take archetypeVersion in archetype-resources ?
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; modelVersion4.0.0/modelVersion groupId${groupId}/groupId artifactId${artifactId}/artifactId packagingjar/packaging version${version}/version nameYour custom project/name dependencies dependency groupIdmy groupID/groupId artifactIdmy artifactID/artifactId versionwhat 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