Build compile error due to maven changes to "Https"

255 views
Skip to first unread message

psuth...@gmail.com

unread,
Jan 15, 2020, 5:28:06 PM1/15/20
to PrimaTest Automation
Redwood stop working from today (Jan 15, 2020) due to Maven change to the "Https" instead of "http"
I tried changing the m2.url=https\://repo1.maven.org/maven2 and m2.repo=https://repo1.maven.org/maven2/ in RedwoodHQ\vendor\ant\lib\libraries.properties but still its not working getting the same error again. Thanks.

It's very important for us it's blocking our release automation testing. Thank You.




The build output from Redwood:

 

[ivy:retrieve] :::: ERRORS

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/maven-metadata.xml

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.pom

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/maven-metadata.xml

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/maven-metadata.xml

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/

[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/

BUILD FAILED

C:\Program Files\RedwoodHQ\public\automationscripts\iasWorld\Brittany\build.xml:28: impossible to resolve dependencies:

resolve failed - see output for details

psuth...@gmail.com

unread,
Jan 15, 2020, 6:23:54 PM1/15/20
to PrimaTest Automation
I got it to work, it's not connecting to the dependencies when the rev="latest.release", need to put the actual version number 4.12 instead of "latest.release".
Not working
<dependency org="junit" name="junit" rev="latest.release"/>
Working
 <dependency org="junit" name="junit" rev="4.13"/>

Shrikant Managoli

unread,
Jan 15, 2020, 11:39:45 PM1/15/20
to PrimaTest Automation
Hi Sutharsan,

I did change the below code and tried building the scripts, but it is still Failing with the error which you mentioned. Do i need to anything additional to make it work? Any quick help is greatly appreciated.

Thanks
Shrikant

Shrikant Managoli

unread,
Jan 16, 2020, 3:04:45 AM1/16/20
to PrimaTest Automation
Below is the error snippet from the console:

[ivy:retrieve]
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] module not found: org.testng#testng;latest.release
[ivy:retrieve] ==== maven2: tried
[ivy:retrieve] -- artifact org.testng#testng;latest.release!testng.jar:
[ivy:retrieve] module not found: org.webbitserver#webbit;latest.release
[ivy:retrieve] ==== maven2: tried
[ivy:retrieve] -- artifact org.webbitserver#webbit;latest.release!webbit.jar:
[ivy:retrieve] module not found: net.jcip#jcip-annotations;latest.release
[ivy:retrieve] ==== maven2: tried
[ivy:retrieve] -- artifact net.jcip#jcip-annotations;latest.release!jcip-annotations.jar:
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: org.testng#testng;latest.release: not found
[ivy:retrieve] :: org.webbitserver#webbit;latest.release: not found
[ivy:retrieve] :: net.jcip#jcip-annotations;latest.release: not found
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :::: ERRORS
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/testng/testng/maven-metadata.xml
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/testng/testng/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/testng/testng/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/testng/testng/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/testng/testng/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/maven-metadata.xml
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/webbitserver/webbit/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/
[ivy:retrieve] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/net/jcip/jcip-annotations/
BUILD FAILED
/apps/redwood/softwares/RedwoodHQ/RedwoodHQ/public/automationscripts/XXXXX_Regression/shrikant/build.xml:28: impossible to resolve dependencies:
resolve failed - see output for details
Total time: 2 seconds

Thanks
Shrikant

Rohit Tupe

unread,
Jan 16, 2020, 4:12:02 AM1/16/20
to PrimaTest Automation
Hi Team,

Recently Maven announced that they are moving central repository to https. Thus all RedwoodHQ users need to update there ivy file. There are 2 ways by which you can do this - 

1. Update each jar to use specific version. But this will be tedious job. That is where second will come into picture
2. Update the ivysettings.xml file to use the https maven repository as the root


Please follow below steps : 

1. Update the ivysettings.xml file with below line-
            Previous Line :  <ibiblio name="maven2" m2compatible="true"/>
            Update with :  <ibiblio name="maven2" m2compatible="true" root="https://repo1.maven.org/maven2/"/>
  
 Here i have given "maven2" as the value in the name attribute, that may be different with everyone.

2. Compile/Build your scripts and it will give you build success. 


Note : Please note no change is required in your ivy.xml file. You can continue using the same one. 

 Thanks & Regards,
 Rohit Tupe

Shrikant Managoli

unread,
Jan 16, 2020, 4:31:28 AM1/16/20
to Rohit Tupe, PrimaTest Automation
Thanks a ton Rohit for the detailed information. I did try the second option and it worked. Appreciate your help here..

Regards 
Shrikant

--
You received this message because you are subscribed to the Google Groups "PrimaTest Automation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to primatest-automa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/primatest-automation/14396c63-fbf3-4a82-9f37-261a16b1ea3e%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages