Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #8068
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Guillaume Turri <guillaume.turri@gmail.com> |
| Newsgroups | linux.debian.maint.java |
| Subject | Re: packaging java applications: questions from a newbie |
| Date | Sun, 07 Jun 2015 00:10:01 +0200 |
| Message-ID | <pyurT-4Pc-3@gated-at.bofh.it> (permalink) |
| References | <ptKQG-7L9-5@gated-at.bofh.it> <pu9m1-1Jr-1@gated-at.bofh.it> |
| X-Original-To | debian-java@lists.debian.org |
| Old-Return-Path | <guillaume.turri@gmail.com> |
| X-Amavis-Spam-Status | No, score=-7.099 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] autolearn=ham |
| X-Policyd-Weight | using cached result; rate: -7 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=th4wQCFrks8EZiwK9Q+Z0O6iaIa2rS/yK1l811WXFms=; b=i+XfnWL46eTTlrv620SJ6tJ2LxDewV2acfAblF4W1vkI8CO/0rH0GJZQ+0NqAfmFnX pk72+E1Uyc3VuUsPMoxhzWeDwbt1mFJkm4tN+b/1WeezYF2H3Pg+h/HjC1j67nTrF7+w PLE6VSpY08HxgN71ta901TtEAeRm5Prz8oO9TTeezFc/i60AaJEAKZgaMFwGJFVV7bD/ M+dfKXRcLvCeQ8UCCHD0X6LtaVoAsXWS1TU1OsxgyW6fNopc5TBWIrW8K0MDUHTou9g6 HJ6ptvdjYFwgds9Fu5FALKukBoHGg7fqxeAVLOz6cSR183JKcMvJPHaXbSpPeIYiBipK YMEQ== |
| X-Received | by 10.152.225.166 with SMTP id rl6mr9443447lac.36.1433628259094; Sat, 06 Jun 2015 15:04:19 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Mailing-List | <debian-java@lists.debian.org> archive/latest/18375 |
| List-ID | <debian-java.lists.debian.org> |
| List-URL | <http://lists.debian.org/debian-java/> |
| Approved | robomod@news.nic.it |
| Lines | 68 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Sun, 7 Jun 2015 00:03:58 +0200 |
| X-Original-Message-ID | <CADsWkMrnY2r57CzOMtoAn01y6q-PKZM_15oWF6BY=W_A3u2BnA@mail.gmail.com> |
| X-Original-References | <CADsWkMqvfAv8atCUpK9d=psowOtjd0Br+xUf_UtfSOpJvuGLaA@mail.gmail.com> <5563A589.1020900@gambaru.de> |
| Xref | aioe.org linux.debian.maint.java:8068 |
Show key headers only | View raw
Hi,
2015-05-26 0:43 GMT+02:00 Markus Koschany <apo@gambaru.de>:
> In fact jh_build is a very simplistic way to build Java packages. It is
> well suited for simple packages but I suggest to use more sophisticated
> tools like maven-debian-helper for Maven projects or javahelper +
> maven-repo-helper for Ant projects.
I tried to follow your suggestions, and to package my dependencies
using java_helper + maven-repo-helper. And I then tried to package my
own library with maven-debian-helper.
It feels like I made some progress, but I'm unable to package my
library yet, because when I run "mh_make" to generate the "debian"
repository, it ends up failing with
---- beginning of the error ---
Missing:
----------
1) de.timroes:aXMLRPC:jar:debian
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=de.timroes
-DartifactId=aXMLRPC -Dversion=debian -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy
the file there:
mvn deploy:deploy-file -DgroupId=de.timroes
-DartifactId=aXMLRPC -Dversion=debian -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) fr.turri:dokujclient:jar:3.3.0
2) de.timroes:aXMLRPC:jar:debian
--- end of the error -----
Here, dokujclient is my library that I'm trying to package; and
aXMLRPC is my dependency that I already packaged and that I installed.
I'm a bit surprised by the error message, because if I have to
manually prepare my workstation in order to package, I think my build
won't be very reproducible. Moreover, I have no clue what
"/path/to/file" should be, and I'm not sure where I'm supposed to run
this command.
Said differently, I don't know if I failed to package my dependency,
or if I fail to run mh_make.
To put it in a nutshell: could you shed some light on the meaning of
this error? What is missing?
(if needed, I pushed the sources I used to package my dependency, at
https://github.com/gturri/aXMLRPC-debian)
Regards,
Guillaume
--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: https://lists.debian.org/CADsWkMrnY2r57CzOMtoAn01y6q-PKZM_15oWF6BY=W_A3u2BnA@mail.gmail.com
Back to linux.debian.maint.java | Previous | Next — Next in thread | Find similar | Unroll thread
Re: packaging java applications: questions from a newbie Guillaume Turri <guillaume.turri@gmail.com> - 2015-06-07 00:10 +0200 Re: packaging java applications: questions from a newbie tony mancill <tmancill@debian.org> - 2015-06-08 03:20 +0200
csiph-web