Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cacheDir dosent work #52

Open
ghost opened this issue Feb 22, 2013 · 0 comments
Open

cacheDir dosent work #52

ghost opened this issue Feb 22, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 22, 2013

When i try to run the project offline, just dosent work:

| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

  • org.grails.plugins:elasticsearch:0.18.7.1-SNAPSHOT

Here is my config file:

grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
grails.server.port.http=8080
grails.project.plugins.dir="plugins"
//grails.project.war.file = "target/${appName}-${appVersion}.war"

grails.project.dependency.resolution = {

cacheDir "target/ivy-cache"

// inherit Grails' default dependencies
inherits("global") {
    // specify dependency exclusions here; for example, uncomment this to disable ehcache:
    // excludes 'ehcache'
}
log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
checksums true // Whether to verify checksums on resolve

repositories {
    inherits true // Whether to inherit repository definitions from plugins

    grailsPlugins()
    grailsHome()
    grailsCentral()

    mavenLocal()
    mavenCentral()
    mavenRepo "http://oss.sonatype.org/content/repositories/releases/"
    // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
    //mavenRepo "http://snapshots.repository.codehaus.org"
    //mavenRepo "http://repository.codehaus.org"
    //mavenRepo "http://download.java.net/maven/2/"
    //mavenRepo "http://repository.jboss.com/maven2/"
}
dependencies {
    compile 'org.imgscalr:imgscalr-lib:4.2'
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
    // runtime 'mysql:mysql-connector-java:5.1.20'
}

plugins {

    runtime ":hibernate:$grailsVersion"
    //runtime ":database-migration:1.1"
    runtime ":jquery:1.8.3"
    runtime ":resources:1.2.RC2"
    compile ":cache:1.0.1"

    // Uncomment these (or add new ones) to enable additional resources capabilities
    compile ":cache-headers:1.1.5"
    runtime ":zipped-resources:1.0"
    runtime ":cached-resources:1.0"
    runtime ":mongodb:1.1.0.GA"
    //runtime ":yui-minify-resources:0.1.4"

    build ":tomcat:$grailsVersion"

    compile ":spring-security-core:1.2.7.3"
    compile ":mail:1.0.1"
    compile ":quartz:1.0-RC5"
    compile ":elasticsearch:0.18.7.1-SNAPSHOT"

    //compile ":platform-core:1.0.RC5"
    //compile ":email-confirmation:2.0.6"
    //compile ":recaptcha:0.5.3"
    //compile ":asynchronous-mail:1.0-RC3"
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants