您的位置:首页 > 其它

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>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: