Pull down the 5.1.x branch. That has the correct dependency definition I believe and you should be able to compare and adjust. It seems like jitpack changed the way artifacts are resolved, what with duo not releasing a proper jar for the duo client.
Sent with AquaMail for Android
http://www.aqua-mail.com
--
You received this message because you are subscribed to the Google Groups "CAS Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-dev+u...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.
I’m getting something similar for my mvn overlay builds for 5.0.6:
mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cas-overlay 1.0
[INFO] ------------------------------------------------------------------------
Downloading: https://jitpack.io/com/github/duosecurity/duo_client_java/master-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.github.duosecurity:duo_client_java:master-SNAPSHOT/maven-metadata.xml from/to jitpack (https://jitpack.io): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer com.github.duosecurity:duo_client_java:master-SNAPSHOT/maven-metadata.xml from https://jitpack.io was cached in the local repository, resolution will not be reattempted until the update interval of jitpack has elapsed or updates are forced. Original error: Could not transfer metadata com.github.duosecurity:duo_client_java:master-SNAPSHOT/maven-metadata.xml from/to jitpack (https://jitpack.io): Not authorized , ReasonPhrase:Unauthorized.
Downloading: https://jitpack.io/com/github/duosecurity/duo_client_java/master-SNAPSHOT/duo_client_java-master-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.480 s
[INFO] Finished at: 2017-07-17T14:24:17-07:00
[INFO] Final Memory: 23M/455M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cas-overlay: Could not resolve dependencies for project org.apereo.cas:cas-overlay:war:1.0: Failed to collect dependencies at org.apereo.cas:cas-server-support-duo:jar:5.0.6 -> com.github.duosecurity:duo_client_java:jar:master-SNAPSHOT: Failed to read artifact descriptor for com.github.duosecurity:duo_client_java:jar:master-SNAPSHOT: Could not transfer artifact com.github.duosecurity:duo_client_java:pom:master-SNAPSHOT from/to jitpack (https://jitpack.io): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
Course to correct this issue?
—
Raymond Walker
Software Systems Engineer StSp.
ITS Northern Arizona University
Matt,
This does not appear to be our issue.
I do have the correct repos included in our maven overlay as per documentation:
https://apereo.github.io/cas/5.0.x/installation/DuoSecurity-Authentication.html
ie.:
<repository>
<id>duo</id>
<url>https://dl.bintray.com/uniconiam/maven</url>
</repository>
<repository>
<id>dupclient</id>
<url>https://jitpack.io</url>
</repository>
As shown in the output of the original emails, jitpack.io is unable to get the duo_client_java metadata:
[WARNING] Could not transfer metadata com.github.duosecurity:duo_client_java:master-SNAPSHOT/maven-metadata.xml from/to duoclient (https://jitpack.io): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Could not transfer metadata com.github.duosecurity:duo_client_java:master-SNAPSHOT/maven-metadata.xml from/to jitpack (https://jitpack.io): Not authorized , ReasonPhrase:Unauthorized.
At this point we cannot move to 5.1.x.
How can we resolve this issue?
All,
I tried the gradle 5.1.x overlay... it seems to have worked, but some oddities were involved:
Gradle:
$ gradle compileJava
Download https://jitpack.io/com/github/duosecurity/duo_client_java/-SNAPSHOT/maven-metadata.xml
Download https://jitpack.io/com/github/duosecurity/duo_client_java/duo-client/-SNAPSHOT/maven-metadata.xml
(notice the missing “MASTER” in the URLs... which do work!)
Then the Maven build for 5.0.6:
$ mvn -P local clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cas-overlay 1.0
[INFO] ------------------------------------------------------------------------
Downloading: https://jitpack.io/com/github/duosecurity/duo_client_java/master-SNAPSHOT/maven-metadata.xml
Downloading: https://jitpack.io/com/github/duosecurity/duo_client_java/master-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.github.duosecurity:duo_client_java:master-SNAPSHOT/maven-metadata.xml from/to duoclient (https://jitpack.io): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Could not transfer metadata com.github.duosecurity:duo_client_java:master-SNAPSHOT/maven-metadata.xml from/to jitpack (https://jitpack.io): Not authorized , ReasonPhrase:Unauthorized.
Currently UNABLE to move to 5.1.x or migrate from maven to gradle.
Any ideas on how can this be resolved?