Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #8068
| From | Guillaume Turri <guillaume.turri@gmail.com> |
|---|---|
| Newsgroups | linux.debian.maint.java |
| Subject | Re: packaging java applications: questions from a newbie |
| Date | 2015-06-07 00:10 +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> |
| Organization | linux.* mail to news gateway |
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