[Debian-med-packaging] Fwd: How to propagate mvn options to debhelper (Was: Need help to upgrade libnetlib-java package)
Andreas Tille
andreas at an3as.eu
Fri Apr 22 22:49:57 UTC 2016
On Fri, Apr 22, 2016 at 11:19:18PM +0200, Olivier Sallou wrote:
> >
> > 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...)
I tried
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+DEB_MAVEN_ARGS := "-Dmaven.install.skip=true"
+
%:
dh $@ --buildsystem=maven --with javahel
and
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export DEB_MAVEN_ARGS="-Dmaven.install.skip=true"
+
%:
dh $@ --buildsystem=maven --with javahelper
but nothing helped. Any other ideas?
Kind regards
Andreas.
> [0] https://github.com/Debian/maven-debian-helper/blob/master/share/cdbs/1/class/maven-vars.mk
>
> >
> > Andreas.
> >
> > --
> > http://fam-tille.de
> >
> >
>
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list