Re: maven-exec-plugin problem

2019-07-04 Thread Mirko Friedenhagen
You could try the exec-maven-plugin approach and use mvn -N to restrict the execution to the reactor parent *if* all your reactor modules have the same version. Concerning the help-Plugin : forceStdout is a very recent feature, you need at least version 3.1.0, try: mvn -N -q org.apache.maven.pl

Re: maven-exec-plugin problem

2019-07-02 Thread 'Jörg Hohwiller' via mojohaus-dev
gotcha: https://github.com/devonfw-forge/keywi/blob/master/pom.xml#L225 ➜ keywi git:(feature/fix-jpa-setup) ✗ mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout 1.0.0-SNAPSHOT% Am Dienstag, 2. Juli 2019 14:41:56 UTC+2 schrieb Jörg Hohw

Re: maven-exec-plugin problem

2019-07-02 Thread 'Jörg Hohwiller' via mojohaus-dev
very strange: ➜ keywi git:(feature/fix-jpa-setup) ✗ mvn help:evaluate -Dexpression=project.version -DforceStdout [INFO] Scanning for projects... [INFO] [INFO] Reactor Build Order: [INFO] [INFO] keywi

Re: maven-exec-plugin problem

2019-07-02 Thread 'Jörg Hohwiller' via mojohaus-dev
Hi, it is not even ci-friendly. I have the version configured statically in that project: https://github.com/devonfw-forge/keywi/blob/master/pom.xml#L7 Not a clue what is going wrong with help-plugin in this setup... Any hit to shed a light would be highly appreciated... Cheers Jörg Am Diens

Re: maven-exec-plugin problem

2019-07-02 Thread 'Jörg Hohwiller' via mojohaus-dev
Hi again, as always murphies law applies. # git clone https://github.com/devonfw-forge/keywi.git # mvn help:evaluate -Dexpression=project.version -q -DforceStdout # mvn -q exec:exec -Dexec.executable=echo -Dexec.args='${project.version}' 1.0.0-SNAPSHOT 1.0.0-SNAPSHOT 1.0.0-SNAPSHOT 1.0.0-SNAPSHOT

Re: maven-exec-plugin problem

2019-07-02 Thread 'Jörg Hohwiller' via mojohaus-dev
Hi Alexei, Awesome! This does not solve all my problems as I need to check for a convergent version (excluding potential "dev-SNAPSHOT" version of parents that do not get released) throughout the reactor of a multi-module project but you gave me the right hint and missing link to get it done.

Re: maven-exec-plugin problem

2019-06-30 Thread Alexei Znamensky
Hi Jörg, You will want to: mvn help:evaluate -Dexpression=project.version -q -DforceStdout as prescribed in https://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html Cheers, Alexei On Monday, July 1, 2019 at 9:38:41 AM UTC+12, Jörg Hohwiller wrote: > > Hi there, > in order to dete