Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Karl Heinz Marbaise
Hi, the Maven Release Plugin 3.0.0-M1... supports of writing own rules #1 .. etc. Furthermore I would use simply things like versions-maven-plugin otherwise (or tycho versions plugin to support OSGi with some script steps in Jenkins for git magic (which I used a long time ago)... What is the p

Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Nick Stolwijk
Hi Karl, Unfortunately, the Maven-Release-Plugin doesn't cut it for us. 1. It doesn't support Tycho builds with regard to versions [1] 2. We do use release branches on our products (Eclipse RCP and docker containers) to do some acceptance testing. That's why we used to use the Atlassian Gitflow

Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Karl Heinz Marbaise
Hi, On 02.11.20 11:27, Nick Stolwijk wrote: Hi folks, We are struggling with our buildserver (Jenkins) and the Git-Flow Maven Plugin[1] with regards to execute the Maven executable to run specific goals and phases during release (i.e. run versions plugin to change version or run `mvn verify` to

Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Thomas Broyer
I'm not familiar with Maven Invoker, but the Maven Invoker Plugin does not have such code. It will call setMavenHome only if there's a configured value: https://github.com/apache/maven-invoker-plugin/blob/dfd3c3680f31cb36ef1c14c18f4ea8b8d6115151/src/main/java/org/apache/maven/plugins/invoker/Abstra

Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Nick Stolwijk
Thanks, I looked at the Maven Release Plugin and I see that the logic of where Maven is installed is not in the Maven-Invoker, but in the release plugin [1]. There is some logic on how to 'find' Maven, using environment variables like 'maven.home', 'MAVEN_HOME' and 'M2_HOME'. Does this mean that t

Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Thomas Broyer
Maybe have a look at Maven Invoker: https://maven.apache.org/shared/maven-invoker/ (it's what the Maven Invoker Plugin and Maven Release Plugin use) On Mon, Nov 2, 2020 at 11:28 AM Nick Stolwijk wrote: > Hi folks, > > We are struggling with our buildserver (Jenkins) and the Git-Flow Maven > Plug

Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Nick Stolwijk
Hi folks, We are struggling with our buildserver (Jenkins) and the Git-Flow Maven Plugin[1] with regards to execute the Maven executable to run specific goals and phases during release (i.e. run versions plugin to change version or run `mvn verify` to check project). The gitflow-m-p uses a flag t