Maven install报错:MojoFailureException ,To see the full stack trace of the errors, re-run Maven with the -e switch.解决
报错日志:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Claim
[INFO] Claim-Utils
[INFO] Claim-Configuration
[INFO] Claim-CFE
[INFO] Claim-Rules
[INFO] Claim-BPM
[INFO] Claim-IFInvoke
[INFO] Claim-Business
[INFO] Claim-Portal
[INFO] Claim-Archive
[INFO] Claim-Batch
[INFO] Claim-IFService
[INFO] Claim-Web Maven Webapp
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Claim 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Claim ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.6.3.201306030806:prepare-agent (default-prepare-agent) @ Claim ---
[INFO] Skipping JaCoCo for project with packaging type 'pom'
[INFO] argLine set to
[INFO]
[INFO] --- jacoco-maven-plugin:0.6.3.201306030806:report (default-report) @ Claim ---
[INFO] Skipping JaCoCo for project with packaging type 'pom'
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ Claim ---
[INFO] Installing D:\workspace\zhonghua\Claim\pom.xml to D:\bea\zhonghua\apache-maven-3.1.0\repo\com\cic\Claim\0.0.1-SNAPSHOT\Claim-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Claim-Utils 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Claim-Utils ---
[INFO] Deleting D:\workspace\zhonghua\Claim\Claim-Utils\target
[INFO]
[INFO] --- jacoco-maven-plugin:0.6.3.201306030806:prepare-agent (default-prepare-agent) @ Claim-Utils ---
[INFO] argLine set to -javaagent:D:\bea\zhonghua\apache-maven-3.1.0\repo\org\jacoco\org.jacoco.agent\0.6.3.201306030806\org.jacoco.agent-0.6.3.201306030806-runtime.jar=destfile=D:\workspace\zhonghua\Claim\Claim-Utils\target\jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ Claim-Utils ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\workspace\zhonghua\Claim\Claim-Utils\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ Claim-Utils ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 35 source files to D:\workspace\zhonghua\Claim\Claim-Utils\target\classes
[WARNING] 注意:D:\workspace\zhonghua\Claim\Claim-Utils\src\main\java\com\cic\claim\utils\HttpUtil.java 使用或覆盖了已过时的 API。
[WARNING] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ Claim-Utils ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ Claim-Utils ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to D:\workspace\zhonghua\Claim\Claim-Utils\target\test-classes
[WARNING] /D:/workspace/zhonghua/Claim/Claim-Utils/src/test/java/com/cic/claim/deploy/DeployPackageFileListGenerator.java:[53,47] D:\workspace\zhonghua\Claim\Claim-Utils\src\test\java\com\cic\claim\deploy\DeployPackageFileListGenerator.java:53: 警告:最后一个参数使用了不准确的变量类型的 varargs 方法的非 varargs 调用;
对于 varargs 调用,应使用 java.lang.Object
对于非 varargs 调用,应使用 java.lang.Object[],这样也可以抑制此警告
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ Claim-Utils ---
[INFO] Surefire report directory: D:\workspace\zhonghua\Claim\Claim-Utils\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.cic.claim.cache.ClaimBusinessObjectCacheTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/bea/zhonghua/apache-maven-3.1.0/repo/com/cic/caf/caf-core/1.1.4.4/caf-core-1.1.4.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/bea/zhonghua/apache-maven-3.1.0/repo/ch/qos/logback/logback-classic/1.0.12/logback-classic-1.0.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [com.cic.caf.core.log.LoggerFactoryWrapper]
SLF4J: The following loggers will not work because they were created
SLF4J: during the default configuration phase of the underlying logging system.
SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
SLF4J: runtime.checking
15:22:41.161 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext.xml]
15:22:41.809 [main] INFO o.s.c.s.GenericApplicationContext - Refreshing org.springframework.context.support.GenericApplicationContext@6a5eb489: startup date [Tue Aug 20 15:22:41 CST 2019]; root of context hierarchy
15:22:42.192 [main] INFO o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7a20807c: defining beans [claimBusinessObjectCache,claimExceptionContentHandler,controllerExceptionInterceptor,baseQueryDao,objectSpecEO,mysqlBatchIdentifierGeneratorImpl,mysqlSequnceService,oracleBatchIdentifierGeneratorImpl,newObjectActualLoader,objectActualLoader,equalOperator,greaterThanOperator,greaterThanOrEqualOperator,inOperator,isNotNullOperator,isNullOperator,lessThanOperator,lessThanOrEqualOperator,likeOperator,notEqualIncludeNullOperator,notEqualOperator,notInOperator,notLikeOperator,propertyValueFilterHqlComposer,quickObjectActualLoader,objectSpecService,propertySpecService,xmlObjectActualBuilder,objectActualImpl,propertyActualImpl,oracleSequnceDao,objectTreeServiceImpl,objectTreeDefinition,booleanValueConverter,dateValueConverter,doubleValueConverter,integerValueConverter,moneyValueConverter,serviceLocator,stringValueConverter,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,cacheManager,businessObjectCache,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
15:22:42.221 [main] INFO com.cic.tom.util.ServiceLocator - ------->>> setApplicationContext ......
15:22:42.401 [main] INFO o.s.c.e.EhCacheManagerFactoryBean - Initializing EhCache CacheManager
15:22:42.683 [main] INFO c.c.c.cache.ClaimBusinessObjectCache - Set object to cache id=1232323, object=34234.34.
15:22:47.684 [main] INFO c.c.c.cache.ClaimBusinessObjectCache - Get object from cache id=1232323, object=34234.34.
15:22:47.686 [main] INFO c.c.c.cache.ClaimBusinessObjectCache - Remove object from cache id=1232323.
15:22:47.687 [main] INFO c.c.c.cache.ClaimBusinessObjectCache - Get object from cache id=1232323, object=null
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.54 sec - in com.cic.claim.cache.ClaimBusinessObjectCacheTest
Running com.cic.claim.utils.ComparatorUtilsTest
15:22:47.712 [main] INFO com.cic.claim.utils.ComparatorUtils - list1:[null, null, null, null, Fri Nov 07 08:12:12 CST 2014, Fri Nov 07 09:12:12 CST 2014, Sat Nov 07 09:12:12 CST 2015, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019]
15:22:47.713 [main] INFO com.cic.claim.utils.ComparatorUtils - list2:[null, null, null, null, Fri Nov 07 08:12:12 CST 2014, Fri Nov 07 09:12:12 CST 2014, Sat Nov 07 09:12:12 CST 2015, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019, Tue Aug 20 15:22:47 CST 2019]
true
false
-1
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in com.cic.claim.utils.ComparatorUtilsTest
Running com.cic.claim.utils.TestUtilsTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! - in com.cic.claim.utils.TestUtilsTest
testSplit(com.cic.claim.utils.TestUtilsTest) Time elapsed: 0.005 sec <<< FAILURE!
java.lang.AssertionError: expected:<7> but was:<8>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at com.cic.claim.utils.TestUtilsTest.testSplit(TestUtilsTest.java:21)
Running com.cic.claim.utils.ValidateUtilsTest
INFO: 为了在生产运行中能正常运行,需要设置-DserverIP=XXX -DserverPort=XXX。
INFO: 建议设置-DappServerID以便能更简单的标示。
INFO: ---------------------------系统参数配置信息---------------------------------------------------------------------
INFO: RUN_MODE:Locale, SERVER_IP:, SERVER_PORT:, APP_SERVER_ID:, CONTEXT_ROOT:
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec - in com.cic.claim.utils.ValidateUtilsTest
15:22:47.768 [Thread-1] INFO o.s.c.s.GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@6a5eb489: startup date [Tue Aug 20 15:22:41 CST 2019]; root of context hierarchy
15:22:47.771 [Thread-1] INFO o.s.b.f.s.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7a20807c: defining beans [claimBusinessObjectCache,claimExceptionContentHandler,controllerExceptionInterceptor,baseQueryDao,objectSpecEO,mysqlBatchIdentifierGeneratorImpl,mysqlSequnceService,oracleBatchIdentifierGeneratorImpl,newObjectActualLoader,objectActualLoader,equalOperator,greaterThanOperator,greaterThanOrEqualOperator,inOperator,isNotNullOperator,isNullOperator,lessThanOperator,lessThanOrEqualOperator,likeOperator,notEqualIncludeNullOperator,notEqualOperator,notInOperator,notLikeOperator,propertyValueFilterHqlComposer,quickObjectActualLoader,objectSpecService,propertySpecService,xmlObjectActualBuilder,objectActualImpl,propertyActualImpl,oracleSequnceDao,objectTreeServiceImpl,objectTreeDefinition,booleanValueConverter,dateValueConverter,doubleValueConverter,integerValueConverter,moneyValueConverter,serviceLocator,stringValueConverter,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,cacheManager,businessObjectCache,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
15:22:47.819 [Thread-1] INFO o.s.c.e.EhCacheManagerFactoryBean - Shutting down EhCache CacheManager
Results :
Failed tests:
TestUtilsTest.testSplit:21 expected:<7> but was:<8>
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Claim ............................................. SUCCESS [1.336s]
[INFO] Claim-Utils ....................................... FAILURE [12.374s]
[INFO] Claim-Configuration ............................... SKIPPED
[INFO] Claim-CFE ......................................... SKIPPED
[INFO] Claim-Rules ....................................... SKIPPED
[INFO] Claim-BPM ......................................... SKIPPED
[INFO] Claim-IFInvoke .................................... SKIPPED
[INFO] Claim-Business .................................... SKIPPED
[INFO] Claim-Portal ...................................... SKIPPED
[INFO] Claim-Archive ..................................... SKIPPED
[INFO] Claim-Batch ....................................... SKIPPED
[INFO] Claim-IFService ................................... SKIPPED
[INFO] Claim-Web Maven Webapp ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.460s
[INFO] Finished at: Tue Aug 20 15:22:47 CST 2019
[INFO] Final Memory: 23M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project Claim-Utils: There are test failures.
[ERROR]
[ERROR] Please refer to D:\workspace\zhonghua\Claim\Claim-Utils\target\surefire-reports for the individual test results.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :Claim-Utils
解决:https://blog.csdn.net/a515557595_xzb/article/details/81603571
Maven install报错:MojoFailureException ,To see the full stack trace of the errors, re-run Maven with the -e switch.解决的更多相关文章
- maven install报错 Failed to execute goal on project my-manager-mapper: Could not resolve dependencies for project com.my:my-manager-mapper:jar:0.0.1-SNAPSHOT:
报错信息为: [ERROR] Failed to execute goal on project my-manager-mapper: Could not resolve dependencies f ...
- Maven install 报错: Failed to execute goalorg.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign-art
执行 Maven install 时报错: Failed to execute goalorg.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign ...
- maven install 报错 No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
1.控制台打印信息 [INFO] Scanning for projects... [INFO] [INFO] ---------------------< org.cqupt.mauger:R ...
- 解决maven install报错信息(Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile )
Maven install失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (d ...
- npm install报错Unhandled rejection RangeError: Maximum call stack size exceededill install
故障 在使用npm install下载依赖的时候报错Unhandled rejection RangeError: Maximum call stack size exceededill instal ...
- 解决maven install报错:java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/InclusionScanException
问题:maven install时,报错:java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/Inclusio ...
- maven install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project*****
[ERROR]Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-co ...
- maven install 报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of ...
- eclipse maven install 报错 jdk rather than jre?
解决方案:window => Perference => java => install jre => 选中jre => edit => 选择文件夹为jdk的
随机推荐
- js实现计算器效果
<!DOCTYPE html> <html> <!-- Created using jsbin.com Source can be edited via http://j ...
- C#GC垃圾回收和析构函数和IDisposable的使用
一,什么是GC 1,GC是垃圾回收器,一般来说系统会自动检测不会使用的对象或变量进行内存的释放,不需要手动调用,用Collect()就是强制进行垃圾回收,使内存得到及时的释放,让程序效率更高. 2,G ...
- 自定义ajax函数(仿照jQuery)
AJAX介绍 AJAX = 异步 JavaScript 和 XML. 全称:Asynchronous Javascript And XML: AJAX 是一种用于创建快速动态网页的技术. 通过在后台与 ...
- 034-openstack中虚拟机启动后主机名设置问题
openstack中虚拟机启动后主机名设置问题,在centos7中设置hostname后怎么都是原来的hostname,根本无效. 方法一: 在centos7中除了修改hosts文件和network文 ...
- Python核心技术与实战——三|字符串
一.字符串基础 Python的字符串支持单引号('').双引号("")和三引号之中('''....'''和"""...""&quo ...
- python List 常用方法
list是python常用的数据类型,属于可变的数据类型.用[]表示,里面的元素用','隔开,并且里面的元素类型可以不同,对于每个元素,list都有一个索引一一对应,第一个元素的索引是0,第二个是1, ...
- 如何将上个SQL的结果作为参数传递给下个SQL
如何将上个SQL的结果作为参数传递给下个SQL: ##source认证 kinit认证 source /home/omm/ficlient/bigdata_env kinit -k -t /ETL/c ...
- es6的...用法
...将一个数组转为用符号分隔的参数序列 1.console.log(1, ...[2, 3, 4], 5) // 1 2 3 4 5 2. var args = [0, 1, 2]; f.apply ...
- 关于Ubuntu 14.04 安装Oracle 11gR2安装步骤(从开始到放弃--最终使用docker获取)
最近在复习Oracle的相关内容,好准备在下一份工作中能够熟练一些,所以准备在自己虚拟机中安装Oracle的11gR2版本,主要参考内容为: https://blog.csdn.net/qq_4025 ...
- zrender笔记----(数字Number组件)出现的问题和解决办法
1.期望的效果是这样子的(这也是最终结果): 2.开始是用json假数据,开始没考虑null的问题,导致在判断传值处,判断有误. 导致在对接接口时,凌乱了,后来修改了下变成后面图C的逻辑,json数据 ...