1MVN_BUILD(7)                  Java Packages Tools                 MVN_BUILD(7)
2
3
4

NAME

6       mvn_build - build Maven project with XMvn
7

SYNOPSIS

9       %mvn_build [options] [-- Maven-arguments]
10

DESCRIPTION

12       mvn_build macro builds Maven project by calling XMvn and generates
13       reactor structure information to be used by mvn_install.
14
15       By default Maven phase verify and goal javadoc:aggregate are executed,
16       as well as some additional XMvn-specific goals or phases. If -f is
17       specified then phase package is executed instead of verify. If -j is
18       given then goal javadoc:aggregate is skipped.
19
20       Any arguments after -- are passed directly to XMvn. See xmvn(1) for
21       more information on availability of XMvn options.
22

OPTIONS

24       -d, --xmvn-debug
25           Enable XMvn debugging output. This option causes XMvn to write
26           verbose debugging information to standard output. Debugging
27           information includes at least details about artifact resolution
28           from system repositories.
29
30       -f, --force
31           Skip compilation and execution of unit and integration tests, as
32           well as resolution of build dependencies with scope test. This
33           option causes Maven phase package to be executed instead of default
34           phase verify, defines property maven.test.skip=true which disables
35           compilation and execution of tests and causes XMvn to remove any
36           project dependencies with scope test.
37
38       -i, --skip-install
39           Skip artifact installation. This option disables generation of
40           reactor structure information so that future calls to mvn_install
41           will not result in installation of artifacts produced in current
42           Maven reactor.
43
44       -j, --skip-javadoc
45           Skip javadoc generation. This option skips running Maven Javadoc
46           Plugin. Useful for packages which don’t want to produce Java API
47           documentation.
48
49       -s, --singleton
50           Enable singleton packaging (one artifact per package). This option
51           causes artifacts with identical artifactId to be installed as part
52           of the same subpackage. This behavior can be further customized by
53           adding more specific packaging rules with mvn_package.
54
55       -X, --debug
56           Enable Maven debugging output. Implies -d. This option causes Maven
57           to write verbose debugging information to standard output.
58

ENVIRONMENT

60       xmvn_bootstrap
61           Run XMvn in online mode. If xmvn_bootstrap RPM macro is defined to
62           any value then XMvn is ran in online mode. Otherwise XMvn is ran in
63           offline mode. Online mode of XMvn allows missing dependency
64           artifacts to be fetched from remote repositories. This behavior is
65           mostly useful when bootstrapping new packages, which dependecies
66           have not yet been packaged.
67
68       _without_tests
69           Defining this macro to any value is equivalent to -f option.
70
71       _without_javadoc
72           Defining this macro to any value is equivalent to -j option.
73

AUTHOR

75       Originally written by Mikolaj Izdebski. Versions 3.0.0 and later were
76       written by Stanislav Ochotnicky.
77

REPORTING BUGS

79       Bugs should be reported through Java Packages Tools issue tracker at
80       Github: https://github.com/fedora-java/javapackages/issues.
81

SEE ALSO

83       mvn_alias(7), mvn_compat_version(7), mvn_config(7), mvn_file(7),
84       mvn_package(7), xmvn(1).
85
86
87
88JAVAPACKAGES                      01/25/2023                      MVN_BUILD(7)
Impressum