Author Message
shix
Joined: Jan 23, 2015
Messages: 19
Offline
There are some issues when I compile the maven project with "external-authorization-client-helper” libs,the error info:
-----------------------------------------------------
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/jiaxiuli/Desktop/breeze/oceana/devconnect -Dmaven.home=/Applications/maven3.3.3 -Dclassworlds.conf=/Applications/maven3.3.3/bin/m2.conf -Didea.launcher.port=7537 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/maven3.3.3/boot/plexus-classworlds-2.5.2.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.1 -s /Applications/maven3.3.3/conf/settings.xml compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building devconnect 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus-ott.forge.avaya.com/repository/zephyr-maven/com/avaya/commons/avaya-commons-pom/3.0/avaya-commons-pom-3.0.pom
Downloading: http://nexus-ott.forge.avaya.com/repository/commons-maven/com/avaya/commons/avaya-commons-pom/3.0/avaya-commons-pom-3.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.597 s
[INFO] Finished at: 2017-09-12T15:24:36+08:00
[INFO] Final Memory: 10M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project devconnect: Could not resolve dependencies for project com.avaya.social.simulator:devconnect:war:1.0: Failed to collect dependencies at com.avaya.zephyr.sdk.authorization:external-authorization-client-helper:jar:3.3.1.1.331103: Failed to read artifact descriptor for com.avaya.zephyr.sdk.authorization:external-authorization-client-helper:jar:3.3.1.1.331103: Could not transfer artifact com.avaya.commons:avaya-commons-pom:pom:3.0 from/to zephyr-maven (http://nexus-ott.forge.avaya.com/repository/zephyr-maven): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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/display/MAVEN/DependencyResolutionException

Process finished with exit code 1
---------------------------------------------------------------------------------------



Can’t find any files when I request URL:http://nexus-ott.forge.avaya.com/repository/zephyr-maven, so I think the file dosen’t exist.
Could you help me to resolve the problem.

I had installed the "external-authorization-client-helper" to pro using install.sh.

The attachment is related to the project file?

development environment:
JDK:1.8
Maven: 3.3.3
breeze auth sdk: External-Authorization-Client-Helper-3.3.1.1.331103.zip
Intellij Idea: 2016.1

Thanks
AbhishekKulkarni
Joined: Sep 13, 2017
Messages: 3
Offline
This line: sun.security.validator.ValidatorException: PKIX path building failed:
means that there's an authentication error when trying to connect with nexus-ott. Since we moved to the newer nexus, you would need to import the nexus certificate to your JDK truststore and setup maven credentials in your settings xml. Further steps here:

https://confluence.forge.avaya.com/display/FORGE/Nexus#Nexus-ServerCertificate
https://confluence.forge.avaya.com/display/FORGE/Nexus#Nexus-CachingMavenCredentials
shix
Joined: Jan 23, 2015
Messages: 19
Offline
Thanks,I want know how can i get the certificate file and create a user?
I have avaya handle.
or Could you please give me the dependent jar files of "external-authorization-client-helper" sdk
AbhishekKulkarni
Joined: Sep 13, 2017
Messages: 3
Offline
Ok - were you able to access these links I shared above?

https://confluence.forge.avaya.com/display/FORGE/Nexus#Nexus-ServerCertificate
https://confluence.forge.avaya.com/display/FORGE/Nexus#Nexus-CachingMavenCredentials
shix
Joined: Jan 23, 2015
Messages: 19
Offline
Yes,I can access the page, but didn't find that how to download certificate and how to apply for a https access account.
I just want get a token form authorization service with "external-authorization-client-helper" SDK, so could you please send the dependent libs for me?
my email: shix@avaya.com

many thanks.
JoelEzell
Joined: Nov 15, 2013
Messages: 780
Offline
Hi, did you execute the install script that is included in the zip file? That should install files in your local maven repository so that it doesn't try to go to nexus.
shix
Joined: Jan 23, 2015
Messages: 19
Offline
Yes,I executed the install script first and no any errors During execution?
I looked the install script code, it just install "external-authorization-client-helper.jar" and some pom files, don't install dependent jars.

install message:

Accept above End User License Agreement(EULA)? (Y/N)Y
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /Users/jiaxiuli/Desktop/breeze/External-Authorization-Client-Helper/lib/external-authorization-client-helper.jar to /Users/jiaxiuli/Documents/java/maven/repo/com/avaya/zephyr/sdk/authorization/external-authorization-client-helper/3.3.1.1.331103/external-authorization-client-helper-3.3.1.1.331103.jar
[INFO] Installing /Users/jiaxiuli/Desktop/breeze/External-Authorization-Client-Helper/lib/external-authorization-client-helper.pom to /Users/jiaxiuli/Documents/java/maven/repo/com/avaya/zephyr/sdk/authorization/external-authorization-client-helper/3.3.1.1.331103/external-authorization-client-helper-3.3.1.1.331103.pom
[INFO] Installing /Users/jiaxiuli/Desktop/breeze/External-Authorization-Client-Helper/lib/external-authorization-client-helper-javadoc.jar to /Users/jiaxiuli/Documents/java/maven/repo/com/avaya/zephyr/sdk/authorization/external-authorization-client-helper/3.3.1.1.331103/external-authorization-client-helper-3.3.1.1.331103-javadoc.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.816 s
[INFO] Finished at: 2017-09-15T11:52:58+08:00
[INFO] Final Memory: 6M/123M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /Users/jiaxiuli/Desktop/breeze/External-Authorization-Client-Helper/lib/main.pom to /Users/jiaxiuli/Documents/java/maven/repo/com/avaya/zephyr/main/3.3.1.1.331103/main-3.3.1.1.331103.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.765 s
[INFO] Finished at: 2017-09-15T11:53:01+08:00
[INFO] Final Memory: 6M/123M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /Users/jiaxiuli/Desktop/breeze/External-Authorization-Client-Helper/lib/sdk.pom to /Users/jiaxiuli/Documents/java/maven/repo/com/avaya/zephyr/sdk/3.3.1.1.331103/sdk-3.3.1.1.331103.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.799 s
[INFO] Finished at: 2017-09-15T11:53:04+08:00
[INFO] Final Memory: 6M/123M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /Users/jiaxiuli/Desktop/breeze/External-Authorization-Client-Helper/lib/authorization.pom to /Users/jiaxiuli/Documents/java/maven/repo/com/avaya/zephyr/sdk/authorization/3.3.1.1.331103/authorization-3.3.1.1.331103.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.606 s
[INFO] Finished at: 2017-09-15T11:53:06+08:00
[INFO] Final Memory: 6M/123M
[INFO] ------------------------------------------------------------------------
Install successful.
Please enter Y/y to close the prompt.)y
AbhishekKulkarni
Joined: Sep 13, 2017
Messages: 3
Offline
The jar copied a this location:
/Users/jiaxiuli/Documents/java/maven/repo/com/avaya/zephyr/sdk/authorization/external-authorization-client-helper/3.3.1.1.331103/external-authorization-client-helper-3.3.1.1.331103.jar

is a fat-jar - so all the dependencies needed are already packaged.

Could you try another approach and let us know?
Since you're facing issues to connect to a forge site here, can you point your build to a default settings xml which apache maven gives?
shix
Joined: Jan 23, 2015
Messages: 19
Offline
I only set localRepostory in setting.xml.
maven settings.xml:
<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<localRepository>/Users/jiaxiuli/Documents/java/maven/repo</localRepository>

<pluginGroups>

</pluginGroups>

<proxies>

</proxies>


<servers>

</servers>

<mirrors>

</mirrors>

<profiles>

</profiles>

</settings>
shix
Joined: Jan 23, 2015
Messages: 19
Offline
After analyzing following logs, I found that Maven need to download "avaya-commons-pom-3.0.pom" from nexus-ott.forge.avaya.com when i compile my test module. So i think the reason of compile error is that Maven can't access the nexus-ott.forge.avaya.com site.
if so, could you please give me the access account and certificate file to nexus-ott.forge.avaya.com. Otherwise please give me the maven setting.xml and projectxxx.pom.

maven compile log:
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/jiaxiuli/Documents/java/ideaprojects/authClient -Dmaven.home=/Applications/maven3.3.3 -Dclassworlds.conf=/Applications/maven3.3.3/bin/m2.conf -Didea.launcher.port=7532 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/maven3.3.3/boot/plexus-classworlds-2.5.2.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.1 -s /Applications/maven3.3.3/conf/settings.xml compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building authClient 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/com/avaya/commons/avaya-commons-pom/3.0/avaya-commons-pom-3.0.pom
Downloading: http://nexus-ott.forge.avaya.com/repository/zephyr-maven/com/avaya/commons/avaya-commons-pom/3.0/avaya-commons-pom-3.0.pom
Downloading: http://nexus-ott.forge.avaya.com/repository/commons-maven/com/avaya/commons/avaya-commons-pom/3.0/avaya-commons-pom-3.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.307 s
[INFO] Finished at: 2017-09-18T15:29:13+08:00
[INFO] Final Memory: 10M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project authClient: Could not resolve dependencies for project com.avaya.auth:authClient:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.avaya.zephyr.sdk.authorization:external-authorization-client-helper:jar:3.3.1.1.331103: Failed to read artifact descriptor for com.avaya.zephyr.sdk.authorization:external-authorization-client-helper:jar:3.3.1.1.331103: Could not transfer artifact com.avaya.commons:avaya-commons-pom:pom:3.0 from/to zephyr-maven (http://nexus-ott.forge.avaya.com/repository/zephyr-maven): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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/display/MAVEN/DependencyResolutionException

Process finished with exit code 1
Go to:   
Mobile view