hc2vpp compile error
tianye <tianye2@...>
Hello Everyone:
I used my Ubuntu 18.04 VM to compile the hc2vpp 1.18.07, the command I ran just like following web page(Manual build): https://docs.fd.io/hc2vpp/1.18.07/hc2vpp-parent/release-notes-aggregator/install_manual_build.html
git clone https://gerrit.fd.io/r/hc2vpp git checkout stable/1807 add a ~/.m2/settings.xml file like the “manual build” web page said ./hc2vpp/jvpp/install_from_package.sh à OK, SUCCESS cd hc2vpp/ mvn clean install -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip=true -Djacoco.skip à Failed
Issue1: Many download failed from http://nexus.codehaus.org, but it’s look like a none-blocking issue since I found the same issue at your Jenkins build log. downloading from codehaus-snapshots: http://nexus.codehaus.org/snapshots/io/fd/honeycomb/common/common-scripts/1.19.01-SNAPSHOT/maven-metadata.xml [[1;33mWARNING[m] Could not transfer metadata io.fd.honeycomb.common:common-scripts:1.19.01-SNAPSHOT/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org: Name or service not known
Issue2: …several success project… [[1;34mINFO[m] hc2vpp-common-aggregator ........................... [1;32mSUCCESS[m [ 0.279 s] [[1;34mINFO[m] naming-context-api ................................. [1;31mFAILURE[m [ 5.423 s] [[1;34mINFO[m] vpp-impl-parent .................................... [1;33mSKIPPED[m …all of the following project has been skipped… [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile[m [1m(default-compile)[m on project [36mnaming-context-api[m: [1;31mFatal error compiling[m: CompilerException: InvocationTargetException: java.nio.file.NotDirectoryException: /usr/lib/jvm/java-11-openjdk-amd64/lib/modules -> [1m[Help 1][m
Is there anyone met this kind of issue and can you tell me how to fix it?
|
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Michal Cmarada
Hi,
The first issue you are experiencing may happen because of network errors. Sometimes nexus is not responding and therefore downloads fail. The second issue is caused by java 11. Honeycomb and HC2VPP projects have not yet been migrated to java 11. This is actually planed for the next development cycle and should be available in 19.01 release. We currently support java 8, so you can switch to Java8 for now. Once migration is finished you will be able to use also java 11 for build.
Regards, Michal
From: hc2vpp@... <hc2vpp@...> On Behalf Of
tianye
Hello Everyone:
I used my Ubuntu 18.04 VM to compile the hc2vpp 1.18.07, the command I ran just like following web page(Manual build): https://docs.fd.io/hc2vpp/1.18.07/hc2vpp-parent/release-notes-aggregator/install_manual_build.html
git clone https://gerrit.fd.io/r/hc2vpp git checkout stable/1807 add a ~/.m2/settings.xml file like the “manual build” web page said ./hc2vpp/jvpp/install_from_package.sh à OK, SUCCESS cd hc2vpp/ mvn clean install -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip=true -Djacoco.skip à Failed
Issue1: Many download failed from http://nexus.codehaus.org, but it’s look like a none-blocking issue since I found the same issue at your Jenkins build log. downloading from codehaus-snapshots: http://nexus.codehaus.org/snapshots/io/fd/honeycomb/common/common-scripts/1.19.01-SNAPSHOT/maven-metadata.xml [[1;33mWARNING[m] Could not transfer metadata io.fd.honeycomb.common:common-scripts:1.19.01-SNAPSHOT/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org: Name or service not known
Issue2: …several success project… [[1;34mINFO[m] hc2vpp-common-aggregator ........................... [1;32mSUCCESS[m [ 0.279 s] [[1;34mINFO[m] naming-context-api ................................. [1;31mFAILURE[m [ 5.423 s] [[1;34mINFO[m] vpp-impl-parent .................................... [1;33mSKIPPED[m …all of the following project has been skipped… [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile[m [1m(default-compile)[m on project [36mnaming-context-api[m: [1;31mFatal error compiling[m: CompilerException: InvocationTargetException: java.nio.file.NotDirectoryException: /usr/lib/jvm/java-11-openjdk-amd64/lib/modules -> [1m[Help 1][m
Is there anyone met this kind of issue and can you tell me how to fix it? 本电子邮件(包括任何的附件)为本公司保密文件。本文件仅仅可为以上指定的收件人或公司使用,如果阁下非电子邮件所指定之收件人,那么阁下对该邮件部分或全部的泄漏、阅览、复印、变更、散布或对邮件内容的使用都是被严格禁止的。如果阁下接收了该错误传送的电子邮件,敬请阁下通过回复该邮件的方式立即通知寄件人,同时删除你所接收到的文本。 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
|
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
tianye <tianye2@...>
After downgrade my JAVA to version 8, the build finished successfully. Sorry for disturbing.
nick@nick-VirtualBox:~/segw/hc2vpp$ dpkg -l|grep jdk rc openjdk-11-jre-headless:amd64 10.0.2+13-1ubuntu0.18.04.2 amd64 OpenJDK Java runtime, using Hotspot JIT (headless) ii openjdk-8-jdk-headless:amd64 8u181-b13-0ubuntu0.18.04.1 amd64 OpenJDK Development Kit (JDK) (headless) ii openjdk-8-jre-headless:amd64 8u181-b13-0ubuntu0.18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
From: tianye [mailto:tianye2@...]
Hello Everyone:
I used my Ubuntu 18.04 VM to compile the hc2vpp 1.18.07, the command I ran just like following web page(Manual build): https://docs.fd.io/hc2vpp/1.18.07/hc2vpp-parent/release-notes-aggregator/install_manual_build.html
git clone https://gerrit.fd.io/r/hc2vpp git checkout stable/1807 add a ~/.m2/settings.xml file like the “manual build” web page said ./hc2vpp/jvpp/install_from_package.sh à OK, SUCCESS cd hc2vpp/ mvn clean install -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip=true -Djacoco.skip à Failed
Issue1: Many download failed from http://nexus.codehaus.org, but it’s look like a none-blocking issue since I found the same issue at your Jenkins build log. downloading from codehaus-snapshots: http://nexus.codehaus.org/snapshots/io/fd/honeycomb/common/common-scripts/1.19.01-SNAPSHOT/maven-metadata.xml [[1;33mWARNING[m] Could not transfer metadata io.fd.honeycomb.common:common-scripts:1.19.01-SNAPSHOT/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org: Name or service not known
Issue2: …several success project… [[1;34mINFO[m] hc2vpp-common-aggregator ........................... [1;32mSUCCESS[m [ 0.279 s] [[1;34mINFO[m] naming-context-api ................................. [1;31mFAILURE[m [ 5.423 s] [[1;34mINFO[m] vpp-impl-parent .................................... [1;33mSKIPPED[m …all of the following project has been skipped… [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile[m [1m(default-compile)[m on project [36mnaming-context-api[m: [1;31mFatal error compiling[m: CompilerException: InvocationTargetException: java.nio.file.NotDirectoryException: /usr/lib/jvm/java-11-openjdk-amd64/lib/modules -> [1m[Help 1][m
Is there anyone met this kind of issue and can you tell me how to fix it?
|
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Michal Cmarada
No worries, I am glad it helped.
Regards,
Michal
From: hc2vpp@... <hc2vpp@...> On Behalf Of
tianye
After downgrade my JAVA to version 8, the build finished successfully. Sorry for disturbing.
nick@nick-VirtualBox:~/segw/hc2vpp$ dpkg -l|grep jdk rc openjdk-11-jre-headless:amd64 10.0.2+13-1ubuntu0.18.04.2 amd64 OpenJDK Java runtime, using Hotspot JIT (headless) ii openjdk-8-jdk-headless:amd64 8u181-b13-0ubuntu0.18.04.1 amd64 OpenJDK Development Kit (JDK) (headless) ii openjdk-8-jre-headless:amd64 8u181-b13-0ubuntu0.18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
From: tianye [mailto:tianye2@...]
Hello Everyone:
I used my Ubuntu 18.04 VM to compile the hc2vpp 1.18.07, the command I ran just like following web page(Manual build): https://docs.fd.io/hc2vpp/1.18.07/hc2vpp-parent/release-notes-aggregator/install_manual_build.html
git clone https://gerrit.fd.io/r/hc2vpp git checkout stable/1807 add a ~/.m2/settings.xml file like the “manual build” web page said ./hc2vpp/jvpp/install_from_package.sh à OK, SUCCESS cd hc2vpp/ mvn clean install -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip=true -Djacoco.skip à Failed
Issue1: Many download failed from http://nexus.codehaus.org, but it’s look like a none-blocking issue since I found the same issue at your Jenkins build log. downloading from codehaus-snapshots: http://nexus.codehaus.org/snapshots/io/fd/honeycomb/common/common-scripts/1.19.01-SNAPSHOT/maven-metadata.xml [[1;33mWARNING[m] Could not transfer metadata io.fd.honeycomb.common:common-scripts:1.19.01-SNAPSHOT/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org: Name or service not known
Issue2: …several success project… [[1;34mINFO[m] hc2vpp-common-aggregator ........................... [1;32mSUCCESS[m [ 0.279 s] [[1;34mINFO[m] naming-context-api ................................. [1;31mFAILURE[m [ 5.423 s] [[1;34mINFO[m] vpp-impl-parent .................................... [1;33mSKIPPED[m …all of the following project has been skipped… [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile[m [1m(default-compile)[m on project [36mnaming-context-api[m: [1;31mFatal error compiling[m: CompilerException: InvocationTargetException: java.nio.file.NotDirectoryException: /usr/lib/jvm/java-11-openjdk-amd64/lib/modules -> [1m[Help 1][m
Is there anyone met this kind of issue and can you tell me how to fix it? 本电子邮件(包括任何的附件)为本公司保密文件。本文件仅仅可为以上指定的收件人或公司使用,如果阁下非电子邮件所指定之收件人,那么阁下对该邮件部分或全部的泄漏、阅览、复印、变更、散布或对邮件内容的使用都是被严格禁止的。如果阁下接收了该错误传送的电子邮件,敬请阁下通过回复该邮件的方式立即通知寄件人,同时删除你所接收到的文本。 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
|
|||||||||||||||||||||||||||||
|