2014-04-14 1 views
0

플러그인 다른 개인 Grails의에 플러그인.삽입 개인 Grails는 내가 라인 핵심 플러그인을 삽입하기 위해 노력하고있어

그러나 이것을 일반 프로젝트에서 사용할 때 예외는 발생하지 않습니다!

Compile error during compilation with javac. 
/home/asapcode/Documents/svn/erede/plugin/src/java/br/com/qreserva/portal/pagamento/payPal/PagamentoPayPal.java:20: error: package org.hibernate.validator.util.privilegedactions does not exist 
import org.hibernate.validator.util.privilegedactions.GetDeclaredField; 

어떤 아이디어가 있습니까?

답장을 보내 주셔서 감사합니다.

답변

0

나는 문제를 해결했다! 그러나 나는 왜 그것이 필요한지 이해하지 못한다.

app.grails.version=2.2.3 
app.name=PluginA 
plugins.acegi=0.5.3.2 
plugins.hibernate=2.2.3 
plugins.i18n-templates=1.1.0.1 
plugins.svn=1.0.1 

PluginA의 BuildConfig :

플러그인 A의 application.properties입니다

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.war.file = "target/${appName}-${appVersion}.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 { 
     grailsCentral() 
     // uncomment the below to enable remote dependency resolution 
     // from public Maven repositories 
     //mavenCentral() 
     //mavenLocal() 
     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 { 
     // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. 

     // runtime 'mysql:mysql-connector-java:5.1.5' 
     compile('org.codehaus.groovy.modules.http-builder:http-builder:0.5.2') { 
      excludes "commons-logging", "xml-apis", "groovy" 
     } 
    } 

    plugins { 
     build(":tomcat:$grailsVersion", 
       ":release:1.0.0") { 
      export = false 
     } 
    } 
} 

을 그리고 이것은 플러그인 B의 (구) application.properties입니다 :

app.grails.version=2.2.3 
app.name=PluginB 

플러그인 B의 BuildConfig (이전) :

grails.project.class.dir = "target/classes" 
grails.project.test.class.dir = "target/test-classes" 
grails.project.test.reports.dir = "target/test-reports" 

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' 
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility 
    repositories { 
     grailsCentral() 
     mavenCentral() 
     // uncomment the below to enable remote dependency resolution 
     // from public Maven repositories 
     //mavenLocal() 
     //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 { 
     // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. 

     // runtime 'mysql:mysql-connector-java:5.1.21' 
    } 

    plugins { 
     build(":tomcat:$grailsVersion", 
       ":release:2.2.1", 
       ":rest-client-builder:1.0.3") { 
      export = false 
     } 
    } 
} 

PluginB (BuildConfig)와 application.properties에 나열된 플러그인에 PluginA의 종속성을 삽입하면 제대로 작동합니다. 플러그인 B 내가이 자동으로 종속성 해결되지 플러그인 B를 이용하여 플러그인의 BuildConfig에 선을

grails.plugin.location.pluginCore = "../plugin/"; 

를 삽입 할 때 왜

내가하지 이해한다.

하지만 답변에 감사드립니다.

관련 문제