Hi, based on what I can identify in your pom files/output is that in your currenty configuration the maven-javadoc-plugin is configured to use the goal: aggregate[1] which is a goal which forkes the lifecycle. There is an equivalent "aggregate-no-fork"[2] which could be used instead...
The question is also why running javadoc everytime? Apart from that you have configured the maven-source-plugin with the goal "jar" which also forkes the lifecycle[3] this could be replaced by using the "jar-no-fork" goal[4]. Furthermore your configuration can be simplyfied by using the junit-bom instead of each dependency separately to import the dependencies for junit-jupiter ... The question is: Why have you bound the maven-resources-plugin to validate life cycle phase? One thing: Why do you have configured wagon-ftp as extension? Kind regards Karl Heinz Marbaise [1]: https://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html [2]: https://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-no-fork-mojo.html [3]: https://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html [4]: https://maven.apache.org/plugins/maven-source-plugin/jar-no-fork-mojo.html On 31.12.19 16:04, Steinar Bang wrote:
This project https://github.com/steinarb/authservice has a lot of messages like this in the build output: [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Authentication webapp 1.8.0-SNAPSHOT [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (filter-resources) @ authservice --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Authentication webapp definitions bundle 1.8.0-SNAPSHOT [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (filter-resources) @ authservice.definitions --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/sb/workspaces/ws03/authservice/authservice.definitions/src/main/filtered-resources [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ authservice.definitions --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/sb/workspaces/ws03/authservice/authservice.definitions/src/main/resources ... A lot of the forking messages to be repeated, so I worry that it does some operations (e.g. the npm build of the frontend) way more times than it has to (ie. only once). Is the forking something that makes the build take longer than it has to? Or is it harmless and nothing worth spending time to fix? I have tried to figure out who the culprit is. Maybe there are more than one culprit...? I thought maybe my use of the maven-resources-plugin in the parent was the cause of the forking. So I moved the build of a master karaf feature repository out of the parent POM and into a module. But that only got rid of the first forking in the quoted text abote. The full output from "mvn clean install" can be seen at: https://gist.github.com/steinarb/169d179abec47f50d3aa5574ad8d7585 Thanks!
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org