[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: maven-debian-helper & module inter-dependencies



Am 15.12.2017 um 10:53 schrieb Sebastiaan Couwenberg:
> 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?
> 
> [0] https://anonscm.debian.org/cgit/pkg-grass/jts.git/log/?h=experimental
> 
> Kind Regards,
> 
> Bas

You can change the build directory to
<directory>${user.dir}/lib</directory> for example and then use a local
systemPath for your artifact that depends on another module in the same
project. Check out libsejda-java 2.10.4-1 for further hints. That makes
your package mostly unusable though (paths pointing to local
directories), so you have to make sure in your second upload to
build-depend on jts itself and to remove the patch again.

https://anonscm.debian.org/git/pkg-java/libsejda-java.git/tree/debian/patches/use-local-jars.patch?h=debian/2.10.4-1

Regards,

Markus

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: