Skip to content

Commit

Permalink
Document --without switch from fedora-java/javapackages#62
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoncek committed Feb 20, 2019
1 parent 7a5df12 commit 02f0173
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packaging_maven_project.txt
Expand Up @@ -64,6 +64,19 @@ dependency right away. Maintainer could package compile time dependencies first
rest for later (test dependencies, ...). But Maven needs to know that it shouldn't try to run tests now. This can be achieved by passing `-f` option to `%mvn_build` macro. Maven
will stop complaining about missing test scoped dependencies from now on.

[TIP]
======
Another major reason to disable test is to speed up the local build process.
For this purpose it is also possible to disable the test phase by specifying an
additional switch `--without=tests` to the `fedpkg` or the `mock` tool instead
of adding a switch to `%mvn_build`.

Another switch `--without=javadoc` causes the build to skip Javadoc generation.

Note that to actually build the package with tests disabled you have to specify
the switch to `%mvn_build`.
======

[NOTE]
======
It is always recommended to run all available test suites during build. It greatly improves quality of the package.
Expand Down

0 comments on commit 02f0173

Please sign in to comment.