Ask Your Question
0

Opendaylight controller code build repeated failure

asked 2016-04-21 12:53:40 -0700

KushalKumar gravatar image

Why are all github versions of ODL controller code failing on build.

I got this error when I tried to build ODL lithium source code from github.

Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (default) on project config-subsystem: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check: java.lang.UnsupportedClassVersionError: org/opendaylight/yangtools/checkstyle/LoggerVariableNameCheck : Unsupported major.minor version 52.0

Infact, above lithium no stable code of ODL is build successfully.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-04-21 16:20:54 -0700

anumercian gravatar image

There was a change in the ~/.m2/settings.xml files recently. The URL to the nexus server has been changed from "http" to "https". So in the settings.xml files, try making the change for the nexus URL. It helped me build successfully.

edit flag offensive delete publish link more
0

answered 2016-04-26 21:35:47 -0700

karthik330 gravatar image

Just skip checkstyle as of now. "mvn clean install -Dcheckstyle.skip=true" !

edit flag offensive delete publish link more

Comments

I figured out the error. It is not related to checkstyle. "Unsupported major.minor version 52.0" indicates wrong jdk being used. 52.0 stands for java 8 adn 51.0 for java 7. So, I installed oracle java 8 and the problem got fixed.

KushalKumar ( 2016-04-27 04:44:47 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-04-21 12:53:40 -0700

Seen: 116 times

Last updated: Apr 26 '16