1. -----------------------------------------------------
  2. T E S T S
  3. -------------------------------------------------------
  4. -------------------------------------------------------
  5. T E S T S
  6. -------------------------------------------------------
  7. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  8. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  9. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  10. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  11. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  12. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  13. Running com.soso.baike.audit.log.MainTest
  14. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
  15. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  16. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  17. Running com.soso.baike.domain.LevelTest
  18. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
  19. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  20. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  21. Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
  22. Running com.soso.baike.fs.LemmaFsGetCmdTest
  23. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
  24. Running com.soso.baike.domain.AuditInfoTest
  25. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.142 sec
  26. SLF4J: Class path contains multiple SLF4J bindings.
  27. SLF4J: Found binding in [jar:file:/D:/code/.m2/repository/org/slf4j/slf4j-log4j12/1.6.4/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  28. SLF4J: Found binding in [jar:file:/D:/code/.m2/repository/com/wenwen/log/slf4j/1.0.0-SNAPSHOT/slf4j-1.0.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  29. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  30. log4j:ERROR Could not find value for key log4j.appender.noerrorLog
  31. log4j:ERROR Could not instantiate appender named "noerrorLog".
  32. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
  33. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
  34. Running com.soso.baike.dao.db.level.IbatisLevelDaoTest
  35. Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.681 sec <<< FAILURE!
  36. testGet(com.soso.baike.dao.db.level.IbatisLevelDaoTest)  Time elapsed: 0.001 sec  <<< ERROR!
  37. java.lang.NullPointerException
  38. at com.soso.baike.dao.db.level.IbatisLevelDaoTest.testGet(IbatisLevelDaoTest.java:23)
  39. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  40. at java.lang.reflect.Method.invoke(Method.java:606)
  41. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  42. at java.lang.reflect.Method.invoke(Method.java:606)
  43. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  44. at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  45. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  46. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  47. at java.lang.Thread.run(Thread.java:745)

这是用idea右侧的maven Projects下的package功能打包maven工程时候出现的错误

解决办法:不用上述方式编译打包,改用命令行方式跳过Test,命令如下:

mvn clean package -DskipTests

这样maven就不会进行Test相关的编译了。

maven工程打包出现Test相关的错误的更多相关文章

  1. maven工程打包成runnable的jar包,拷贝资源和依赖jar包

    eclipse下新建maven工程,生成runnable的jar包.之前一直是手动拷贝依赖的jar包和资源文件,烦得要死.上网可劲查了一下.解决方案如下. 在pom的配置文件中做如下配置: <b ...

  2. 用Maven给一个Maven工程打包,使用阿里云镜像解决mvn clean package出错的问题,使用plugin解决没有主清单属性的问题

    本来在STS里做了一个极简Maven工程,内中只有一个Main方法的Java类,然后用新装的Maven3.6.3给它打包. 结果,Maven罢工,输出如下: C:\personal\programs\ ...

  3. MAVEN 工程打包resources目录外的更多资源文件

    首先,来看下MAVENx项目标准的目录结构: 一般情况下,我们用到的资源文件(各种xml,properites,xsd文件等)都放在src/main/resources下面,利用maven打包时,ma ...

  4. Jenkins的maven工程打包的时候怎么指定不同环境的配置文件

    http://outofmemory.cn/code-snippet/6643/maven-profile-define-enviroment-package 在打包的时候我们添加上 这里我们指定配置 ...

  5. eclipse maven工程打包失败

    报错如下: Maven install失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:comp ...

  6. IDEA中maven工程打包时使用跳过test模式

  7. Maven 工程错误Failure to transfer org.codehaus.plexus:plexus-io:pom:1.0,Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1

    原本好好的Maven工程却出现了莫名的错误 Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1 from http:// ...

  8. 1.Maven+SpringMVC+Eclipse软件安装配置,Maven报插件错误,Eclipse总是卡死的解决办法,导入一个maven工程后 一直显示importing maven project

     使用Maven+SpringMVC+Eclipse软件安装配置过程中的问题: 1.Eclipse总是卡死的解决办法: 一:内存不足所以会卡死,配置一下eclipse.ini修改这几个值就好了-X ...

  9. 解决Eclipse里的Maven工程pom.xml文件报:web.xml is missing and <failOnMissingWebXml> is set to true错误

    打开eclipse准备进行开发时,发现项目上有个红星号,查看错误后发现报了一个:"web.xml is missing and <failOnMissingWebXml> is ...

随机推荐

  1. JavaScrip入门(3)

    函数: var m2=function(){ console.log('2222'); } console.log(typeof(m2)); 输出结果:test.html:31 function js ...

  2. psql-01基本介绍

    安装与启动 安装: apt-get install postgresql / yum install postgresql.XXX; 启动: mac下直接打开 linux service postgr ...

  3. js小例子(标签页)

    运用js写的一个小例子,实现点击不同的标签出现不同的内容: <!DOCTYPE html> <html> <head> <meta chaset=" ...

  4. Docker中搭建Hadoop-2.6单机伪分布式集群

    1 获取一个简单的Docker系统镜像,并建立一个容器. 1.1 这里我选择下载CentOS镜像 docker pull centos 1.2 通过docker tag命令将下载的CentOS镜像名称 ...

  5. linux 查看机器的cpu,操作系统等命令

    看cpu信息,型号,几核 [root@f3 ~]# cat /proc/cpuinfo | grep name | cut -f2 -d:| uniq -c 16 Intel(R) Xeon(R) C ...

  6. three.js透视投影照相机

    透视投影照相机(Perspective Camera)的构造函数是: THREE.PerspectiveCamera(fov, aspect, near, far) 让我们通过一张透视照相机投影的图来 ...

  7. POJ1637 Sightseeing tour(判定混合图欧拉回路)

    有向连通图存在欧拉回路的充要条件是所有点入度=出度. 首先随便给定所有无向边一个方向(不妨直接是u->v方向),记录所有点的度(记:度=入度-出度). 这时如果有点的度不等于0,那么就不存在欧拉 ...

  8. ural 2069. Hard Rock

    2069. Hard Rock Time limit: 1.0 secondMemory limit: 64 MB Ilya is a frontman of the most famous rock ...

  9. 【Excel】Excel根据单元格背景色求和

    例:用公式计算单元格背景色为浅蓝色的数字之和    步骤一: Office 2003 Insert->Name->Define,Names in workbook输入getColor或ge ...

  10. iOS学习04C语言数组

    1.一维数组 数组:具有相同类型的成员组成的一组数据 1> 定义 元素:数组中存放的数据成为数组的元素     数组是构造类型,用{...}来给构造类型赋初始值,类型修饰符用来表示元素的类型 类 ...