I have a grails 2.3.8 project and an Artifactory server.
Artifactory Server requires authentication.
BuildConfig.groovy contains:
grails.project.ivy.authentication = {
repositories {
mavenRepo "http://SERVER:8081/artifactory/remote-repos"
}
credentials {
realm = "Artifactory Realm"
host = "SERVER"
username = "USER"
password = "PASSWORD"
}
}
grails.project.dependency.resolver = "maven"
grails.project.dependency.resolution = {
inherits("global") {
}
log "warn"
checksums true
legacyResolve false
repositories {
inherits true
mavenRepo id: 'Artifactory', url: "http://SERVER:8081/artifactory/remote-repos"
}
dependencies {
runtime 'com.oracle:ojdbc6:11.2.0.1.0'
build "commons-dbcp:commons-dbcp:1.4"
compile 'org.jadira.usertype:usertype.jodatime:1.9'
compile "net.sf.ehcache:ehcache-core:2.4.6"
}
plugins {
runtime ":hibernate:3.6.10.13"
runtime ":resources:1.2.7"
build ":tomcat:7.0.52.1"
compile ':cache:1.1.5'
compile ":joda-time:1.4"
}
}
When I run:
grails runApp
I get:
Starting process on MYPC/IPADDRESS
Loading Grails 2.3.8
|Configuring classpath
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for xalan:serializer:jar:2.7.1 (Use
Error |
Required Grails build dependencies were not found. This is normally due to internet connectivity issues (such as a misconfigured proxy) or missing repositories in grails-app/conf/BuildConfig.groovy. Please verify your configuration to continue.
It seems that the Ivy log configuration does not apply to maven. How to enable registration? Why are my artifacts not allowed?
source
share