Roo 插件开发 - 未找到依赖项
我正在创建一个读取 Spring Roo Scaffolding 信息并生成 jquery-mobile 应用程序的应用程序。我现在正在尝试将其构建为 Roo 插件,但由于依赖项 jar 未部署或与部署捆绑在一起而苦苦挣扎。我使用 roo 生成了一个高级插件模板。尝试使用在 roo 中测试该应用程序
osgi开始--url 文件:///插件项目路径/目标/插件包名称。
我收到错误:
org.osgi.framework.BundleException: Unresolved constraint in bundle com.uibinder [76]: Unable to resolve 76.0: missing requirement [76.0] package; (&(package=org.apache.commons.io)(version>=2.1.0)( !(version>=3.0.0)))
我相信它没有找到我的依赖项:
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
当我删除 commons-io 依赖项和代码时,一切正常。花了很多时间试图弄清楚这一点。任何帮助将不胜感激。
I am creating an application that reads the Spring Roo Scaffolding information and generates a jquery-mobile application. I'm now trying to build it as a Roo addon but struggling with the dependency jars not getting deployed or bundled with the deployment. I generated an advanced addon template using roo. Tried to test the application in roo using
osgi start --url
file:///path-to-addon-project/target/addon-bundle-name.
and i get the error:
org.osgi.framework.BundleException: Unresolved constraint in bundle com.uibinder [76]: Unable to resolve 76.0: missing requirement [76.0] package; (&(package=org.apache.commons.io)(version>=2.1.0)( !(version>=3.0.0)))
I believe it's not finding my dependency:
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
When I remove the commons-io dependency and code, everything works great. Spent way to much time trying to figure this out. Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 roo 1.2.1 中,它们现在引用 commons-io 依赖项。不再是冲突。
In roo 1.2.1 they now reference the commons-io dependencies. No longer a conflict.