DepMgt is the right way...
-----Original Message-----
From: simon [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2008 4:14 PM
To: Maven Users List
Subject: Re: dependencyManagement, pluginManagement, artifactManagement?
I expect you can define a property in a parent pom and reference it from
a child:
<properties>
<myArtifactVersion>1.2.3</myArtifactVersion>
</properties>
then later
<version>${myArtifactVersion}</version>
Is this not enough?
Regards, Simon
On Fri, 2008-03-14 at 14:07 -0600, deckrider wrote:
> Hi,
>
> I have the following two snippets in my pom.xml, but what I really
> want to do is define the version of my-artifact in something like
> 'dependencyManagement' or similar inside 'godfather-parent' so that it
> can be inherited. Is there a way to do this?
>
> Thanks,
> pom.xml snippets follow:
>
> <parent>
> <groupId>my.godfather</groupId>
> <artifactId>godfather-parent</artifactId>
> <version>4.5.6</version>
> </parent>
>
> ...
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <configuration>
> <artifactItems>
> <artifactItem>
> <groupId>my.group.id</groupId>
> <artifactId>my-artifact</artifactId>
> <version>1.2.3</version>
> <type>zip</type>
> <overWrite>false</overWrite>
>
<outputDirectory>${project.build.directory}/unpack</outputDirectory>
> </artifactItem>
> </artifactItems>
> <overWriteReleases>false</overWriteReleases>
> <overWriteSnapshots>true</overWriteSnapshots>
> </configuration>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <goals>
> <goal>unpack</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> ---------------------------------------------------------------------
> 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]