> -----Original Message----- > From: Kevin Pearcey [mailto:[EMAIL PROTECTED] > Sent: Friday, May 21, 2004 11:36 AM > To: 'Maven Users List' > Subject: RE: Inherited properties (RC3) > > > > > I'm having a problem with my subprojects in maven. > > > > > > Top level multiproject has the following in maven.properties > > > > > > maven.repo.local=../maven-rep > > > > > > This value gets inherited by the sub projects, but comes > > > through with the > > > same value rather than the desired ../../maven-rep. > > > > > > Is there a better way to specify this or the pom inheritance > > > so that the > > > file paths get modified as multiproject does down the > > subproject tree? > > > > > > > > > > In this particular case there should be only one maven local > > repo so you should define its location in > > ${user.home}/build.properties > > > > Michal > > No, I need multiple local repos so that I can have more than > one build using > SNAPSHOTs. Each project gets built with its own local repo so > that we can > have different branches, as I understand it there is no way > to associate > SNAPSHOT with a version, so our only choice to get multiple > SNAPSHOTS during > development is for each branch to uses its own local rep. >
There is a way. You can use (for both projects and dependecies) <version>1.0-SNAPSHOT</version> and <version>2.0-SNAPSHOT</version> then you should be using only install goals (like jar:install, war:install) not install-snapshot goals. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
