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的
随机推荐
- Springboot+CAS单点登录
一:安装CAS 下载cas:https://github.com/apereo/cas 1.1 将cas并打成war包.放入一个干净的tomcat中,启动tomcat测试: http://localh ...
- 剑指offer-复杂链表的复制-链表-python
题目描述 输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针指向任意一个节点),返回结果为复制后复杂链表的head.(注意,输出结果中请不要返回参数中的节点引用,否 ...
- [七月挑选]IntelliJ IDEA常用设置
title: IntelliJ IDEA常用设置 设置idea的类注释快捷键 File -> Settings -> Live Templates 1.右边的 + -> Templa ...
- js中的函数防抖与节流
一.滚动条监听的例子 写一个功能需求-- 监听浏览器滚动事件,返回当前滚条与顶部的距离,代码如下: function showTop () { var scrollTop = document.bod ...
- 图像语义分割出的json文件和原图,用plt绘制图像mask
1.弱监督 由于公司最近准备开个新项目,用深度学习训练个能够自动标注的模型,但模型要求的训练集比较麻烦,,要先用ffmpeg从视频中截取一段视频,在用opencv抽帧得到图片,所以本人只能先用语义分割 ...
- string初始化
#include <iostream> using namespace std; int main(int argc, const char * argv[]) { //通过const c ...
- 如何保证Redis与数据库的数据一致性
一般来说,只要你用到了缓存,不管是Redis还是memcache,就可能会涉及到数据库缓存与数据的一致性问题,这里我们以Redis为例. 我们该如何保证Redis与数据库的一致性呢? So easy: ...
- 关于sword框架浏览器上方小图标的修改
sword框架默认有一个document.ejs文件,可以导出html模板(找了很久没找到index.html,哈哈哈),里面有一行代码 这个href就是代表着浏览器上方图标的路径. 在public文 ...
- [BZOJ3714] Kuglarz
问题描述 魔术师的桌子上有n个杯子排成一行,编号为1,2,-,n,其中某些杯子底下藏有一个小球,如果你准确地猜出是哪些杯子,你就可以获得奖品.花费c_ij元,魔术师就会告诉你杯子i,i+1,-,j底下 ...
- A1065
判断两数相加是否大于第三数,大于输出true,否则输出false(相等也是false) 1 需要注意数字溢出的问题: 2 先判断溢出,因为在a,b都是负数最小值的情况下,相加直接是正数,在c较小的时候 ...