我为grails项目安装了quartz插件并创建了Job。
BuildConfig.groovy
plugin {
compile ":quartz:1.0.2"
}
现在我希望有以下插件来监控我创建的作业。
https://grails.org/plugin/quartz-monitor
要安装此插件,请说
在BuildConfig.groovy中添加依赖项:
compile ':quartz-monitor:<plugin version>'
我添加了
compile ':quartz-monitor:1.1'
但它将错误视为:
There was an error loading the BuildConfig: Bad artifact coordinates :quartz-monitor:1.1, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
深入挖掘后,我开始了解grails的插件回购
http://repo.grails.org/grails/plugins/org/grails/plugins/quartz-monitor/
它有一个这个插件的pom文件,如quartz-monitor-1.1.pom
<modelVersion>4.0.0</modelVersion>
<groupId>org.grails.plugins</groupId>
<artifactId>quartz-monitor</artifactId>
<packaging>zip</packaging>
<version>1.1</version>
......
所以,我做了更改,将groupId从这里添加到我的BuildConfig.groovy
现在依赖关系看起来像
compile 'org.grails.plugins:quartz-monitor:1.1'
但现在我收到错误
Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:quartz-monitor:jar:1.1 in grailsCentral (http://repo.grails.org/grails/plugins)
如何安装此插件。