Пытаюсь собрать приложение используя Gradle.Ошибка говорит, что «org.apache.rampart требуется:« xalan-2.7.1.jar »: rampart-core / policy / trust.Но он не был загружен.
C:\dev\workspace_A_Gradle\a-notification>gradle build
> Configure project :
Current JDK Version --> 1.8
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find org.apache.xalan:xalan:2.7.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/apache/xalan/xalan/2.7.1/xalan
-2.7.1.pom
- https://repo.maven.apache.org/maven2/org/apache/xalan/xalan/2.7.1/xalan
-2.7.1.jar
- https://artifactory.alight.com/artifactory/list/acd-release-maven-local
/org/apache/xalan/xalan/2.7.1/xalan-2.7.1.pom
- https://artifactory.alight.com/artifactory/list/acd-release-maven-local
/org/apache/xalan/xalan/2.7.1/xalan-2.7.1.jar
Required by:
project :
project : > org.apache.rampart:rampart-core:1.6.2
project : > org.apache.rampart:rampart-policy:1.6.2
project : > org.apache.rampart:rampart-trust:1.6.2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
1 actionable task: 1 executed
Build.gradle
plugins {
id 'java'
id 'maven'
}
repositories {
mavenCentral()
maven {
url = "https://artifactory.alight.com/artifactory/list/acd-release-maven-local"
}
}
dependencies {
//classpath "org.springframework.boot:spring-boot-gradle-plugin:2.1.2.RELEASE"
compile 'org.springframework.boot:spring-boot-starter:2.1.2.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-web:2.1.2.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-jetty:2.1.2.RELEASE'
compile 'org.springframework.kafka:spring-kafka:2.1.7.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-log4j2:2.1.2.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-data-rest:2.1.2.RELEASE'
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
compile 'com.flipkart.zjsonpatch:zjsonpatch:0.4.4'
compile 'com.fasterxml.jackson.core:jackson-core:2.9.6'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.10.0'
compile 'org.apache.logging.log4j:log4j-api:2.10.0'
compile 'org.apache.logging.log4j:log4j-core:2.10.0'
compile 'org.slf4j:jcl-over-slf4j:1.7.25'
compile 'org.slf4j:jul-to-slf4j:1.7.25'
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.6'
compile 'org.mockito:mockito-core:2.15.0'
compile 'com.github.ben-manes.caffeine:caffeine:2.6.2'
compile 'javax.inject:javax.inject:1'
compile 'com.hasbro:hasbro-webservice-util:1.0'
compile 'com.hasbro:EmployerMgmt:1.0'
compile 'com.hasbro:PersonMessaging:1.0'
compile 'com.hewitt.utils:HewittUtil:2.0'
compile 'org.apache.axis2:axis2-transport-http:1.6.2'
compile 'org.apache.axis2:axis2-transport-local:1.6.2'
compile 'org.apache.axis2:axis2-kernel:1.6.2'
compile 'org.apache.axis2:axis2-adb:1.6.2'
compile 'org.apache.xalan:xalan:2.7.1'
compile 'xalan:serializer:2.7.1'
compile 'org.apache.rampart:rampart-core:1.6.2'
compile 'org.apache.rampart:rampart-policy:1.6.2'
compile 'org.apache.rampart:rampart-trust:1.6.2'
testCompile 'org.springframework.boot:spring-boot-starter-test:2.1.2.RELEASE'
testCompile 'org.powermock:powermock-module-junit4:2.0.0'
}
Я увидел, что Gradle автоматически загрузил xalan-2.7.1.jar.Я не знаю, как исправить эту ошибку.