• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is there any way to roll back a release?

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bring out your dead! Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic