• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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: 42003
911
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: 28316
207
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.
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic