在 Roo 中更新/重新生成 pom.xml

发布于 2024-11-18 17:19:50 字数 198 浏览 7 评论 0原文

我有一个使用 Spring Roo 1.0 制作的项目,现在我想继续使用 Spring Roo 1.1.4。从那时起,发生了很多变化,所以我希望 Roo 更新 pom.xml,因为我似乎记得它曾经这样做过。但是,它根本不影响我的 pom.xml 。我能做什么来强制它更新 pom.xml (至少将对 Roo 1.0.0 的依赖关系更改为 1.1.4 :-) )

干杯

I've got a project that was made with Spring Roo 1.0 that I now want to continue using Spring Roo 1.1.4 with. A lot has changed since then, so I would like Roo to update the pom.xml as I seem to remember it used to do that. However, it doesn't touch my pom.xml at all. What can I do to force it to update the pom.xml (at the very least change the dependency on Roo 1.0.0 to 1.1.4 :-) )

Cheers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

默嘫て 2024-11-25 17:19:50

如果您没有 log.roo 文件,则应执行 Roo 文档

  • 使用当前安装的(即现有的)运行备份命令
    Spring Roo 版本。这会有所帮助
    创建您的项目的 ZIP,其中
    如果您需要恢复,可能会有所帮助。不
    安装新版本的 Roo 直至
    您首先完成了此备份。
    当然,如果您可以跳过此步骤
    你有另一种备份技术
    并对此充满信心。

  • 编辑项目的 pom.xml 并验证 Spring Roo 注释 JAR
    与您的新 Roo 版本相匹配
    安装。 Spring Roo 1.1.0.M3 和
    上面会自动执行此操作
    当您将其加载到
    现有项目。

  • 编辑项目的 pom.xml 并验证主要库是否与
    Roo 现在使用的新版本。
    最简单的方法是
    创建一个新目录并使用“roo
    编写 Clinic.roo" 脚本,然后比较您的
    现有的 pom.xml 反对
    新创建的 Petclinic pom.xml。

  • 按照上述修改 pom.xml 后,您需要
    更新您的 Eclipse .classpath 文件。
    实现这一目标的最简单方法是
    使用 mvn eclipse:clean eclipse:eclipse
    从命令提示符,或使用
    在 roo> 执行 eclipse 命令
    外壳提示符。您可以跳过此步骤
    如果你使用 m2eclipse,就像
    适用于任何 SpringSource 工具套件的案例
    用户。

If you don't have the log.roo file than you should go through to 'official' upgrade process described in the Roo docs:

  • Run the backup command using your currently-installed (i.e. existing)
    version of Spring Roo. This will help
    create a ZIP of your project, which
    may help if you need to revert. Don't
    install the new version of Roo until
    you've firstly completed this backup.
    Naturally you can skip this step if
    you have an alternate backup technique
    and have confidence in it.

  • Edit your project's pom.xml and verify the Spring Roo annotations JAR
    matches the new Roo release you are
    installing. Spring Roo 1.1.0.M3 and
    above will do this automatically on
    your behalf when you load it on an
    existing project.

  • Edit your project's pom.xml and verify that major libraries match the
    new versions that are now used by Roo.
    The simplest approach to doing this is
    to create a new directory and use "roo
    script clinic.roo" and then diff your
    existing pom.xml against the
    newly-created Petclinic pom.xml.

  • After modifying the pom.xml as described above, you will need to
    update your Eclipse .classpath file.
    The simplest way to achieve this is to
    use mvn eclipse:clean eclipse:eclipse
    from the command prompt, or use the
    perform eclipse command at the roo>
    shell prompt. You can skip this step
    if you use m2eclipse, as would be the
    case for any SpringSource Tool Suite
    user.

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