2015-10-19 12 views
5

क्या किसी के पास Grails 3 एप्लिकेशन में क्लाउडिनल प्लगइन स्थापित करने और सफलता है।कस्टम मेवेन रेपो grails 3

प्लगइन निर्देश यहाँ हैं और मैं संशोधनों मुझे लगता है कि Grails 3 के लिए सही हैं बनाया है: https://bitbucket.org/sbuettner/grails-cloudinary

नीचे build.grade फ़ाइल

हालांकि, रिपोर्ट util grails कमांड लाइन है:

| त्रुटि कॉन्फ़िगरेशन ': testRuntime' के लिए सभी निर्भरताओं को हल नहीं कर सका। अधिक जानकारी के लिए 'ग्रेडल निर्भरता' टाइप करें

क्या कोई देख सकता है कि मैं क्या गलत कर रहा हूं?

buildscript { 
    ext { 
     grailsVersion = project.grailsVersion 
    } 
    repositories { 
     mavenLocal() 
     maven { url "https://repo.grails.org/grails/core" } 

     // Custom maven repo for the cloudinary plugin 
     maven { url "http://dl.bintray.com/infinit/infinit-opensource"  } 
    } 
    dependencies { 
     classpath "org.grails:grails-gradle-plugin:$grailsVersion" 
     classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.5.0' 
    } 
} 

plugins { 
    id "io.spring.dependency-management" version "0.5.2.RELEASE" 
} 

version "0.1" 
group "mchq.admin" 

apply plugin: "spring-boot" 
apply plugin: "war" 
apply plugin: "asset-pipeline" 
apply plugin: 'eclipse' 
apply plugin: 'idea' 
apply plugin: "org.grails.grails-web" 
apply plugin: "org.grails.grails-gsp" 

ext { 
    grailsVersion = project.grailsVersion 
    gradleWrapperVersion = project.gradleWrapperVersion 
} 

assets { 
    minifyJs = true 
    minifyCss = true 
} 

repositories { 
    mavenLocal() 
    maven { url "https://repo.grails.org/grails/core" } 

    // Custom maven repo for the cloudinary plugin 
    maven { url "http://dl.bintray.com/infinit/infinit-opensource" } 
} 

dependencyManagement { 
    imports { 
     mavenBom "org.grails:grails-bom:$grailsVersion" 
    } 
    applyMavenExclusions false 
} 

dependencies { 
    compile "org.springframework.boot:spring-boot-starter-logging" 
    compile "org.springframework.boot:spring-boot-starter-actuator" 
    compile "org.springframework.boot:spring-boot-autoconfigure" 
    compile "org.springframework.boot:spring-boot-starter-tomcat" 
    compile "org.grails:grails-dependencies" 
    compile "org.grails:grails-web-boot" 

    compile "org.grails.plugins:hibernate" 
    compile "org.grails.plugins:cache" 
    compile "org.hibernate:hibernate-ehcache" 
    compile "org.grails.plugins:scaffolding" 

    // https://grails-plugins.github.io/grails-spring-security-core/guide/single.html#tutorials 
    // "Install" the plugin by adding it to build.gradle 
    compile 'org.grails.plugins:spring-security-core:3.0.0.M1' 

    // https://grails.org/plugin/mail 
    // http://stackoverflow.com/questions/32602032/grails-3-mail-plugin-not-working 
    compile "org.grails.plugins:mail:2.0.0.RC2" 

    // https://bitbucket.org/sbuettner/grails-cloudinary 
    compile "grails-cloudinary:0.3" 

    runtime 'mysql:mysql-connector-java:5.1.36' 

    runtime "org.grails.plugins:asset-pipeline" 

    testCompile "org.grails:grails-plugin-testing" 
    testCompile "org.grails.plugins:geb" 

    // Note: It is recommended to update to a more robust driver (Chrome, Firefox etc.) 
    testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0' 

    console "org.grails:grails-console" 
} 

task wrapper(type: Wrapper) { 
    gradleVersion = gradleWrapperVersion 
} 

उत्तर

1

मदद के लिए धन्यवाद, लेकिन यह इसे ठीक करने के पीछा कर रहा था:

compile "org.grails.plugins:grails-cloudinary:0.3" 
0

repositories सूची maven { url "http://mvnrepository.com/artifact" } जोड़ने का प्रयास करें।

+0

सुझाव के लिए धन्यवाद लेकिन एक ही समस्या बनी हुई है। जब आप कहते हैं कि इसे रिपॉजिटरीज़ सूची में जोड़ें, तो आपका क्या मतलब है और उन सूचियों में कौन सी स्थितियों में? बिल्ड स्क्रिप्ट के साथ-साथ एक और 'रूट' स्तर एक नीचे नीचे 'भंडार' है .... –

3

एक ही समस्या थी। इस तरह मेरी रेपो जोड़ने के साथ यह निश्चित:

repositories { 
    mavenLocal() 
    maven { url "https://repo.grails.org/grails/core" } //default 
    maven { url "http://myCompanyDev1/nexus/content/groups/public/" } // my companies repo/nexus 
} 

और इस तरह यह शामिल हैं:

dependencies { 
    compile 'de.myCompany.projects.intern:ld-grails-modules:[email protected]' 
} 

सूचना "@zip" अंत में। डिफ़ॉल्ट "जार" लगता है लेकिन हमारे नेक्सस पर कोई जार नहीं था, केवल ज़िप फ़ाइल।

संबंधित मुद्दे