maven 程序包org.junit不存在
2016-10-31 19:40
375 查看
标签: maven
2015-10-27 16:20 4744人阅读 评论(0) 收藏 举报
分类:
Maven(10)
版权声明:本文为博主原创文章,未经博主允许不得转载。
[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>
c95e
改成
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
2015-10-27 16:20 4744人阅读 评论(0) 收藏 举报
分类:
Maven(10)
版权声明:本文为博主原创文章,未经博主允许不得转载。
[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>
c95e
改成
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
相关文章推荐
- maven 程序包org.junit不存在
- maven deploy 程序包org.junit不存在
- Maven编译报:编码GBK的不可映射字符与程序包org.junit.runner不存在
- 一点一点学maven(11)——Eclipse开发Maven项目提示:程序包org.junit不存在解决方案
- Maven项目编译显示:程序包org.junit不存在
- Eclipse开发Maven项目提示:程序包org.junit不存在解决方案
- eclipse maven程序包org.junit不存在
- maven 程序包org.junit不存在
- Maven打包 错误: 程序包org.junit不存在
- Intellij IDEA配置maven项目中出现的“程序包org.junit不存在”错误
- maven 错误: 程序包org.junit不存在
- Eclipse开发Maven项目提示:程序包org.junit不存在解决方案
- spring boot 生成项目发生程序包org.junit不存在等错误
- Android开发:Error:(3, 17) 错误: 程序包org.junit不存在
- maven 打包 程序包org.project.entity不存在
- IDEA 提示程序包org.junit.contrib.java.lang.system不存在的解决办法
- Maven:程序包org.apache.log4j不存在问题处理
- idea maven 程序包org.openqa.selenium不存在
- maven 程序包com.sun.image.codec.jpeg不存在的解决方案
- 程序包org.apache.http不存在