Third party OSGi library dependency conflict

206 views Asked by At

In our Eclipse based product we're introducing a new third party plugin that depends on ANTLR v3.2+.

We have an existing plugin, also third party (openarchitectureware), that requires ANTLR v3.0. The problem is that the openarchitectureware plugins don't specify a dependency version range:

Require-Bundle: org.openarchitectureware.core.workflow,org.apache.comm ons.logging,
org.antlr.runtime,org.apache.log4j;resolution:=optional

This means they try to use the latest version of ANTLR, 3.2, and break.

Is there any way, without changing the openarchitectureware plugins, to force them to resolve against ANTLR 3.0 even if a newer version is available?

1

There are 1 answers

2
Christian Schneider On BEST ANSWER

Unfortunately not. You will have to change the jar to add the correct meta data. You should also report this issue at openarchitectureware. So they can produce correct artifacts for newer versions.