re:jnlp-dependencies issue again

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

re:jnlp-dependencies issue again

tliu
This post was updated on .
Hi,

  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):
 1. ./clean.pl
 2  ./compile.pl -DskipTests -DskipITs ,
 and I stumbled on the same issue(screenshot below):
screenshot of M2 repository

  Can someone explain why it happened again? how to fix it ?

   Thanks in advance!!!

  Tim Liu
 
Reply | Threaded
Open this post in threaded view
|

Re: re:jnlp-dependencies issue again

tliu
Hi,

  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!

 Thanks

Tim Liu