gmazza / blog-samples

Source code for the tutorials on my blog.

Home Page:https://glenmazza.net/blog/entry/blog-index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DependencyResolutionException

HimalayFei opened this issue · comments

I cloned pristine copy of "cxf_x509_profile". When I run "mvn clean install" from parent directory it does its job, but running the same command from client throws the following error.

~/Work/Projects/sandbox/apache-cxf-soap/blog-samples/cxf_x509_profile/client (master)
$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building -- SOAP Client 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.389s
[INFO] Finished at: Wed Sep 24 23:06:03 EDT 2014
[INFO] Final Memory: 6M/158M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cxf-x509-profile-client: Could not resolve dependencies for project org.gmazza.blog-samples.cxf-x509-profile
:cxf-x509-profile-client🫙1.0-SNAPSHOT: Failed to collect dependencies for [org.gmazza.blog-samples.cxf-x509-profile:cxf-x509-profile-service🫙j
axws:1.0-SNAPSHOT (compile), org.springframework:spring-context:jar:3.0.7.RELEASE (compile), org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.6 (compile),
org.apache.cxf:cxf-rt-transports-http:jar:2.7.6 (compile), org.apache.cxf:cxf-rt-ws-security:jar:2.7.6 (compile)]: Failed to read artifact descriptor
for org.gmazza.blog-samples.cxf-x509-profile:cxf-x509-profile-service:jar:jaxws:1.0-SNAPSHOT: Could not find artifact org.gmazza:blog-samples:pom:1.0
-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Read the first rule in the README: https://github.com/gmazza/blog-samples. You need to do an mvn clean install from the root to install that POM first.