Ask Your Question
0

yangtools build failed at compiling yang-parser-impl, error: unmappable character for encoding ASCII

asked 2017-01-05 10:25:15 -0700

I can't build yangtools.

git clone https://git.opendaylight.org/gerrit/p...

git checkout 306ffd9eea5a52556b4877debd2a79ca0573ff0c -b infinispan-data-store

admin@2a9cfd911ad4:~/clix/yangtools$ mvn clean install -DskipTests


[INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project yang-parser-impl: Compilation failure: Compilation failure: [ERROR] /home/admin/clix/yangtools/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/impl/util/YangSourceContext.java:[174,40] error: unmappable character for encoding ASCII [ERROR] [ERROR] /home/admin/clix/yangtools/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/impl/util/YangSourceContext.java:[174,41] error: unmappable character for encoding ASCII [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/di... [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :yang-parser-impl admin@2a9cfd911ad4:~/clix/yangtools$

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-09 12:44:39 -0700

After some trial and errors, I found that I can build yangtools successfully.

  1. install jdk-1.7, mvn works with jdk-1.7, not 1.8.

To install, issue: yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel

  1. install apache-maven-3.3.9-bin.tar.gz

  2. download and build yangtools:

git clone https://git.opendaylight.org/gerrit/p... cd yangtools git checkout 306ffd9eea5a52556b4877debd2a79ca0573ff0c -b infinispan-data-store mvn clean install -DskipTests

  1. build successfully completed.

[INFO] yang-data-operations ............................... SUCCESS [ 1.591 s] [INFO] yang-maven-plugin-it ............................... SUCCESS [ 4.052 s] [INFO] yang-data-json ..................................... SUCCESS [ 1.932 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 05:45 min [INFO] Finished at: 2017-01-09T15:04:02-05:00 [INFO] Final Memory: 112M/1845M [INFO] ------------------------------------------------------------------------

edit flag offensive delete publish link more
Login/Signup to Answer

Stats

Asked: 2017-01-05 10:25:15 -0700

Seen: 17 times

Last updated: Jan 09