首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >加载插件管理器时出错:无法创建类[org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]的新实例

加载插件管理器时出错:无法创建类[org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]的新实例
EN

Stack Overflow用户
提问于 2014-11-02 14:27:09
回答 1查看 991关注 0票数 0

在尝试创建Grails插件项目并使用以下命令时,收到有关在grails中加载UrlMappings插件的错误消息:

grails create-plugin user-management

然后在用户管理项目中:

grails create-pom xxx.xxxxx

mvn grails:run-app

我看了一下Error loading UrlMappingsPlugin中描述的建议解决方案,这个解决方案并没有解决我的问题。

来自maven info的系统详细信息:

代码语言:javascript
复制
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-15T04:37:52+10:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10", arch: "x86_64", family: "mac"

请在下面找到完整的错误消息:

代码语言:javascript
复制
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for xxx.xxxxx:user-management:grails-plugin:0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 74, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building user-management 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- grails-maven-plugin:2.4.4:run-app (default-cli) @ user-management ---
|Loading Grails 2.4.4
|Configuring classpath
|Running pre-compiled script
.
|Environment set to development
.................................
|Packaging Grails application
.....................Error
|
Error loading plugin manager: Could not create a new instance of class [org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]! (Use --stacktrace to see the full trace)
EN

回答 1

Stack Overflow用户

发布于 2014-12-10 19:36:58

它似乎已经在Apache Maven 3.2.3中得到了修复,因为现在一切都运行得很好,没有任何错误。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26696653

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档