做软工作业时
fault-localization install dependencies时报错
build triangle for testing demo:
cd src/triangle
mvn clean package
Failed tests:
TestSuite.test10:36 expected:<EQUILATERAL> but was:<ISOSCELES>
TestSuite.test11:39 expected:<EQUILATERAL> but was:<INVALID>
TestSuite.test14:48 expected:<SCALENE> but was:<ISOSCELES>
TestSuite.test20:66 expected:<EQUILATERAL> but was:<INVALID>
Tests run: 33, Failures: 4, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.413 s
[INFO] Finished at: 2018-05-03T22:15:58+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project triangle: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/apple/Desktop/SE/fault-localization/src/triangle/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
尝试
sudo mvn clean package
问题解决,但出现了新的问题:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.948 s
[INFO] Finished at: 2018-05-04T15:46:33+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project triangle: Could not resolve dependencies for project com.triangle:triangle:jar:0.0.1: Could not find artifact org.spideruci.hamcrest:primitive-hamcrest:jar:0.0.1-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException