Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #8530

Re: Adding maven artifacts to library package

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Markus Koschany <apo@gambaru.de>
Newsgroups linux.debian.maint.java
Subject Re: Adding maven artifacts to library package
Date Sat, 31 Oct 2015 22:40:02 +0100
Message-ID <qpM2u-82l-13@gated-at.bofh.it> (permalink)
References <qpLJ7-7VS-7@gated-at.bofh.it>
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 <apo@gambaru.de>
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 <debian-java@lists.debian.org> archive/latest/18849
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

Am 31.10.2015 um 22:13 schrieb Felix Natter:
> hello,
> 
> I am working on the insubstantial (flamingo/substance/trident) package
> for Debian:
>   https://github.com/fnatter/insubstantial-debian
> 
> Is there a "role model" package for publishing maven artifacts?
> 
> 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?
> 
> [1] see for example:
>   http://search.maven.org/#artifactdetails|com.github.insubstantial|flamingo|7.3|jar
> 
> Thanks and Best Regards,
> 

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.poms

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



Back to linux.debian.maint.java | Previous | NextPrevious in thread | Find similar


Thread

Adding maven artifacts to library package Felix Natter <fnatter@gmx.net> - 2015-10-31 22:20 +0100
  Re: Adding maven artifacts to library package Markus Koschany <apo@gambaru.de> - 2015-10-31 22:40 +0100

csiph-web