maven package skip junit test unit

Execute mvn install, the error is as follows.

[ERROR] /D:/workspace/SCPNF_V1B01000/src/test/java/com/sinowel/utils/SpringTestC
ase.java:[3,24] Package org.junit.runner does not exist
[ERROR] /D:/workspace/SCPNF_V1B01000/src/test/java/com/sinowel/utils/SpringTestC
ase.java: [12,2] symbol not found


It turned out that junit could not be found. No junit test classes are required for the actual release. Just skip the test:

mvn compile install -Dmaven.test.skip=true

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326419237&siteId=291194637