[Debian-med-packaging] Fwd: How to propagate mvn options to debhelper (Was: Need help to upgrade libnetlib-java package)

Olivier Sallou olivier.sallou at irisa.fr
Fri Apr 22 21:19:18 UTC 2016



----- Mail transféré -----
> De: "Andreas Tille" <andreas at an3as.eu>
> À: "Debian Java List" <debian-java at lists.debian.org>
> Cc: "Debian Med Packaging Team" <debian-med-packaging at lists.alioth.debian.org>
> Envoyé: Vendredi 22 Avril 2016 21:25:43
> Objet: How to propagate mvn options to debhelper (Was: Need help to upgrade libnetlib-java package)
> 
> On Fri, Apr 22, 2016 at 05:46:30PM +0200, Olivier Sallou wrote:
> > >> I think this plugin is used in the maven "workflow", at install time
> > >> only, which should not be needed or required in Debian build workflow.
> > >> Maybe adding property in mvn command "-Dmaven.install.skip=true" would
> > >> help skipping this.
> > > Sounds promising - but how do I specify this?
> > Do you use mvn command in d/rules or only debian helpers? If you use
> > mvn, just add this after mvn, else I do not know how to specify extra
> > parameters for Debian java helpers.
> 
> I'm using plain javahelper.  The following failed:
> 
> diff --git a/debian/rules b/debian/rules
> index bde0193..eadfd0b 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -8,5 +8,5 @@
>         dh $@ --buildsystem=maven --with javahelper
>  
>  override_dh_auto_build:
> -       dh_auto_build -- install
> +       dh_auto_build -- install -Dmaven.install.skip=true
>  
> 
> 
> Any better hint how to propagate mvn options

Looking at code of maven-debian-helper [0] it seems we can set some mvn cmd line args with env variable DEB_MAVEN_ARGS
However I never used it, nor found any doc for this (and expected workaround option is good...)


[0] https://github.com/Debian/maven-debian-helper/blob/master/share/cdbs/1/class/maven-vars.mk

> 
>      Andreas.
> 
> --
> http://fam-tille.de
> 
>



More information about the Debian-med-packaging mailing list