Загрузка из хранилища плагинов Grails завершается неудачно, хотя плагин есть - PullRequest
0 голосов
/ 09 ноября 2018

Я пытаюсь использовать плагин remote-control с Grails 2.5.6. Согласно документации, я добавил следующее к BuildConfig.groovy:

repositories {
    ...
    mavenRepo "http://dl.bintray.com/alkemist/maven/"
}

dependencies {
    ...
    compile "org.grails.plugins:remote-control:2.0"
}

plugins {
    test ":remote-control:2.0"
}

Теперь вывод grails refresh-dependencies:

| Loading Grails 2.5.6
| Configuring classpath
| Downloading: org/grails/plugins/remote-control/2.0/remote-control-2.0.pom
| Downloading: io/remotecontrol/remote-core/0.7/remote-core-0.7.pom
| Downloading: io/remotecontrol/remote-transport-http/0.7/remote-transport-http-0.7.pom
| Downloading: org/grails/plugins/remote-control/2.0/remote-control-2.0.zip
| Downloading: io/remotecontrol/remote-transport-http/0.7/remote-transport-http-0.7.jar
| Downloading: io/remotecontrol/remote-core/0.7/remote-core-0.7.jar
| Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins)

Чтобы выделить, мы получаем

Не удалось найти артефакт org.grails.plugins: дистанционное управление: jar: 2.0 в grailsCentral (https://repo.grails.org/grails/plugins)

Запутанная часть в том, что плагин, кажется, именно там, где он должен быть:

enter image description here

Я чувствую, что упускаю что-то очевидное - что это?

1 Ответ

0 голосов
/ 12 ноября 2018

Документация устарела по-другому: добавление зависимости не является необходимым, и фактически приводит к разрешающей ошибке в вопросе (я обнаружил источники plugin , а не JAR, пригодный для использования в качестве зависимости кода) .

После удаления

compile "org.grails.plugins:remote-control:2.0"

из dependencies, Grails правильно обновляет зависимости и работает с плагином.

...