javaee-samples / vendoree-samples

Samples for EE related/additional functionality that's specific for a vendor (such as JBoss, Payara, etc)
9 stars 10 forks source link

Cannot build. Error "Failed to read artifact descriptor for fish.payara.distributions:payara-web:zip:5.183-SNAPSHOT" #7

Open sharpedavid opened 4 years ago

sharpedavid commented 4 years ago

I'd like to compile this project so that I can deploy the Payara OpenId example. When I try, I get this error:

$ mvn --version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T12:00:29-07:00)
Maven home: C:\Dev\apache-maven-3.6.1
Java version: 11.0.5, vendor: AdoptOpenJDK, runtime: C:\Dev\AdoptOpenJDK11
Default locale: en_CA, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

$ ls
payara/  pom.xml  README.md  target/  test-utils/  tomcat/
$ mvn package
...
[INFO] Reactor Summary for EE Vendor specific samples : root 1.0-SNAPSHOT:
[INFO]
[INFO] EE Vendor specific samples : root .................. FAILURE [  4.000 s]
[INFO] Vendor EE: test-utils .............................. SKIPPED
[INFO] Vendor EE: Payara .................................. SKIPPED
[INFO] Vendor EE: Payara - Jacc Providers per Application . SKIPPED
[INFO] Vendor EE: Payara - Roles Permitted ................ SKIPPED
[INFO] Vendor EE: Payara - OAuth2 ......................... SKIPPED
[INFO] Vendor EE: Payara - OpenId Connect ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.283 s
[INFO] Finished at: 2020-02-03T12:21:31-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.0:unpack (unpack) on project samples-parent: Unable to find/resolve artifact.: Failed to read artifact descriptor for fish.payara.distributions:payara-web:zip:5.183-SNAPSHOT: Failure to find org.glassfish.main.distributions:distributions:pom:5.183-SNAPSHOT in https://artifactory.hlth.gov.bc.ca/artifactory was cached in the local repository, resolution will not be reattempted until the update interval of artifactoryRepo has elapsed or updates are forced -> [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/MojoExecutionException
OndroMih commented 4 years ago

You can build if you override the payara.version with a public version. For example, you can build against Payara 5.194 with the following command:

mvn -Dpayara.version=5.194 clean package
OndroMih commented 4 years ago

The tests will fail on 5.194 because of https://github.com/payara/Payara/issues/4366. But should pass on 5.193.