Error Description:
Failed to execute goal on project xxx: Could not resolve dependencies for project com.jd.ka: xxx:war :0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.jd.ka:ka-explore- service:jar :0.0.1-SNAPSHOT, com.jd.ka:ka-explore- rpc:jar :0.0.1-SNAPSHOT: Failure to find com.jd.ka:ka-explore- service:jar :0.0.1-SNAPSHOT in http://artifactory.jd.com/libs-snapshots-local was cached in the local repository, resolution will not be reattempted until the update interval of snapshots_ local has elapsed or updates are forced -> [ Help 1]
Solution:
1. First of all, I believe that since you have made such a mistake, your project should also have multiple modules. It’s like this:
2. Let me give you an example here, so the application is web and service
3. Both projects inherit the parent project
4. In the module, the web depends on the service. After the clean and install in the web, the local warehouse also has the dependency, but the install in the service will appear
Failed to execute goal on project …: Could not resolve dependencies for project …
In this way, I found that I didn’t clean and install the parent project, that is, the interface test project
5. summary: some subprojects under the parent project should run clean and install of the parent project before running clean and install for the first time
Similar Posts:
- How to Solve Error: Failed to execute goal on project
- [Solved] Could not resolve dependencies for project xxx: Could not find artifact xxx
- Maven Package Error: [Warning] The Pom for xxx is missing , no dependency inform
- Unable to find a single main class from the following candidates [xxx,xxx]
- Spring cloud multi module packaging errors [How to Solve]
- Error in python2.7 installation of pycrypto Library [How to Solve]
- Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots)
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- Eureka server project startup error handling
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)