Error content
The pom.xml of CAs overlay increased the cas-server-support-pm-jdbc.jary dependency,
Packaging (MVN package) with the following error
D:\casoverlay\cas-overlay-template>mvn Package[info] scanning forprojects ... [INFO] [INFO]------------------------------------------------------------------------[INFO] Building cas-overlay1.0[INFO]------------------------------------------------------------------------downloading:http://oss.sonatype.org/content/repositories/releases/org/apereo/cas/cas-server-support-pm-jdbc/5.1.9/cas-server-support-pm-jdbc-5.1.9. Pomdownloading:https://build.shibboleth.net/nexus/content/repositories/releases/org/apereo/cas/cas-server-support-pm-jdbc/5.1.9/cas-server-support-pm-jdbc-5.1.9. Pomdownloading:https://Repo.spring.io/milestone/org/apereo/cas/cas-server-support-pm-jdbc/5.1.9/cas-server-support-pm-jdbc-5.1.9. Pomdownloading:http://maven.aliyun.com/nexus/content/repositories/central/org/apereo/cas/cas-server-support-pm-jdbc/5.1.9/cas-server-support-pm-jdbc-5.1.9. pom[warning] the Pom forOrg.apereo.cas:cas-server-support-pm-jdbc:jar:5.1.9is missing, no dependency information Available[info]------------------------------------------------------------------------[INFO] BUILD Failure[info]------------------------------------------------------------------------[INFO] Total Time:18.015S[info] finished at:2018- --03T20: -: the+ ,:xx[INFO] Final memory:23m/294m[info]------------------------------------------------------------------------[ERROR] Failed to execute goal on project CAS-overlay:could not resolve dependencies forProject org.apereo.cas:cas-Overlay:war:1.0: Failure toFindOrg.apereo.cas:cas-server-support-pm-jdbc:jar:5.1.9 inchhttp//Oss.sonatype.org/content/repOsitories/releases/was CachedinchThe local repository, resolution won't be reattempteduntilThe update interval ofsonatype-releases has elapsed or updates is forced [help1][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 Moreinformation about the errors and possible solutions, please read the following articles:[error] [ Help1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception
Cause of error
This may be CAs 5.1.9 a bug, the background server unexpectedly did not Cas-server-support-pm-jdbc:jar 5.1.9 version caused.
The workaround is also simple, using the current version of CAs, the most recent stable version I wrote this time was 5.2.5.
To modify the version number of a pom.xml
<Properties> <cas.version>5.2.5</cas.version> <springboot.version>1.5.3.RELEASE</springboot.version> <!--App.server could Be-jetty,-undertow,-tomcat, or blank if you plan to provide AppServer - <App.server>-tomcat</App.server> <Maven.compiler.source>1.8</Maven.compiler.source> <Maven.compiler.target>1.8</Maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </Properties>
RePack MVN Package
It's OK.
CAS 5.x Building FAQ Series (3). Failure to find org.apereo.cas:cas-server-support-pm-jdbc:jar:5.1.9