[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building user-core 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ user-core ---
[INFO] Deleting D:\use_soft\eclipse\workspace\user-core\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ user-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ user-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to D:\use_soft\eclipse\workspace\user-core\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[17,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[18,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[19,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[3,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[25,12] 找不到符号
符号: 类 BeforeClass
位置: 类 zttc.itat.user.util.AbstractDbUnitTestCase
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[63,12] 找不到符号
符号: 类 AfterClass
位置: 类 zttc.itat.user.util.AbstractDbUnitTestCase
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[32,13] 找不到符号
符号: 变量 Assert
位置: 类 zttc.itat.user.util.AbstractDbUnitTestCase
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[11,13] 找不到符号
符号: 变量 Assert
位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[12,13] 找不到符号
符号: 变量 Assert
位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[13,13] 找不到符号
符号: 变量 Assert
位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[14,13] 找不到符号
符号: 变量 Assert
位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[15,13] 找不到符号
符号: 变量 Assert
位置: 类 zttc.itat.user.util.EntitiesHelper
[INFO] 12 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.003 s
[INFO] Finished at: 2015-10-23T15:32:32+08:00
[INFO] Final Memory: 17M/179M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project user-core: Compilation failure: Compilation failure:
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[17,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[18,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[19,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[3,17] 程序包org.junit不存在
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[25,12] 找不到符号
[ERROR] 符号: 类 BeforeClass
[ERROR] 位置: 类 zttc.itat.user.util.AbstractDbUnitTestCase
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[63,12] 找不到符号
[ERROR] 符号: 类 AfterClass
[ERROR] 位置: 类 zttc.itat.user.util.AbstractDbUnitTestCase
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/AbstractDbUnitTestCase.java:[32,13] 找不到符号
[ERROR] 符号: 变量 Assert
[ERROR] 位置: 类 zttc.itat.user.util.AbstractDbUnitTestCase
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[11,13] 找不到符号
[ERROR] 符号: 变量 Assert
[ERROR] 位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[12,13] 找不到符号
[ERROR] 符号: 变量 Assert
[ERROR] 位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[13,13] 找不到符号
[ERROR] 符号: 变量 Assert
[ERROR] 位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[14,13] 找不到符号
[ERROR] 符号: 变量 Assert
[ERROR] 位置: 类 zttc.itat.user.util.EntitiesHelper
[ERROR] /D:/use_soft/eclipse/workspace/user-core/src/main/java/zttc/itat/user/util/EntitiesHelper.java:[15,13] 找不到符号
[ERROR] 符号: 变量 Assert
[ERROR] 位置: 类 zttc.itat.user.util.EntitiesHelper
[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
解决:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
改成
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
相关文章
- idea中maven项目程序包找不到解决办法之一
- 如何解决maven COMPILATION ERROR:包X不存在? [重复]
- maven编译项目报错,提示找不到符号或程序包XXX不存在
- 程序包xxx不存在,找不到符号
- 程序包 javax.servlet 不存在 解决办法
- IntelliJ IDEA 出现" java: 程序包javax.servlet不存在、 java: 程序包javax.servlet.annotation"等错误
- java编译错误:程序包javax.servlet不存在javax.servlet.*
- Intellij Idea上Spring Boot编译报错:Error:(3, 32) java: 程序包org.springframework.boot不存在
- springBoot 打war包 程序包com.sun.istack.internal不存在的问题及解决方案
- java编译错误 程序包javax.servlet不存在javax.servlet.*