我現在正遇到grails依賴關係,只有jar文件中的pom.xml。基本上,我試圖使用grails依賴包括neo4j,其中主文件只包含pom.xml http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22neo4j%22。Grails的依賴關係neo4j
這是我BuildConfig.groovy
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.war.file = "target/ROOT.war"
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excludes 'ehcache'
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
// uncomment the below to enable remote dependency resolution
// from public Maven repositories
mavenLocal()
// mavenCentral()
// mavenRepo "http://m2.neo4j.org/snapshots/"
// flatDir name:'neo4j', dirs:'/lib/neo4j'
//mavenRepo "http://snapshots.repository.codehaus.org"
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
/*
* Configure our resolver.
*/
// def libResolver = new org.apache.ivy.plugins.resolver.URLResolver()
// ['libraries', 'builds'].each {
// libResolver.addArtifactPattern(
// "/Users/ncharass/.ivy/cache/[artifact]-[revision].[ext]")
//
// }
// libResolver.name = "my-repository"
// libResolver.settings = ivySettings
// resolver libResolver
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
compile 'org.neo4j:neo4j:1.4.1'
// runtime 'mysql:mysql-connector-java:5.1.13'
}
}
這似乎已成功下載的所有jar文件,但這些罐子只包含pom.xml的,它似乎搖籃或常春藤不拿起任何POM。 XML的任何參考,所以我得到了併發症的錯誤。
我嘗試了幾乎所有東西,但它似乎並不奏效。另外,我從neo4j網站下載的lib也只包含pom.xml。
請幫忙! :(