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

java: building interdependent artifacts with maven



Dear Mentors,

I am preparing a package for apache-opennlp [1]. Building it results in six artifacts, one of them, org.apache.opennlp:opennlp-morfologik-addon:jar:1.9.0, depends on another artifact org.apache.opennlp:opennlp-tools:jar:debian which is built before the former. However, opennlp-tools is not found by opennlp-morfologik-addon, possibly because it is not installed in local maven-repo, nor placed in CLASSPATH:

[ERROR] Failed to execute goal on project opennlp-morfologik-addon: Could not resolve dependencies for project org.apache.opennlp:opennlp-morfologik-addon:jar:1.9.0: Cannot access apache.snapshots (http://repository.apache.org/snapshots) in offline mode and the artifact org.apache.opennlp:opennlp-tools:jar:debian has not been downloaded from it before. -> [Help 1]

Is there a standard way to deal with such problem?

Best regards,
Andrius

[1] https://salsa.debian.org/merkys-guest/apache-opennlp

-- 
Andrius Merkys
Vilnius University Institute of Biotechnology, Saulėtekio al. 7, room V325
LT-10257 Vilnius, Lithuania



Reply to: