Path: csiph.com!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andrew Schurman Newsgroups: linux.debian.maint.java Subject: Re: Packaging maven-scala-plugin (Was: Help needed for gatk) Date: Mon, 01 Feb 2016 13:40:02 +0100 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Mon Feb 1 12:30:24 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.799 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; bh=lRiwThYTIIXF3ktyQULHPxra9acQoUqSMKwH1IG59mI=; b=d/CuDfgL+IlsyU3gvOdO4wTLNwoIrL/Xb9WOOR0NeGLGPlzECvSSnWrMQuwkRnZsJc xOsZ55U9HXUVTfK8/yUi2rpEr0F01Is1aSzh+drP9DQZIhRTVdy/WssW0n6VDySnoRAa a6SW+whGW4h6u8qrlVCjyIGpiJkFQq78ilof3R474ycyKpqxBfaW1qIi0FSsNcFe6fzH 9HHLENokUZpMGph80DbBEqawinZjPC55jAghDFcchNC+uIlIcaYOXs3ArCYJF9TRMs+S v89t8GxsFuJgHuY+N3LyjrAfx5JMPZFeC56fX3Z9vyOYdfECmDyJyj1L/yzBlJSDgoiJ JNtw== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version; bh=lRiwThYTIIXF3ktyQULHPxra9acQoUqSMKwH1IG59mI=; b=eOU75+DJG/gyeLC1q6xj9v+B6AjLz6yxJGEXSl1afsSW9B26VXCeEjjE1wZIraUIhA jUx9odJ4p8pESUBa4ADk4kdkNq3vfmnnwk1IAdqeeM3XvJF61EDwo5iZ164/eMvi0v/g uHMeSkbwDAsO1IoAdaRmaVs3P3SEMqN9OLtrvaVr5PgnD6ZITEFzPbJtF4ElnmQMlCoM Vs9ho4TZs3NrNZ/ambHgiYAO+nWCqPgKBdIvKrbeshZ7sRzRTWBLvbQ8M/jFBSXPq1Fp HjpfgoydOd8CzrsU7k2grdM2Zi4pGhMfvlN38qp90ATEjJYDy1/NmoUquVMh9AD89e1y nIug== X-Gm-Message-State: AG10YOSvKyha6iFijfXvlE5r5lsB0FG2oiXVIgm++ri+Jj/bSXiKgnWwvXmVAqU0HWHoig== X-Received: by 10.66.141.71 with SMTP id rm7mr38229818pab.32.1454329802630; Mon, 01 Feb 2016 04:30:02 -0800 (PST) Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-nQizw1ppSPu9dSZXsBEb" X-Mailer: Evolution 3.18.3-1 MIME-Version: 1.0 X-Mailing-List: archive/latest/19112 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1454329800.4228.58.camel@gmail.com Approved: robomod@news.nic.it Lines: 78 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Med Packaging Team X-Original-Date: Mon, 01 Feb 2016 04:30:00 -0800 X-Original-Message-ID: <1454329800.4228.58.camel@gmail.com> X-Original-References: <56A0ACD2.4000709@apache.org> <20160127140801.GG19241@an3as.eu> <1453935175.21909.27.camel@gmail.com> <20160128183206.GF2043@an3as.eu> <20160130135904.GG26893@an3as.eu> <56ACCCA9.5040004@apache.org> <20160130170530.GK26893@an3as.eu> <1454187900.16827.5.camel@gmail.com> <20160201085137.GB29773@an3as.eu> <1454324732.4228.22.camel@gmail.com> <20160201111824.GC2206@an3as.eu> Xref: csiph.com linux.debian.maint.java:8792 --=-nQizw1ppSPu9dSZXsBEb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2016-02-01 at 12:18 +0100, Andreas Tille wrote: > =C2=A0I admit I have no idea how > to > craft the suggested publishedRule. The maven.publishedRules usually gets generated with comments to help you if you used mh_make. If not, check another project for reference such as [1]. Adding the line below should work: org.apache.maven maven-core jar s/.*/3.x/ >=20 > However, what makes me really suspicious is: >=20 > $ grep maven.*-core-java maven-scala-plugin_3.2.2-1_amd64.build=C2=A0 > Selecting previously unselected package libmaven2-core-java. > Preparing to unpack .../libmaven2-core-java_2.2.1-24_all.deb ... > Unpacking libmaven2-core-java (2.2.1-24) ... > Selecting previously unselected package libmaven3-core-java. > Preparing to unpack .../libmaven3-core-java_3.3.9-3_all.deb ... > Unpacking libmaven3-core-java (3.3.9-3) ... > Setting up libmaven2-core-java (2.2.1-24) ... > Setting up libmaven3-core-java (3.3.9-3) ... >=20 >=20 > Is there any reason that libmaven2-core-java is implicitly dragged in > by > other Build-Depends and may be this is creating the problem? I wouldn't worry about this. It just means another package depends on a different version of the library. Both libmaven2-core-java and libmaven3-core-java are able to coexist on the same system. In your case, it's brought in by=C2=A0libmaven-docck-plugin-java, a direct dependency in the maven-scala-plugin. Your problem is that poms get rewritten in the build phase by maven- debian-helper. They change the version of dependencies to `debian` because bananas (there really is a reason, but its not important here). This happens regardless whether libmaven2-core-java gets pulled in by dpkg. We just need to tell maven-debian-helper to use a specific version, 3.x, instead of `debian` which redirects to 2.2.1 likely to maintain compatibility. This is what the maven.publishedRules file is for. Andrew [1]=C2=A0https://github.com/googlei18n/libphonenumber/blob/master/debian/ma= v en.publishedRules --=-nQizw1ppSPu9dSZXsBEb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJWr0/IAAoJEIlLeKCrgwTaxZ4QAJs+j6PfEX/qz0g/pIxOyGL3 uY7Ma3azJSigwjQVvUFmM/Lb+SiaCTrp6pDuSqf98EKlaSZkPGH0yY4t7tWB/y/z Seq+0wyU/thFvHVrYP+oI0jFSIQKXNaBy/py8F0/pMKZimaQkRI+k2XS0KGYStOH UVGbQrNHgrG5TN5sjDPvzn2yESnP/ew2vVJJk4EiFQXsdxGZqoJMewfqtcwwFv3J 7iSUVNtj9V+DGOPUTS4ORR5QiWAAFDgGGUpj4j+HfRwgbp1zUz4epc7/mvdP0yKj X3NNaaiqVjEsK8GSbS5GlHvfsFECbkQ007j4QNpoaC/7yT7Mmt45p4jC4tLLUFKC 3c7hSsBexIOSktayEr/aKMT8Y2zbM9IF+4rQfDGPzplhIGoRgZCJcsLYn/p7zDYl oVXXXiGwMPq2I88xfUbuicHPT37TWeEQY1WGYDKNe5LCNBI2ba4k8xtC1NDU+Z53 ilsX/UShhZ/YCWMnX3YT0igvqnlAagJhDCAaLi3jGwFkHPz5HQorMzvFQqG9RXHo +b/mHCV7a51gUfaJQKshASlbX2bHNvZFD/Uu3RMILdYcJ8prLfdB4Zw/+nRoF5vK bBIjIeybmEsZjlOoyF8wqhhFJoek19KzbomxuXfwJulcK+ZxthX3rC56Qho/3i1z YlXI8L7XORpxCYsKN+Z+ =MyKa -----END PGP SIGNATURE----- --=-nQizw1ppSPu9dSZXsBEb--