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的
随机推荐
- link标签中rel属性的作用
Link标签有两个作用:1. 定义文档与外部资源的关系:2. 是链接样式表.link标签是用于当前文档引用外部文档的 这个标签的rel属性用于设置对象和链接目标间的关系,说白了就是指明你链进来的对象是 ...
- 时间戳转换日期格式 - Vue
日常开发中经常会遇到时间相关的问题,服务端返回的数据都是以时间戳的方式,那么需要将其处理转化为对应的时间格式,具体方式如下: 一.filters 中 formatDate 方法实现 <scrip ...
- Hibernate:基于HQL实现数据查询
HQL: hibernate query language(hibernate特有的查询语言) hql是基于对象的查询语言,其语法与sql类似,但是他和sql的区别在于sql是面向表和字段的查询,而 ...
- md5sum - 计算检验MD5效验码
总览 (SYNOPSIS) ../src/md5sum [OPTION] [FILE]... ../src/md5sum [OPTION] --check [FILE] 描述 (DESCRIPTION ...
- Python字符串(str)方法调用
# str# n = 'pianYU'# v = n.capitalize() # 将字符串的首字母大写# print(v)## n = 'pianYI'# v1 = n.isupper() # 判断 ...
- Python3找出List中最大_最小的N个数及索引
# -*- coding: utf-8 -*- import heapq nums = [1, 8, 2, 23, 7, -4, 18, 23, 24, 37, 2] # 最大的3个数的索引 max_ ...
- 如何设置Linux虚拟机的IP地址
本文会详细的解释如何在Linux虚拟机下设置IP地址 我的虚拟机是CentOS 首先,打开你的虚拟机 1.修改主机名 修改完主机名之后,别忘了用:wq命令保存退出 然后我们来设置虚拟机的IP地址 首先 ...
- python3-访问限制
在Class内部,可以有属性和方法,而外部代码可以通过直接调用实例变量的方法来操作数据,这样,就隐藏了内部的复杂逻辑. 但是,从前面Student类的定义来看,外部代码还是可以自由地修改一个实例的na ...
- JavaWeb中的文件上传和下载功能的实现
导入相关支持jar包:commons-fileupload.jar,commons-io.jar 对于文件上传,浏览器在上传的过程中是将文件以流的形式提交到服务器端的,如果直接使用Servlet获取上 ...
- LOJ#3097 [SNOI2019]通信 最小费用最大流+cdq分治/主席树/分块优化建图
瞎扯 我们网络流模拟赛(其实是数据结构模拟赛)的T2. 考场上写主席树写自闭了,直接交了\(80pts\)的暴力,考完出来突然发现: woc这个题一个cdq几行就搞定了! 题意简述 有\(n\)个哨站 ...