Jeff
 
http://mojo.codehaus.org/buildnumber-maven-plugin/usage.html
 
i would suggest putting the buildnumber into <manifestEntries>
 inside the META-INF\manifest.mf

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

 
> From: [email protected]
> Date: Wed, 12 Jun 2013 12:17:58 -0600
> Subject: Putting buildNumber into Manifest...
> To: [email protected]
> 
> We have a continuous deployment system that constantly triggered by SCM
> changes and builds/pushes our WAR files to our various environments.
> 
> I use the maven-war-plugin to insert specifics of the artifact into the
> MANIFEST.MF.  However, the version for SNAPSHOTs is always in the form
> 1.1.1-SNAPSHOT, but would like to have it include the build number that
> matches what is in our internal Maven Repository (e.g.,
> 1.1.1-2013050323423-27).
> 
> This might be a chicken and egg scenario, but is there a way to somehow use
> the buildNumber in the MANIFEST instead of the SNAPSHOT qualifier so we can
> easily see when troubleshooting which version is really deployed?
> 
> Thanks!
> 
> -- 
> Jeff Vincent
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
> I ♥ DropBox <http://db.tt/9O6LfBX> !!
                                          

Reply via email to