Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #10228
| From | Emmanuel Bourg <ebourg@apache.org> |
|---|---|
| Newsgroups | linux.debian.maint.java |
| Subject | Re: maven-debian-helper & module inter-dependencies |
| Date | 2017-12-15 15:00 +0100 |
| Message-ID | <uWYGR-5iF-5@gated-at.bofh.it> (permalink) |
| References | <uWUWB-2Xj-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Sebastiaan, Le 15/12/2017 à 10:53, Sebastiaan Couwenberg a écrit : > How should maven-debian-helper be used in a package that builds modules > which depend on other jars in the project? > > The case in question is JTS 1.15 [0] which builds, among others, > jts-core.jar which is required by the jts-io module. While building the > latter the jts-core that was built earlier in the process cannot be > found (see attached build log). > > Should it be sufficient to have the correct maven.rules to have other > artefacts of the project be usable in the build? Or is a local > repository perhaps required to make these available later in the build? Usually it just works, but there are some corner cases. We have several multi modules projects already packaged that you can use as examples (maven, javamail, activemq, jetty9, antlr4, wagon...). Sometimes when the packaging type is 'bundle' instead of 'jar' it's necessary to either patch the pom dependencies and specify explicitly the 'bundle' type, or patch the poms and change the type to 'jar'. Also some builds expect the artifacts of the other modules to be installed in the local repository (because they do obscure manipulations like injecting source files from another module into the current one), so in this case you have to override dh_auto_build and call the Maven 'install' phase (instead of 'package' by default). Emmanuel Bourg
Back to linux.debian.maint.java | Previous | Next — Next in thread | Find similar | Unroll thread
Re: maven-debian-helper & module inter-dependencies Emmanuel Bourg <ebourg@apache.org> - 2017-12-15 15:00 +0100
Re: maven-debian-helper & module inter-dependencies Sebastiaan Couwenberg <sebastic@xs4all.nl> - 2017-12-16 14:10 +0100
Re: maven-debian-helper & module inter-dependencies Markus Koschany <apo@debian.org> - 2017-12-16 15:50 +0100
Re: maven-debian-helper & module inter-dependencies Sebastiaan Couwenberg <sebastic@xs4all.nl> - 2017-12-16 16:10 +0100
Re: maven-debian-helper & module inter-dependencies Markus Koschany <apo@debian.org> - 2017-12-16 16:40 +0100
Re: maven-debian-helper & module inter-dependencies Sebastiaan Couwenberg <sebastic@xs4all.nl> - 2017-12-16 17:10 +0100
Re: maven-debian-helper & module inter-dependencies Markus Koschany <apo@debian.org> - 2017-12-16 17:30 +0100
Re: maven-debian-helper & module inter-dependencies Thorsten Glaser <t.glaser@tarent.de> - 2017-12-18 16:40 +0100
Re: maven-debian-helper & module inter-dependencies Emmanuel Bourg <ebourg@apache.org> - 2017-12-18 16:50 +0100
Re: maven-debian-helper & module inter-dependencies Thorsten Glaser <t.glaser@tarent.de> - 2017-12-18 16:50 +0100
Re: maven-debian-helper & module inter-dependencies Emmanuel Bourg <ebourg@apache.org> - 2017-12-16 18:10 +0100
Re: maven-debian-helper & module inter-dependencies Sebastiaan Couwenberg <sebastic@xs4all.nl> - 2017-12-16 18:20 +0100
csiph-web