[EMAIL PROTECTED] wrote on 16/12/2002 08:40:03 PM: > --- cut --- Question #1 --- cut --- > I remember a thread about a "site wide" maven install, e.g. having the > maven program, plugins etc. installed read-only in a central location > (/usr/lib/maven e.g.) and then every maven user has his own > $MAVEN_HOME where the repository is stored. > > Is this still supported? If yes, how do I configure/build this? If I > get this working, I'd like to contribute RH 6.x / RH 7.x spec files > for Maven. > --- cut --- Question #1 --- cut --- Install maven centrally and each user can specify their own maven.repo.local via ~/build.properties.
Plugins get installed initially into maven.home/plugins, so the first run would need to be by someone who had access to the central directory. > Even "this is no longer possible" or "you shouldn't do that" would > help. Sounds like this would work. > --- cut --- Question #2 --- cut --- > Hi, > > is it possible to give a "minimum" version of maven in a project.xml > file or is it possible to query the version of maven under which one > is running for acting upon it. > > Basically, my idea is to have something like this in project.xml > > <dependency> > <maven minVersion ="1.0b7"/> > </dependency> > > And have the build process fail if this is not fulfilled. > > Same would be nice for jars. Having > > <dependency> > <jar> > <name>commons-lang</name> > <version minimum="1.0.1"/> > </jar> > </dependency> > > might help lots of projects. > > --- cut --- Question #2 --- cut --- No, not at this point. > And if you're already on a roll, I'd love to have this question > answered: > > Is it possible to give a _different_ remote repository for some jars? > I know that you can change the global location for all jars but is it > possible (e.g. in the project.xml file) to point some jars at a > different repository? Yes. You can have multiple remote repositories. Maven will search each remote repo until the jar is found. Does this help? -- dIon Gillard, Multitask Consulting Blog: http://www.freeroller.net/page/dion/Weblog Work: http://www.multitask.com.au
