Re: Using ${revision} as a version

2015-09-26 Thread Lennart Jörelid
I have painfully noted that the currently only [properly] working way is to use profiles to switch between values given on the command line and some type of default value (given in another profile). Typically, it takes on the pattern/form as shown below - and it would be really nice not to have to

Re: Using ${revision} as a version

2015-09-26 Thread Karl Heinz Marbaise
Hi, so after diving into this problem... (https://issues.apache.org/jira/browse/MNG-5895)... I have found the culprit (in my opinion) at Maven-assembly-plugin located in this class DefaultDependencyResolver: at the following method: private Set resolveTransitively( final Set dependenc

RE: Using ${revision} as a version

2015-08-24 Thread Martin Gainty
> Date: Sun, 23 Aug 2015 17:16:07 +0200 > From: khmarba...@gmx.de > To: dev@maven.apache.org > Subject: Using ${revision} as a version > > Hi, > > I have test project where i defined the pom like this: > > ... >4.0.0 > >com.soebes.ex

Using ${revision} as a version

2015-08-23 Thread Karl Heinz Marbaise
Hi, I have test project where i defined the pom like this: ... 4.0.0 com.soebes.examples.j2ee parent ${revision} pom If i define the revision on command line like this. mvn -Drevision=1.0-SNAPSHOT clean package everything fine... But now i want to make the usage a bit more conveni