본문 바로가기

Study/Java

OpenDaylight [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) on project distribution-artifacts: Some Enforcer rules have failed. Look above for specific messages explaining why the rule fail..

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO]

[INFO] ODL :: integration :: distribution-artifacts

[INFO] ODL :: integration :: properties

[INFO] ODL :: integration :: artifact-artifacts

[INFO] ODL :: integration :: feature-repo-artifacts

[INFO] ODL :: integration :: single-feature-artifacts

[INFO] ODL :: integration :: other-artifacts

[INFO] ODL :: integration :: upstream-all-artifacts

[INFO] ODL :: integration :: upstream-aggregator

[INFO] ODL :: integration :: all-artifacts

[INFO] ODL :: integration :: artifacts-aggregator

[INFO] ODL :: integration :: features-index

[INFO] ODL :: integration :: odl-integration-compatible-with-all

[INFO] ODL :: integration :: odl-integration-all

[INFO] ODL :: integration :: features-test

[INFO] ODL :: integration :: karaf

[INFO] ODL :: integration :: singles-aggregator

[INFO] ODL :: integration :: repos-aggregator

[INFO] ODL :: integration :: features-aggregator

[INFO] Integration/Distribution

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building ODL :: integration :: distribution-artifacts 0.9.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ distribution-artifacts ---

[INFO]

[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) @ distribution-artifacts ---

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:

Detected Maven Version: 3.3.3 is not in the allowed range [3.3.9,).

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] ODL :: integration :: distribution-artifacts ....... FAILURE [  0.341 s]

[INFO] ODL :: integration :: properties ................... SKIPPED

[INFO] ODL :: integration :: artifact-artifacts ........... SKIPPED

[INFO] ODL :: integration :: feature-repo-artifacts ....... SKIPPED

[INFO] ODL :: integration :: single-feature-artifacts ..... SKIPPED

[INFO] ODL :: integration :: other-artifacts .............. SKIPPED

[INFO] ODL :: integration :: upstream-all-artifacts ....... SKIPPED

[INFO] ODL :: integration :: upstream-aggregator .......... SKIPPED

[INFO] ODL :: integration :: all-artifacts ................ SKIPPED

[INFO] ODL :: integration :: artifacts-aggregator ......... SKIPPED

[INFO] ODL :: integration :: features-index ............... SKIPPED

[INFO] ODL :: integration :: odl-integration-compatible-with-all SKIPPED

[INFO] ODL :: integration :: odl-integration-all .......... SKIPPED

[INFO] ODL :: integration :: features-test ................ SKIPPED

[INFO] ODL :: integration :: karaf ........................ SKIPPED

[INFO] ODL :: integration :: singles-aggregator ........... SKIPPED

[INFO] ODL :: integration :: repos-aggregator ............. SKIPPED

[INFO] ODL :: integration :: features-aggregator .......... SKIPPED

[INFO] Integration/Distribution ........................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 3.551 s

[INFO] Finished at: 2018-06-11T11:25:04+09:00

[INFO] Final Memory: 39M/247M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) on project distribution-artifacts: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException




[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) on project distribution-artifacts: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1] 


에 대한 결론, 역시 오픈소스를 build 할때는 해당 문서를 꼼꼼히 읽어봐야하는것이 정답인듯.. 해당 오류는 maven 버전이 낮아서 생기는 문제 (OpenDaylight maven 최소버전을 3.3.9를 사용하라고 되어있는데, 너무 낮은 버전을 써서 생기는 문제였음)