bila repo belum di update
contoh untuk hapus yg lama dan update ke yg baru :
rm -fr ~/.m2/repository/com/sun/xml
rm -fr ~/.m2/repository/com/sun/tools
untuk menghapus bagian xml dan tools
bila tidak di update maka ketika build ada tampilan mirip2 :
[INFO] Scanning for projects…
[INFO] ————————————————————————
[INFO] Building EasywebAdmin-Engine
[INFO] task-segment: [package]
[INFO] ————————————————————————
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-impl/2.0-SNAPSHOT/jaxb-impl-2.0-SNAPSHOT.pom
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com.sun.xml.bind/poms/jaxb-impl-2.0-SNAPSHOT.pom
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-impl/2.0-SNAPSHOT/jaxb-impl-2.0-SNAPSHOT.pom
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-xjc/2.0-SNAPSHOT/jaxb-xjc-2.0-SNAPSHOT.pom
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com.sun.xml.bind/poms/jaxb-xjc-2.0-SNAPSHOT.pom
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-xjc/2.0-SNAPSHOT/jaxb-xjc-2.0-SNAPSHOT.pom
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-impl/2.0-SNAPSHOT/jaxb-impl-2.0-SNAPSHOT.jar
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com.sun.xml.bind/jars/jaxb-impl-2.0-SNAPSHOT.jar
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-impl/2.0-SNAPSHOT/jaxb-impl-2.0-SNAPSHOT.jar
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-xjc/2.0-SNAPSHOT/jaxb-xjc-2.0-SNAPSHOT.jar
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com.sun.xml.bind/jars/jaxb-xjc-2.0-SNAPSHOT.jar
Downloading: http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public/com/sun/xml/bind/jaxb-xjc/2.0-SNAPSHOT/jaxb-xjc-2.0-SNAPSHOT.jar
[INFO] ————————————————————————
[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] Failed to resolve artifact.
Missing:
———-
1) com.sun.xml.bind:jaxb-impl:jar:2.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.xml.bind -DartifactId=jaxb-impl -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.xml.bind -DartifactId=jaxb-impl -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.sun.tools.xjc.maven2:maven-jaxb-plugin:maven-plugin:1.0
2) com.sun.xml.bind:jaxb-impl:jar:2.0-SNAPSHOT
2) com.sun.xml.bind:jaxb-xjc:jar:2.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.xml.bind -DartifactId=jaxb-xjc -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.xml.bind -DartifactId=jaxb-xjc -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.sun.tools.xjc.maven2:maven-jaxb-plugin:maven-plugin:1.0
2) com.sun.xml.bind:jaxb-xjc:jar:2.0-SNAPSHOT
———-
2 required artifacts are missing.
for artifact:
com.sun.tools.xjc.maven2:maven-jaxb-plugin:maven-plugin:1.0
from the specified remote repositories:
nexus (http://mvn03.src.dev.imocha.com.my/nexus/content/groups/public)
[INFO] ————————————————————————
[INFO] For more information, run Maven with the -e switch
[INFO] ————————————————————————
[INFO] Total time: 15 seconds
[INFO] Finished at: Wed Feb 04 16:13:59 WIT 2009
[INFO] Final Memory: 8M/98M
[INFO] ————————————————————————