Pregunta

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

¿Fue útil?

Solución

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:

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top