slachiewicz opened a new pull request, #1034:
URL: https://github.com/apache/maven-archetype/pull/1034

   maven-invoker is deprecated in favour of 
[maven-executor](https://github.com/apache/maven-executor) 
(apache/maven-invoker#164). The three places that run Maven build an 
`ExecutorRequest` and run it with `ForkedMavenExecutor` on the installation 
`maven.home` points to, which is what the injected `Invoker` resolved before: 
the `integration-test` mojo's post-generation goals, the `generate` mojo's 
post-generation goals, and the archetype creator's build of the generated 
archetype. `MavenBuilds` in archetype-common holds the two lines shared by all 
of them.
   
   Two details worth knowing. The executor closes the streams it is given when 
the build ends, so the streams handed to it are wrappers that only flush: 
`System.out` for the mojos that never wrote a log, and the IT `build.log`, 
which the verify script keeps printing to after the build. And `BuildLog` 
mirrors the build's output to the Maven log line by line from the stream now, 
instead of through the invoker's `InvocationOutputHandler`.
   
   Verified: `mvn -Prun-its install` → 33 ITs passed (6 of them run 
post-generation goals, all with exit code 0), unit tests 57 passed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to