I hope I can get help with the compile of Horizon 19.0.1.
I compiled Horizon 19.0.1 successfully one month ago, and met the following issue :
"Failed to execute goal on project jnlp-dependencies: Could not resolve dependencies for project org.opennms.dependencies:jnlp-dependencies:pom:19.0.1: Failed to collect dependencies at javax.samples.jnlp:jnlp-servlet:jar:1.6.0 -> javax.samples.jnlp:jnlp-jardiff:jar:[1.6.0,): No versions available for javax.samples.jnlp:jnlp-jardiff:jar:[1.6.0,) within specified range -> ".
I did not do anything and just tried to compile again and again within next several days and it was gone, and I can proceed to make final deb packages. With very limited knowledge of maven build system, I do not know why it was gone.
Today, June 8, 2017, I tried to compile again with the following steps(the same as one month ago):
2 ./compile.pl -DskipTests -DskipITs ,
and I stumbled on the same issue(screenshot below):
Can someone explain why it happened again? how to fix it ?
I got the reasons which may help explain similar issues.
My laptop must get authenticated before it has access to internet.
Today I forgot to authenticate it , and directly compiled Horizon 19.0.1. and it happens that jnlp-jardiff must retrieve from remote repository. because my laptop does not get authenticated, the maven-metadata-opennms-repo.xml is written with wrong URL which included the authentication server IP in my company, and maven can not work with maven-metadata-opennms-repo.xml which is completely garbage!. I just deleted it and those related sha1 file and the compile moved forward!