./build.sh package
Task :bootWar FAILED
:bootWar (Thread[Daemon worker Thread 2,5,main]) completed. Took 5.182 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':runtimeClasspath'.
> Could not resolve org.apereo.cas:cas-mgmt-webapp-tomcat:5.3.6.
Required by:
project :
> Could not resolve org.apereo.cas:cas-mgmt-webapp-tomcat:5.3.6.
> Could not get resource 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/apereo/cas/cas-mgmt-webapp-tomcat/5.3.6/cas-mgmt-webapp-tomcat-5.3.6.pom'.
> Could not GET 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/apereo/cas/cas-mgmt-webapp-tomcat/5.3.6/cas-mgmt-webapp-tomcat-5.3.6.pom'. Received status code 409 from server:
In my file gradle.properties to know the version I go to the site http://repo1.maven.org/maven2/org/apereo/cas/cas-mgmt/
# Versions
# casmgmt.version=6.1.0-RC3-SNAPSHOT
casmgmt.version=6.0.1
springBootVersion=2.1.3.RELEASE
appServer=-tomcat
sourceCompatibility=11
targetCompatibility=11
gradleVersion=5.2.1
dependencies {
if (project.hasProperty("external")) {
compile "org.apereo.cas:cas-mgmt-webapp:${project.'casmgmt.version'}"
} else {
compile "org.apereo.cas:cas-mgmt-webapp${project.appServer}:${project.'casmgmt.version'}"
} compile "org.apereo.cas:cas-management-webapp-support-ldap:${project.'cas.version'}"
}
compile "org.apereo.cas: cas-server-support-json-service-registry: $ {project.'casmgmt.version '}"
compile "org.apereo.cas: case-management-webapp-support-ldap: $ {project.'cas.version '}"Hi alain,
I solved the problem by adding:
external = false
in gradle.properties
regards,
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/ec74e817-9b35-4d57-9905-e4051fd49c79%40apereo.org.
-- Alexi
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/e2085391-c053-14c9-9ecf-e1e77a6d28d9%40uc.cl.
With this parameter, you are sure to download all dependencies of cas-management. Now you can add the necessary dependencies in your build.gradle
dependencies {
if (project.hasProperty("external")) {}
remember to change 'cas.version' to 'casmgmt.version' when you
configure dependencies on cas-management.
regards,
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANGqrfOoGf633zjjVcAbOCMYW5YfkOo-5%3DPbiP-AWd34dEFv7g%40mail.gmail.com.
-- Alexi
dependencies {
if (project.hasProperty ("external")) {
compile "org.apereo.cas: case-mgmt-webapp: $ {project.'casmgmt.version '}"
} else {
compile "org.apereo.cas: case-mgmt-webapp $ {project.appServer}: $ {project.'casmgmt.version '}"
}
compile "org.apereo.cas: case-server-support-json-service-registry: $ {project.'casmgmt.version '}"}
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/org/springframework/spring-aop/5.2.0.M2/spring-aop-5.2.0.M2.pom]
Resource missing. [HTTP HEAD: https://repo.maven.apache.org/maven2/org/springframework/spring-aop/5.2.0.M2/spring-aop-5.2.0.M2.jar]
2019-07-03 08:29:28,436 WARN [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.apache.catalina.valves.AccessLogValve.setMaxDays(I)V
2019-07-03 08:29:28,443 WARN [org.springframework.boot.context.properties.migrator.PropertiesMigrationListener] -
The use of configuration keys that have been renamed was found in the environment:
Property source 'bootstrapProperties':
Key: server.context-path
Replacement: server.servlet.context-path
Each configuration key has been temporarily mapped to its replacement for your convenience. To silence this warning, please update your configuration to use the new keys.
2019-07-03 08:29:28,463 ERROR [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] -
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer.customizeAccessLog(TomcatWebServerFactoryCustomizer.java:269)
The following method did not exist:
org.apache.catalina.valves.AccessLogValve.setMaxDays(I)V
The method's class, org.apache.catalina.valves.AccessLogValve, is available from the following locations:
jar:file:/usr/share/java/tomcat8-catalina-8.5.14.jar!/org/apache/catalina/valves/AccessLogValve.class
It was loaded from the following location:
file:/usr/share/java/tomcat8-catalina-8.5.14.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.apache.catalina.valves.AccessLogValve
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/da365e43-fe7c-adb0-ab9b-3a876a1ff5f5%40uc.cl.