Hi, I had exactly the same requirement while working on the build Infrastructure in my work place. The last time I fished for an answer, I came across an enhancement request that spoke of a "workspace" concept. Not sure about its status as of now. But glad to know that others are facing the same needs.
Regards, Srinath On Saturday, May 21, 2011, Russ Tremain <[email protected]> wrote: > AFAIK there is no way to do this in settings.xml. It is a chicken & egg > problem that has never been effectively solved in maven. > > What you can do, is pass the repository location in as a property. > > Typically I create an alias (or a .bat file on windows): > > alias svmn mvn -Dmaven.repo.local=$JV_MAVEN_REPO_LOCAL > > where JV_MAVEN_REPO_LOCAL is the location of your maven repo as understood by > the JVM, and is set on a per-project basis. > > those who say that it is not important to isolate your maven build > repository, typically do not care about rigorous release methodologies. The > artifacts cached in your build repository are part of each release build, and > should be preserved as part of the release artifacts. People play all kinds > of games with external artifacts - it is important to immunize your release > process from this. > > /r > > > > At 2:26 PM -0700 5/20/11, Petr V. wrote: >>I am trying to define local repository path in settings.xml on Windows. >> >>I have a windows environment variable CODE_BASE=C:\mycode >> >>In settings.xml , I put >> >><localRepository>${env.CODE_BASE}\build\local_depot</localRepository> >> >>But it does not read environment variable. How can I read environment >>variable in settings.xml. >> >>If that's not a possibility, can I define local repository in pom.xml of >>project? >> >>Your help will be much appreciated. >> >>Thanks, > > > --------------------------------------------------------------------- > 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]
