Legacy local repository is what you need to set... Mvn -help will tell you
the cli option

On Friday, 6 December 2013, John Dix wrote:

> Sorry, I meant we do not have Shade 2.1 plugin. 2.0 is in our repository.
>
> -----Original Message-----
> From: John Dix
> Sent: Friday, December 06, 2013 3:25 PM
> To: Maven Users List; rwhee...@artifact-software.com
> Subject: RE: Version resolution question (was: plugin version ranges
> errors with Maven 3.1.1)
>
> Unfortunately I don't believe that solves the problem. We actually do not
> have the Shade plugin in our repositories and so I manually place it into
> our .m2 repository into the right place. The reason this is happening
> because our organization is big and adding anything to our repository takes
> a papal bull and a month of testing. I am trying to build an argument for
> our architects to upgrade to Maven 3.1.1 which solves several bugs we're
> running into.
>
> That is why I am doing all of this.
>
> Now, I want to force it to look in .m2 before going anywhere else. I
> thought if I used the -o flag to tell I to work offline it would do this,
> however it isn't.
>
> Is there a way to force it to look in the .m2 for what it needs rather
> than having to go to mavencentral?
>
> -----Original Message-----
> From: Ron Wheeler [mailto:rwhee...@artifact-software.com]
> Sent: Friday, December 06, 2013 3:15 PM
> To: users@maven.apache.org
> Subject: Re: Version resolution question (was: plugin version ranges
> errors with Maven 3.1.1)
>
>   <mirrors>
>      <mirror>
>        <id>nexus</id>
>        <mirrorOf>*</mirrorOf>
> <url>http://repo.....com:8081/nexus/content/groups/public</url>
>      </mirror>
>    </mirrors>
>
> This might help
>
> Ron
>
> On 06/12/2013 6:06 PM, John Dix wrote:
> > Thanks Curtis and everyone.
> >
> > I have a follow up question around the same thing build.
> >
> > The command line I am using: maven clean install
> >
> > Our 3.1.1 maven build is having issues finding the plugins in our .m2
> directory unless I specify on the command line -Pmavencentral which is
> defined in our .m2/settings.xml as such:
> >
> >    <profile>
> >      <id>mavencentral</id>
> >        <repositories>
> >          <repository>
> >            <id>mcentral</id>
> >            <url>
> http://sd-repo-2.eng.qpass.net:8081/nexus/content/repositories/central
> </url>
> >            <releases>
> >              <enabled>true</enabled>
> >            </releases>
> >            <snapshots>
> >              <enabled>false</enabled>
> >            </snapshots>
> >          </repository>
> >        </repositories>
> >        <pluginRepositories>
> >          <pluginRepository>
> >            <id>mcentral</id>
> >            <url>
> http://sd-repo-2.eng.qpass.net:8081/nexus/content/repositories/central
> </url>
> >            <releases>
> >               <enabled>true</enabled>
> >            </releases>
> >            <snapshots>
> >               <enabled>false</enabled>
> >            </snapshots>
> >          </pluginRepository>
> >        </pluginRepositories>
> >      </profile>
> >
> > Which is our proxy to the public internet mavencentral server.
> >
> > I have tried using the -o and -U switches at the command line when
> executing without the -Pmavencentral and I receive the following:
> >
> > [ERROR] Plugin org.



-- 
Sent from my phone

Reply via email to