Howto disable mirror repository in maven settings -


in maven ~./.m2/settings.xml have defined mirror , repositories:

 <mirrors>     <mirror>     <id>someid</id>         .....     </mirro>  </mirrors> ...  <profiles>     <profile>          <id>default</id>             <activation>                      <activebydefault>true</activebydefault>                  </activation>                  <repositories>             <repository>                                                                    <id>repo....</id> ....           </profile> </profiles> 

this works fine.

there projects want disable mirror , default profile. know can define seperate profile repositories, don't know how can tell maven eclipse plugin not use default profile or specific profile. also: how can change mirror project?

copy settings.xml file, remove mirror entry , tell maven use --settings file command line option.

use xslt or command line tool xmlstarlet automate process:

xmlstarlet ed -n 's=http://maven.apache.org/settings/1.0.0' --delete "//s:mirror" settings.xml 

prints new settings.xml file stdout doesn't contain mirror settings.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -