Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Is there any way to roll back a release?

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • 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: 39392
761
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • 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)
 
Bartender
Posts: 20924
127
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!