But this way I will loose tha independence of submodule version agains main
project version:/
how can I check wich version is acctualy used??
On Dec 14, 2007 3:49 PM, <[EMAIL PROTECTED]> wrote:
> Looking at central, I see beta-7 is already there, so you don't have to
> use snapshot.
>
> Maybe if you try it this way:
>
> > <dependencies>
> > <dependency>
> > <groupId>group</groupId>
> > <artifactId>sub1</artifactId>
> > <version>${pom.version}</version>
> > <scope>provided</scope>
> > </dependency>
> > </dependencies>
>
> Hth,
>
> Nick Stolwijk
>
> -----Original Message-----
> From: Tomasz Zieleniewski [mailto:[EMAIL PROTECTED]
> Sent: Fri 12/14/2007 3:37 PM
> To: Maven Users List
> Subject: Re: maven2 release plugin - no dependencies update
>
> Hi,
>
> what is the vesion tag for the snapshot version??
>
> regards
> tomasz
>
> On Dec 14, 2007 10:22 AM, <[EMAIL PROTECTED]> wrote:
>
> > If I recall correctly, the updateDependencies option was added recently.
> > As you see in the plugin page, it is for a snapshot version. Perhaps you
> are
> > using a stable version, which does not have this option included yet.
> >
> > As far as I know, the updateDependencies option is just what you need.
> >
> > With regards,
> >
> > Nick Stolwijk
> >
> >
> > -----Original Message-----
> > From: Tomasz Zieleniewski [mailto: [EMAIL PROTECTED]
> > Sent: Fri 12/14/2007 9:55 AM
> > To: [email protected]
> > Subject: maven2 release plugin - no dependencies update
> >
> > Hi,
> >
> > I have following problem.
> > I have a main maven project of the pom type which consists of 4
> > subprojects
> > of the type jar.
> > Two of my subprojects have dependency on the two previous ones.
> > When I invoke mvn release:prepare -D dryRun=true
> > everything works fine except that the dependencies from two last
> > subrojects
> > are not updated to the new dev version
> >
> > So for instance when I have following release state
> > pom - 1.0.0-SNAPSHOT
> > sub1 - 1.0-SNAPSHOT
> > sub2 - 1.0-SNAPSHOT
> > sub3 - 1.0-SNAPSHOT
> > sub4 - 1.0-SNAPSHOT
> >
> > and inside sub3 pom.xml such dependency
> > <dependencies>
> > <dependency>
> > <groupId>group</groupId>
> > <artifactId>sub1</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > <scope>provided</scope>
> > </dependency>
> > </dependencies>
> >
> > and even if the version for sub1 is increased by release the dependency
> > version is not changed.
> > I tried to use -D*updateDependencies
> > <
> http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#updateDependencies
> > >
> > <
> http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#updateDependencies
> > >=true
> > but it didn't help*
> >
> > Is it an error or did I miss something?
> >
> > bests regards
> > tomasz zieleniewski
> >
> >
>
>