2014-10-15 4 views
0

Я не могу импортировать локальный плагин в мое приложение ти этих конвенций:Невозможно импортировать локальный плагин в Grails 2.3.11

grails.plugin.location.MyPlugin= '../MyPlugin' 

или

grails.plugin.location.'MyPlugin' = '../MyPlugin' 

или

grails.plugin.location.'MyPlugin' = 'c:/prj/MyPlugin' 

или

grails.plugin.location.'MyPlugin' = 'c:\\prj\\MyPlugin' 

С или без него внутри плагина conf.

//compile ":myplugin:0.1-SNAPSHOT" 

Результат:

| Запуск Grails приложению

Error | 
WARNING: Inline plugins for [MyPlugin] cannot be read due to error: ivy pattern must be absolute: 
    C:\Users\Luigi\.m2\repository 
    /[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).pom (Use --stacktrace to see the full trace) 
+0

Попробуйте использовать полный путь к вашему плагину. – emilan

+0

Уже сделано :( –

+0

Тогда не могли бы вы обновить код. – emilan

ответ

0

Попробуйте так (Мой домашний путь это '/ дом', и плагин 'urlrewrite')

grails.project.dependency.resolver = "maven" // or ivy 

//use a copy of urlrewrite fixed in enviroment PRODUCCTION because, the repo don't have a functional version for grails 2.5.0 
if (Environment.current == Environment.PRODUCTION) { 
    grails.plugin.location.urlrewrite = '/home/sam/Repositorios/BTask/Programacion/BTask/src/plugins/urlrewrite-0.1' 
} 

grails.project.dependency.resolution = { 
...