niklassaers
niklassaers

Reputation: 8810

update / regenerate pom.xml in Roo

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

Upvotes: 1

Views: 1331

Answers (1)

abalogh
abalogh

Reputation: 8281

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.

Upvotes: 4

Related Questions