My project has commons-codec as a dependency and uses Ivy.
Some other dependencies need commons-codec-1.6 and 1.2.

Now my problem is that Ivy evicts my version(1.4) and instead uses 1.6.
<dependency org="commons-codec" name="commons-codec" force="true" rev="1.4" />

Why doesn't force work? Has anyone encountered this yet?

FYI i have used this before and it worked...

有帮助吗?

解决方案

You need to use a conflict indicator, to override the default behaviour which will be to choose the latest revision of the same dependency.

For an example see the following answer:

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top