The moose likes Ant, Maven and Other Build Tools and the fly likes Is there any way to roll back a release? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Is there any way to roll back a release?" Watch "Is there any way to roll back a release?" New topic

Is there any way to roll back a release?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436

I'm using Maven 3.0.3. Is there any way to roll back a release? I tried to release my project, but it failed midway through when trying to create the tag …

Now when I run the release again, I get the error …

Thanks, - Dave
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33107

It sounds like you want to roll back the selenium version used rather than the Maven version. If this is the case, you just specify the version you want in your pom.xml where you request selenium. If this is done in a parent pom, you can copy that entry to your child pom which will override it.

If you want to rollback Maven, you have to install the version you want to another directory. (or delete 3.0.3 and then rollback)

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I'm not quite sure what Selenium might be doing here, but the release:prepare goal is supposed to modify the release ID in the POM, verify that all your source code has been checked in, and tag the code in version control. If your VCS is SVN, that operation is atomic. Other systems, such as CVS could potentially fail with only part of the code tagged.

IIRC, there's a backup of the POM made when the POM is updated. For the most part, you should be able to rerun the goal, possibly with an override that Maven suggests. However, I think you've made Selenium unhappy, so there may be some stuff above and beyond your Maven stuff that needs repairing.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Is there any way to roll back a release?
It's not a secret anymore!