• 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:workspacezhonghuaClaimpom.xml to D:eazhonghuaapache-maven-3.1.0 epocomcicClaim.0.1-SNAPSHOTClaim-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:workspacezhonghuaClaimClaim-Utils arget
    [INFO]
    [INFO] --- jacoco-maven-plugin:0.6.3.201306030806:prepare-agent (default-prepare-agent) @ Claim-Utils ---
    [INFO] argLine set to -javaagent:D:eazhonghuaapache-maven-3.1.0 epoorgjacocoorg.jacoco.agent.6.3.201306030806org.jacoco.agent-0.6.3.201306030806-runtime.jar=destfile=D:workspacezhonghuaClaimClaim-Utils argetjacoco.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:workspacezhonghuaClaimClaim-Utilssrcmain esources
    [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:workspacezhonghuaClaimClaim-Utils argetclasses
    [WARNING] 注意:D:workspacezhonghuaClaimClaim-UtilssrcmainjavacomcicclaimutilsHttpUtil.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:workspacezhonghuaClaimClaim-Utils arget est-classes
    [WARNING] /D:/workspace/zhonghua/Claim/Claim-Utils/src/test/java/com/cic/claim/deploy/DeployPackageFileListGenerator.java:[53,47] D:workspacezhonghuaClaimClaim-Utilssrc estjavacomcicclaimdeployDeployPackageFileListGenerator.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:workspacezhonghuaClaimClaim-Utils argetsurefire-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:workspacezhonghuaClaimClaim-Utils argetsurefire-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

  • 相关阅读:
    isalnum()方法
    index()方法
    find()方法
    expandtabs()方法
    endswith()方法
    encode()方法
    bytes.decode()方法
    count()方法
    center()方法
    capitalize()方法
  • 原文地址:https://www.cnblogs.com/chuang-sharing/p/11383462.html
Copyright © 2020-2023  润新知