aspose file tools*
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
Author

Is there any way to roll back a release?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30294
    
150

Dave,
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)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any way to roll back a release?