On the clean git master branch, "mvn package" fails in hq server packaging with
Authorization failed: Access denied to: http://maven.cm.hyperic.org/release/com/vmware/caf/cafclientapi/1.0-90/cafclientapi-1.0-90.jar
Details are below.
How should we obtain the artifacts required for the build if authorization is limited in the repositories listed in the master pom file?
Thanks - SH
[sh@localhost hq]$ git status
# On branch master
nothing to commit (working directory clean)
[nbkx3lj@localhost hq]$ mvn package
[INFO] Scanning for projects...
....
[INFO] Building Hyperic HQ - Server
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[WARNING] Unable to get resource 'com.vmware.caf:cafclientapi:jar:1.0-90' from repository cm-release (http://maven.cm.hyperic.org/release): Authorization failed: Access denied to: http://maven.cm.hyperic.org/release/com/vmware/caf/cafclientapi/1.0-90/cafclientapi-1.0-90.jar
Downloading: http://repo1.maven.org/maven2/com/vmware/caf/cafclientapi/1.0-90/cafclientapi-1.0-90.jar
[INFO] Unable to find resource 'com.vmware.caf:cafclientapi:jar:1.0-90' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.vmware.caf:cafclientapi:jar:1.0-90
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.vmware.caf -DartifactId=cafclientapi -Dversion=1.0-90 -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.vmware.caf -DartifactId=cafclientapi -Dversion=1.0-90 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.hyperic.hq:hq-server:jar:5.0
2) com.vmware.caf:cafclientapi:jar:1.0-90
----------
1 required artifact is missing.
for artifact:
org.hyperic.hq:hq-server:jar:5.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
jboss-repository (http://repository.jboss.org/nexus/content/groups/public-jboss),
nexusRelease (http://cos-nexus.wp.fsi:8081/nexus/content/repositories/releases),
hqapi-snapshot (http://maven.hyperic.org/hqapi/snapshot),
spring-release (http://maven.springframework.org/release),
hqapi-milestone (http://maven.hyperic.org/hqapi/milestone),
hyperic-external (http://maven.hyperic.org/external),
cm-release (http://maven.cm.hyperic.org/release),
hqapi-release (http://maven.hyperic.org/hqapi/release)
The "master" branch is the current unstable development branch. It is not expected to build all the time. The particular issue you are experiencing will be addressed soon.