- -----------------------------------------------------
- T E S T S
- -------------------------------------------------------
- -------------------------------------------------------
- T E S T S
- -------------------------------------------------------
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Running com.soso.baike.audit.log.MainTest
- Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Running com.soso.baike.domain.LevelTest
- Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false
- Running com.soso.baike.fs.LemmaFsGetCmdTest
- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
- Running com.soso.baike.domain.AuditInfoTest
- Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.142 sec
- SLF4J: Class path contains multiple SLF4J bindings.
- 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]
- 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]
- SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
- log4j:ERROR Could not find value for key log4j.appender.noerrorLog
- log4j:ERROR Could not instantiate appender named "noerrorLog".
- log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
- log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
- Running com.soso.baike.dao.db.level.IbatisLevelDaoTest
- Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.681 sec <<< FAILURE!
- testGet(com.soso.baike.dao.db.level.IbatisLevelDaoTest) Time elapsed: 0.001 sec <<< ERROR!
- java.lang.NullPointerException
- at com.soso.baike.dao.db.level.IbatisLevelDaoTest.testGet(IbatisLevelDaoTest.java:23)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
- at java.util.concurrent.FutureTask.run(FutureTask.java:262)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
这是用idea右侧的maven Projects下的package功能打包maven工程时候出现的错误
解决办法:不用上述方式编译打包,改用命令行方式跳过Test,命令如下:
mvn clean package -DskipTests
这样maven就不会进行Test相关的编译了。