OAuth-Apis / apis

OAuth Authorization as a Service
Apache License 2.0
593 stars 301 forks source link

failed build from fresh checkout #89

Closed mkeller-upb closed 8 years ago

mkeller-upb commented 8 years ago

Hi, I want to give this project a try but failed on compiling it; most likely because mvn is new to me. I checked the provided helps and searched the web but were not able to resolve my issue. Please, I would appreciate any hint or assistance. The error.stdout.txt is attached. Best regards, Matthias

gvanderploeg commented 8 years ago

The ultimate error ("InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty") together with the first warning ("JAVA_HOME env variable is not set") make me suspicious of your local Java/maven setup.

Some interesting troubleshooting info can be found here: http://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty

Hope this helps.

With kind regards, Geert

On 15 February 2016 at 13:25, Matthias Keller notifications@github.com wrote:

Hi, I want to give this project a try but failed on compiling it; most likely because mvn is new to me. I checked the provided helps and searched the web but were not able to resolve my issue. Please, I would appreciate any hint or assistance. Best regards, Matthias

mvn clean install Warning: JAVA_HOME environment variable is not set. OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0 [INFO] Scanning for projects... Downloading: https://build.surfconext.nl/repository/public/releases/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.pom Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-webdav:1.0-beta-2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2 @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]

[ERROR] The project nl.surfnet.apis:apis-parent:1.3.6-SNAPSHOT (/home/mkeller/apis/pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-webdav:1.0-beta-2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2: Could not transfer artifact org.apache.maven.wagon:wagon-webdav:pom:1.0-beta-2 from/to openconext-releases ( https://build.surfconext.nl/repository/public/releases): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 2] [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

— Reply to this email directly or view it on GitHub https://github.com/OAuth-Apis/apis/issues/89.

mkeller-upb commented 8 years ago

Awesome, twice, first for your fast response, second for hinting the stackoverflow, which let me (in minutes) to another entry claiming some pem's are wrongly configured in Ubuntu (I'm using Ubuntu 15.10). I updated my pems with "update-ca-certificates -f" the maven build was successful. Thanks, best regards, Matthias (JDK was missing and I installed openJDK 8)

gvanderploeg commented 8 years ago

Great to hear it solved your issue.