문제

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