Am 22.06.2017 um 13:38 schrieb Emmanuel Bourg: > Le 22/06/2017 à 13:16, Markus Koschany a écrit : > >> Can we force Maven (or any other build tool) to use an already built >> artifact instead of searching for the equivalent in a local or remote >> repository? > > I don't know if this could help in your case, but it's possible to use a > local jar by adding the <systemPath> element to the dependency in the pom: > > <dependency> > <groupId>org.example</groupId> > <artifactId>foo</artifactId> > <version>1.0</version> > <systemPath>lib/foo-1.0.jar</systemPath> > </dependency> > > It would work only at build time though, such a dependency couldn't be > resolved once the pom is installed in /usr/share/maven-repo. Thanks. Good idea. I'll experiment with this solution a little. Markus
Attachment:
signature.asc
Description: OpenPGP digital signature