Open gauravbajaj4 opened 7 years ago
This issue is fixed i had an issue with JAVA and maven installation.
I am get the same error with you. How did you solve it ? Look forward to your reply
@Buguin please check for Java and maven home, probably they are not set correctly. Please let me know if this halped you.
@gauravbajaj4 I don't think there is an error for my configuration. When i execute mvn -version, cmd feedback as following.
C:\Users\buguin>mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)
Maven home: D:\ApacheMaven\bin..
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_131\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
However, error occurred which is same as yours.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-web 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-javadoc-plugin:2.10.4:javadoc (default-cli) > generate-sources @ gameoflife-web >>>
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ......................................... SUCCESS [ 1.433 s]
[INFO] gameoflife-build ................................... SUCCESS [ 0.041 s]
[INFO] gameoflife-core .................................... SUCCESS [ 1.747 s]
[INFO] gameoflife-web ..................................... FAILURE [ 0.242 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.549 s
[INFO] Finished at: 2017-06-09T21:48:37+08:00
[INFO] Final Memory: 18M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar: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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
@Buguin agreed that maven on your system is fine, but in my case I had an issue with maven home....... Can you check in your Jenkins global setting for Java and maven.
@gauravbajaj4 I find the reason of this kind of error. Due to the dependency in this project, you should install gameoflife-core and gameoflife-build on your repository before building. You can excute the following cmd for installing subproject. D:\Users\buguin\GitHub\game-of-life\gameoflife-build>mvn install D:\Users\buguin\GitHub\game-of-life\gameoflife-core>mvn install
Hi, I got this error today. Does anyone has update on it, whether its resolved or not ?
Hi,
Fixed the error by adding "install" maven goal. No need to have multiple top level maven targets; I have only one which looks like this:
clean package install javadoc:javadoc
Hello,
Guys, could you please give detailed steps of how to troubleshoot the same error that i am getting too?
my maven and java versions look ok.
and here is the error on code review:
+++++++++++++++++++++++++++++++++++++++++
[INFO] gameoflife 1.0-SNAPSHOT ............................ SUCCESS [ 7.172 s]
[INFO] gameoflife-build ................................... SUCCESS [ 0.031 s]
[INFO] gameoflife-core .................................... SUCCESS [ 0.026 s]
[INFO] gameoflife-web 1.0-SNAPSHOT ........................ FAILURE [ 0.066 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.054 s
[INFO] Finished at: 2018-04-12T14:04:51Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar: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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
Also one clean the local repository after such install using https://maven.apache.org/plugins/maven-dependency-plugin/examples/purging-local-repository.html
[INFO] gameoflife-web ..................................... FAILURE [ 1.390 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.311 s [INFO] Finished at: 2020-01-14T13:11:07-08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:purge-local-repository (default-cli) on project gameoflife-web: Failed to refresh project dependencies for: com.w akaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT: required artifacts missing: [ERROR] com.wakaleo.gameoflife:gameoflife-core:jar:1.0-SNAPSHOT [ERROR] [ERROR] for the artifact: [ERROR] com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT [ERROR] [ERROR] from the specified remote repositories: [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ERROR] -> [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :gameoflife-web
I have problem like this. How to solve it? By the way, I use java 13
I am getting below error while trying to build Static Code Analysis
[INFO] --- maven-checkstyle-plugin:2.17:checkstyle (default-cli) @ gameoflife-core --- [INFO] There are 111 errors reported by Checkstyle 6.11.2 with sun_checks.xml ruleset. [INFO] -rf :gameoflife-web
Build step 'Invoke top-level Maven targets' marked build as failure
[CHECKSTYLE] Skipping publisher since build result is FAILURE
Finished: FAILURE
[INFO] ------------------------------------------------------------------------ [INFO] Building gameoflife-web 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] gameoflife ......................................... SUCCESS [ 2.318 s] [INFO] gameoflife-build ................................... SUCCESS [ 2.185 s] [INFO] gameoflife-core .................................... SUCCESS [ 1.416 s] [INFO] gameoflife-web ..................................... FAILURE [ 0.307 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.778 s [INFO] Finished at: 2017-05-09T02:07:44+00:00 [INFO] Final Memory: 19M/47M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar: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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn