I don't quite follow. What is it that you want to achieve? Surely the main purpose is not only to have the artifact installed in the local repo, but you want to do what? Maybe: Use it from some other project? Use it in some IDE? Have a look in the jar? Telling us this will help you on the right track as your current question doesn't make sense (to me at least).
/Anders On Wed, Aug 11, 2010 at 19:55, Pepe Perez <[email protected]> wrote: > Hello, > > The regular way of operation for maven is to build an artifact and install > or > deploy it into the repo. Is there any way to specify a target to be fetched > from > the remote repo into the local repo instead of building it, since I know > that > it's already deployed? > > Another way to look at it, I'm looking for something similar to > mvn install:install-file -Dfile=your-artifact-1.0.jar > [-DpomFile=your-pom.xml] \ > [-DgroupId=org.some.group] \ > [-DartifactId=your-artifact] \ > [-Dversion=1.0] > > though > your-artifact-1.0.jar > is already present in the remote repo so maven would go and fetch it > bringing it > to the local repo > > Or yet in other words... when building a target maven downloads all > dependencies > from the remote repo. Is there any way to direct maven to do the same thing > with > the target, fetch vs build? > > Thanks! > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
