Roo 插件开发 - 未找到依赖项

发布于 2025-01-03 23:32:47 字数 795 浏览 4 评论 0原文

我正在创建一个读取 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ˇ宁静的妩媚 2025-01-10 23:32:47

在 roo 1.2.1 中,它们现在引用 commons-io 依赖项。不再是冲突。

In roo 1.2.1 they now reference the commons-io dependencies. No longer a conflict.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文