我正在使用STS和Web(WTP); Maven的; Groovy堆栈。导出Groovy STS/Maven项目中的依赖项导致无效的类路径
默认情况下,它看起来Groovy的类路径条目未标记为出口,我是用下面的警告发出:
Classpath entry GROOVY_DSL_SUPPORT will not be exported or published. Runtime ClassNotFoundExceptions may result. Classpath entry GROOVY_SUPPORT will not be exported or published. Runtime ClassNotFoundExceptions may result.
所以,我加入了图书馆从项目属性 - >部署大会 - >添加...
不过,现在我得到以下错误:
Invalid classpath publish/export dependency /Users/martypitt/springsource/2.8.1.RELEASE/sts-2.8.1.RELEASE/plugins/org.codehaus.groovy_1.8.4.xx-20111212-0900-e37-RELEASE/lib/antlr-2.7.7.jar. The project contains another dependency with the same archive name.
我工作围绕从我的pom.xml手动排除ANTLR。但是,这似乎与直觉相反,并且在我将其部署到STS之外的服务器后,让我担心问题。
有没有更合适的方法来解决这个问题?