2012/1/20 Thomas Scheffler <thomas.scheff...@uni-jena.de>: > Am 20.01.2012 15:30, schrieb Stephen Connolly: > >> 2012/1/20 Thomas Scheffler<thomas.scheff...@uni-jena.de>: >>> >>> Am 20.01.2012 12:40, schrieb Stephen Connolly: >>> >>>> You can stuff what ever you want in tge manifest. >>>> >>>> Google is your friend: maven jar plugin manifest customization >>> >>> >>> >>> Hi, >>> >>> yeah I know that. But how can I put the "unique version number" into the >>> JAR >>> manifest? > > > OK, let me put this in another form, so you might understand what I was > asking you. > > I know how to put custom keys and values into a manifest. That's the "yeah I > know that" above. > > The question should have been understand like this: How can I acquire the > "unique version number" that makes of "1.0-SNAPSHOT" locally > "1.0-20120120.121003-6" remotely, so that I can put it into the JAR manifest > of the JAR file that is deployed in a remote repository?
That string is decided when deploy:deploy is invoked, so you cannot put that string in. > > Or in other words: > The substring "20120120.121003-6" is changing at every deployment. I want > that part in the manifest. > > > Thomas > > >> >> http://bit.ly/zijlWA >> >> See the example on that screen... >> >> See how properties are substituted in? >> >> Then you need to go to http://to.justpitch.me/yiTp6D >> >> -Stephen >> >>> >>> Thomas >>> >>> >>>>> Am 20.01.2012 10:32, schrieb Stephen Connolly: >>>>> >>>>>> It cannot. >>>>>> >>>>>> That is part of the spec for the layout of a Maven repository. >>>>>> >>>>> >>>>> Is there a way to embed the unique version string into the JAR manifest >>>>> then? If I test an application with a snapshot jar I want stick with >>>>> that >>>>> specific version when deploying the application later. This should be >>>>> done >>>>> automatically. >>>>> >>>>> 1. Do some automatic test, if they succeed gather the unique version >>>>> number. >>>>> 2. At deploy time use the last successful timestamp. >>>>> >>>>> Maybe someone could help me with that... :-) >>>>> >>>>> regards >>>>> >>>>> Thomas >>>>> >>>>> >>>>>> -Stephen >>>>>> >>>>>> 2012/1/20 Thomas >>>>>> Scheffler<thomas.scheffler@**uni-jena.de<thomas.scheff...@uni-jena.de> >>>>>> >>>>>>> : >>>>>> >>>>>> >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I want to create a unique SNAPSHOT version that does not consist of >>>>>>> timestamp and buildnumber but is created by a defined property. >>>>>>> >>>>>>> I read the docs and googled for a solution but found no way to alter >>>>>>> the >>>>>>> unique version string. How can this be achieved? >>>>>>> >>>>>>> regards >>>>>>> >>>>>>> Thomas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org