How do I configure maven to access maven central if nexus server is down? -


i setup build such automatically attempts download artifact maven central iff our nexus server unreachable. have following in settings.xml , i'm not sure how change (if possible).

<profiles> <profile>  <id>nexus</id>  <!--enable snapshots built in central repo direct -->  <!--all requests nexus via mirror -->  <repositories>    <repository>      <id>central</id>      <url>http://mynexus</url>      <releases><enabled>true</enabled></releases>      <snapshots><enabled>true</enabled></snapshots>    </repository>  </repositories>  <pluginrepositories>    <pluginrepository>      <id>central</id>      <url>http://mynexus</url>      <releases><enabled>true</enabled></releases>      <snapshots><enabled>true</enabled></snapshots>    </pluginrepository>  </pluginrepositories> </profile> </profiles>  <activeprofiles>    <activeprofile>nexus</activeprofile> </activeprofiles> 

in order use repository manager (nexus included) need have mirrorof * element defined intercept repository urls , send them nexus resolution. in maven2 , 3, mirrorof element not able configured in profile. means there no easy way flip , forth without changing settings.

you need comment out mirrors section , deactivate nexus profile have maven revert standard behavior.

fortunately though nexus stable , should never go down.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -