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

Re: java: building interdependent artifacts with maven



Hi Andrej,

I have seen your e-mail regarding morfologik, but I am not sure whether our issues are the same, though. In my case if I install the built opennlp-tools binary deb package, I am later able to build it with the opennlp-morfologik-addon successfully. (I could of course split them into separate source packages, but I wonder if there is a way to avoid it.)

Have you tried building without morfologik-fsa-builders and installing built binary before build with morfologik-fsa-builders?

Best,
Andrius

On Sun, 30 Dec 2018, 11:45 Andrej Shadura <andrew@shadura.me wrote:
Hi Andrius,

On Wed, 12 Dec 2018 at 10:30, Andrius Merkys <andrius.merkys@gmail.com> wrote:
> 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?

I also ran into this issue trying to update morfologik itself, and I
have so far been unable to find a solution.

--
Cheers,
  Andrej

Reply to: