eclipse导入多个jar包问题,两个jar包有冲突

最近做一个实验,需要两个jar包,但两个jar包好像有重叠的部分,都导入modulepath中有冲突,显示下面的东西:
Multiple markers at this line
- The package org.hamcrest is accessible from more than one module: hamcrest.
library, junit
(已经在module-info中requires junit;和requires hamcrest.library;)
如果我把他们放在classpath中显示找不到:
The type org.junit.Before is not accessible
The type org.hamcrest.Matchers.greaterThan is not accessible
求解,是因为两个jar包本来就有冲突的原因吗?jar包本来就有问题吗?