Or how we will sup­port you even in the worst of all con­di­tions...

Imag­ine you need a bug­fix in a hur­ry but the in­ter­net goes down for a cer­tain amount of time. We can han­dle this - thanks to a spe­cial maven pro­file called "lo­cal".

Usu­al­ly, dur­ing the process of re­lease we need to cre­ate a tag, push this tag to a re­mote hg repo and de­ploy all the ar­ti­facts (jars) to our on­line maven repos­i­to­ry (re­served for our cus­tomers).

This process re­quires in­ten­sive use of In­ter­net con­nec­tiv­i­ty - so with­out the In­ter­net the process will not work.

But as every­thing may fail some day we might be in a sit­u­a­tion where we can not use this clas­si­cal process.

To be able to re­lease un­der these con­di­tions there are 2 main goals to be achieved :
  • pre­vent the re­lease process from push­ing to our re­mote source code repos­i­to­ry
  • pre­vent the re­lease pro­ces from de­ploy­ing the ar­ti­facts to the re­mote maven repo

How to from push­ing to our re­mote source code repos­i­to­ry

Sim­ply add to the pom:

   <plugin>
      <artifactId>maven-release-plugin</artifactId>
      <configuration>
         <pushChanges>false</pushChanges>
         <localCheckout>true</localCheckout>
      </configuration>
   </plugin>

This works be­cause we use hg rather than SVN.

(In­ter­est­ing­ly, this is - in our ex­pe­ri­ence - the ONLY ad­van­tage of git/hg over SVN. For­get all the mar­ket­ing about merg­ing be­ing eas­i­er with git or hg. The hard part about merg­ing is the con­flicts, and you still have those with­out SVN.)

How to pre­vent the re­lease pro­ces from de­ploy­ing the ar­ti­facts to the re­mote maven repo

That's even sim­pler:

   <plugin>
      <artifactId>maven-deploy-plugin</artifactId>
      <configuration>
         <skip>true</skip>
      </configuration>
   </plugin>

UPS to the res­cue

Last step: get­ting the re­lease to you. We'll send it on a USB stick, via UPS!

Cu­ri­ous to know what it is we re­lease? Down­load our FREE java trans­ac­tion man­ag­er:

Down­load Now

RSS

Com­ments

Add a com­ment

Cor­po­rate In­for­ma­tion

Atomikos Cor­po­rate Head­quar­ters
Hove­niersstraat, 39/1, 2800
Meche­len, Bel­gium

Con­tact Us

Copy­right 2026 Atomikos BVBA | Our Pri­va­cy Pol­i­cy
By us­ing this site you agree to our cook­ies. More info. That's Fine