yangtools for java 7

asked 2017-03-06 21:46:04 -0700

ravikiran.n gravatar image

updated 2017-03-06 21:48:20 -0700

I just found that yangtools-lithium is the last release which supports java 7, and hence started with lithium. First when I started on building the source, I found odlparent-1.5.5-SNAPSHOT is not available in the repo, the available version is odlparent-1.6.5-SNAPSHOT, hence changed the pom.xml through out the modules. Also the same case with org.opendaylight.yangtools-0.7.5-SNAPSHOT but the available version being org.opendaylight.yangtools-0.8.5-SNAPSHOT. I changed accordingly.

Once I started with the build I got the checkstyle error in maven, as below. I belive this is because I changed the version of the parent and yangtools in pom file.

[INFO] ------------------------------------------------------------------------
[INFO] Building yang-model-api 0.8.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ yang-model-api ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ yang-model-api ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (pre-unit-test) @ yang-model-api ---
[INFO] argLine set to -javaagent:C:\Users\nraviki\.m2\repository\org\jacoco\org.jacoco.agent\0.7.2.201409121644\org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=C:\RTMS\Netconf\yangtools-stable-lithium\yang\yang-model-api\target\code-coverage\jacoco.exec,excludes=/gen/:/generated-sources/:/yang-gen/:/pax/
[INFO]
[INFO] --- maven-checkstyle-plugin:2.16:check (check-license) @ yang-model-api ---
[INFO] Starting audit...
C:\RTMS\Netconf\yangtools-stable-lithium\yang\yang-model-api\src\main\java\org\opendaylight\yangtools\yang\model\api\SchemaContextHolder.java:1: Line does not match expected header line of '^/[]+$'.
C:\RTMS\Netconf\yangtools-stable-lithium\yang\yang-model-api\src\main\java\org\opendaylight\yangtools\yang\model\repo\api\SchemaResolutionException.java:6: Line does not match expected header line of '^ * and is available at http://www.eclipse.org/legal/epl-v10.html$'.
C:\RTMS\Netconf\yangtools-stable-lithium\yang\yang-model-api\src\main\java\org\opendaylight\yangtools\yang\model\repo\spi\PotentialSchemaSource.java:6: Line does not match expected header line of '^ * and is available at http://www.eclipse.org/legal/epl-v10.html$'.
Audit done.
[INFO] There are 3 errors reported by Checkstyle 6.2 with check-license.xml ruleset.
[ERROR] src\main\java\org\opendaylight\yangtools\yang\model\api\SchemaContextHolder.java[1] (header) RegexpHeader: Line does not match expected header line of '^/[]+$'.
[ERROR] src\main\java\org\opendaylight\yangtools\yang\model\repo\api\SchemaResolutionException.java[6] (header) RegexpHeader: Line does not match expected header line of '^ * and is available at http://www.eclipse.org/legal/epl-v10.html$'.
[ERROR] src\main\java\org\opendaylight\yangtools\yang\model\repo\spi\PotentialSchemaSource.java[6] (header) RegexpHeader: Line does not match expected header line of '^ * and is available at http://www.eclipse.org/legal/epl-v10.html$'.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] yangtools-parent ................................... SUCCESS [ 42.578 s]
[INFO] concepts ........................................... SUCCESS [ 23.432 s]
[INFO] object-cache-api ................................... SUCCESS [01:18 min]
[INFO] mockito-configuration .............................. SUCCESS [ 15.268 s]
[INFO] util ............................................... SUCCESS [ 46.890 s]
[INFO] object-cache-guava ................................. SUCCESS [  8.682 s]
[INFO] yang-common ........................................ SUCCESS [ 14.460 s]
[INFO] yang-model-api ..................................... FAILURE [  2.262 s]

So I wanted to find out how can I solve this..? Thanks in advance

edit retag flag offensive close merge delete