I am working on a Maven project with several modules. I want to create this module and skip unit tests to speed up the build process.
I tried the following:
mvn reactor:make -Dmake.folders=search -Dgoals=package,-DskipTests
mvn reactor:make -Dmake.folders=search -Dgoals=package -Dmaven.test.skip=True
However, this has no effect. Any clues?
Your first line looks like the right idea, but -Dgoalsyou should use instead -Dmake.goals.
-Dgoals
-Dmake.goals
On the page are examples of plugins for the reactor :
Maven, . Maven , Maven, --debug, -DskipTests.Maven, -Dmake.goals, :mvn reactor:resume -Dmake.folders=barBusinessLogic -Dmake.goals=install,-DskipTests , "" - Maven; "".- , -Dmake.printOnly, . , , !
Maven, . Maven , Maven, --debug, -DskipTests.
Maven, -Dmake.goals, :
mvn reactor:resume -Dmake.folders=barBusinessLogic -Dmake.goals=install,-DskipTests
, "" - Maven; "".
- , -Dmake.printOnly, . , , !
/ A/pom.xml B/pom.xml C/pom.xml D/pom.xml E/pom.xml pom.xml (parent pom file that includes A,B,C,D,E modules)
mvn reactor:make -Dmake.folders=C,D,E -Dgoals=package -Dmaven.test.skip=True
, , , ,
mvn -pl=C,D,E -DskipTests=true package
Have you tried to include the parameter - Dmaven.test.skip = true (note the case) on the command line argument that you are using? Like Java, Maven is case sensitive. But, as a rule, you can refuse the true part, and this should also lead to skipping tests.
Source: https://habr.com/ru/post/1776181/More articles:How to make this tab animation with jquery? - jqueryHow to minimize the build time of a Flash project? - optimizationShould I start facebook application development now? - facebookHow to make an infinite div after a fixed div height? - htmlgcc, the width of a long int on different architectures - gccinnerHTML removing a trailing slash from an image tag - javascriptHow to format OracleNumber as a whole - c #Cucumber + EmailSpec + Rails3: почему он говорит, что никакие электронные письма не отправляются, когда они действительно работают? - ruby-on-railsПочему моя обновленная форма .NET Windows Form не показывает новые изменения после запуска программы еще раз? - c#Sort all words in a file by length in one reading. (Java) - javaAll Articles