diff options
Diffstat (limited to 'lib/spack/docs/build_systems/mavenpackage.rst')
-rw-r--r-- | lib/spack/docs/build_systems/mavenpackage.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/spack/docs/build_systems/mavenpackage.rst b/lib/spack/docs/build_systems/mavenpackage.rst index e8a8a1b86c..6f833e8bec 100644 --- a/lib/spack/docs/build_systems/mavenpackage.rst +++ b/lib/spack/docs/build_systems/mavenpackage.rst @@ -76,6 +76,24 @@ should add: depends_on('maven@3.5.4:', type='build') +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Passing arguments to the build phase +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The default build and install phases should be sufficient to install +most packages. However, you may want to pass additional flags to +the build phase. For example: + +.. code-block:: python + + def build_args(self): + return [ + '-Pdist,native', + '-Dtar', + '-Dmaven.javadoc.skip=true' + ] + + ^^^^^^^^^^^^^^^^^^^^^^ External documentation ^^^^^^^^^^^^^^^^^^^^^^ |