Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Markus Koschany Newsgroups: linux.debian.maint.java Subject: Re: Adding maven artifacts to library package Date: Sat, 31 Oct 2015 22:40:02 +0100 Message-ID: References: X-Original-To: debian-java@lists.debian.org X-Mailbox-Line: From debian-java-request@lists.debian.org Sat Oct 31 21:36:21 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uOEUTjT9OHMimhGkIF5m7mWH7UXvh7NO2" X-Sa-Exim-Scanned: No (on richard.fcube.de); SAEximRunCond expanded to false X-Mailing-List: archive/latest/18849 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/56353442.3090703@gambaru.de Approved: robomod@news.nic.it Lines: 79 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 31 Oct 2015 22:36:02 +0100 X-Original-Message-ID: <56353442.3090703@gambaru.de> X-Original-References: <8737wqagij.fsf@bitburger.home.felix> Xref: csiph.com linux.debian.maint.java:8530 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uOEUTjT9OHMimhGkIF5m7mWH7UXvh7NO2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Am 31.10.2015 um 22:13 schrieb Felix Natter: > hello, >=20 > I am working on the insubstantial (flamingo/substance/trident) package > for Debian: > https://github.com/fnatter/insubstantial-debian >=20 > Is there a "role model" package for publishing maven artifacts? >=20 > Shall I generate the POMs from the (gradle) build system or > shall I adapt the poms from maven.org [1]? How does it need to be > adapted for /usr/share/maven-repo? >=20 > [1] see for example: > http://search.maven.org/#artifactdetails|com.github.insubstantial|fla= mingo|7.3|jar >=20 > Thanks and Best Regards, >=20 The gradle source package itself generates the pom files like this: https://sources.debian.net/src/gradle/2.7-1/debian/generate-pom.gradle and installs all poms for instance with https://sources.debian.net/src/gradle/2.7-1/debian/libgradle-core-java.po= ms You need a build-dependency on maven-repo-helper and add --with maven_repo_helper to dh. That's it. You can also grab the poms from maven.org and put them into a subdirectory like debian/poms. Just change the path in your *.poms file accordingly. There is no real "role model" package but you can find some examples with codesearch.debian.net. https://codesearch.debian.net/results/--with%20maven_repo_helper Cheers, Markus --uOEUTjT9OHMimhGkIF5m7mWH7UXvh7NO2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJWNTRDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBQ0YzRDA4OEVGMzJFREVGNkExQTgzNUZE OUFEMTRCOTUxM0I1MUU0AAoJENmtFLlRO1HkbdEP/2bDZfnbW6HnI+OvfoTQZKFH BKwi57lLiI1Xdf2VrYRoib4xS4LzHv5/aTLPk5qv78XyVt/wSmPDh8jrqWfZhpH0 feBe53IJZYYIAYCSgajT1Dv+xagoRngOOcQgr0yOvyjtf+RUswFmJKY7i6C19wpx H2hCv7InYk87zbHR2ifjTLpIvOoFPpOvfNURHppYqM9r2hXO4Xyh/qOC17OMnuP8 hdaxxuyDamfqXsFpaUm2jWjaHm6O6ZjVBTI0m9/vR+mr6HF2DxzA1iP+FVuMhkDY n49fP+qjQ9FFW6308XhhqKenmUTEZqKh8DU4rJBClROQK6OjWH73VqAX0UKJGfIi FKBEIIKNoFu5inw0vdeC48xWg4az70xiD3p4DByAFNX0A8GRyM+CaW70qoWkALjX WSBPcDTBIIAS9Ka9aTM3M7wJhUZvgLXQJ5LKpfsw6iPegvhMSQamEBrvi3wcBVIL gXpUlq+nQjBBIze6zqCMkqDhyyrwBh1gOFHedMbgGqWk4XhwWUrrKRMWHZkxEMb5 Y7RmNOJsTLe+rW0pBiE/WoRe+00Ce4IqunsTeyCbxiGtoBh1QbI4CeT+w3NAYw8M w6Q1FibDL8bCrPApnYyIjoFEy2z4pSeA0Kn8K8kz4q3rB5VBkVZmv0rupbH1wX0S n2AenPVdbplR+UAmhJJB =6Vpw -----END PGP SIGNATURE----- --uOEUTjT9OHMimhGkIF5m7mWH7UXvh7NO2--