Question

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...

Was it helpful?

Solution

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:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top