maven进行install的时候,test类里面报错;
COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /E:/147/cmu/src/test/java/com/migu/reading/stubCmu/NumberSegmentService.java:[22,8] com.migu.reading.stubCmu.NumberSegmentService不是抽象的, 并且未覆盖com.huawei.jaguar.commonservice.api.segment.NumberSegmentService中的抽象方法batchMatchNumberSegment(com.huawei.jaguar.commonservice.api.segment.request.BatchMatchNumberSegmentRequest)
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.801 s
[INFO] Finished at: 2018-12-06T15:14:53+08:00
[INFO] Final Memory: 44M/526M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project cmu: Compilation failure
[ERROR] /E:/147/cmu/src/test/java/com/migu/reading/stubCmu/NumberSegmentService.java:[22,8] com.migu.reading.stubCmu.NumberSegmentService不是抽象的, 并且未覆盖com.huawei.jaguar.commonservice.api.segment.NumberSegmentService中的抽象方法batchMatchNumberSegment(com.huawei.jaguar.commonservice.api.segment.request.BatchMatchNumberSegmentRequest)
[ERROR]
[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

点NumberSegmentService进去,发现有方法未重写;

对未重写的方法进行实现,alt+enter,Implement methods,就不报错了;

方法不报错后,又发现报其他的错误;

BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.039 s
[INFO] Finished at: 2018-12-06T15:17:05+08:00
[INFO] Final Memory: 40M/334M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project cmu: There are test failures.
[ERROR]
[ERROR] Please refer to E:\147\cmu\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

网上百度了一下,这是因为测试代码发生了错误,就会停止编译了,我们可以跳过测试,进行打包;

两个方法(选择其一就可以):

1、命令行:

mvn clean package -Dmaven.test.skip=true

2、在pom文件里增加以下配置;

<plugin>  
        <groupId>org.apache.maven.plugins</groupId>  
        <artifactId>maven-surefire-plugin</artifactId>  
        <version>2.4.2</version>  
        <configuration>  
          <skipTests>true</skipTests>  
        </configuration>  
</plugin>  

我选的是命令行,执行       mvn clean package -Dmaven.test.skip=true

E:\147\cmu>mvn clean package -Dmaven.test.skip=true
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'profile' (position: START_TAG seen ...<profile>\n\t\t<profile>... @11:12) @ D:\Develop\apache-maven-3.5.2\bin\.
.\conf\settings.xml, line 11, column 12
[WARNING] Unrecognised tag: 'profile' (position: START_TAG seen ...<profile>\n\t\t<profile>... @11:12) @ C:\Users\Administrator\.m2\settings
.xml, line 11, column 12
[WARNING]
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.migu.reading.server:cmu:jar:master-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.migu.reading.server:cmu:${branch}-SNAPSHOT, E:\147\cmu\pom.xml, li
ne 9, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.migu.reading.server:cmu:${branc
h}-SNAPSHOT, E:\147\cmu\pom.xml, line 1236, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cmu Maven Webapp master-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.huawei.jaguar:charging.ereading.base:jar:V300R003C20B311-20181205.183304-1068 is invalid, transitive dependencies (
if any) will not be available, enable debug logging for more details
Downloading from planetmirror.com: http://211.140.17.101:8031/nexus/content/groups/group_migu/com/google/guava/guava/maven-metadata.xml
Downloaded from planetmirror.com: http://211.140.17.101:8031/nexus/content/groups/group_migu/com/google/guava/guava/maven-metadata.xml (3.2 k
B at 12 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cmu ---
[INFO] Deleting E:\147\cmu\target
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (pre-test) @ cmu ---
[INFO] argLine set to -javaagent:D:\\javaToos\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.7.201606060606\\org.jacoco.agent-0.7.7.20160606
0606-runtime.jar=destfile=E:\\147\\cmu\\target\\jacoco\\jacoco.exec,append=true,output=file
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cmu ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ cmu ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 235 source files to E:\147\cmu\target\classes
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[69,16] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[70,16] sun.misc.SignalHandler是内部专用 API, 可能会在未来发
行版中删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[984,9] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[984,29] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[986,35] sun.misc.SignalHandler是内部专用 API, 可能会在未来
发行版中删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[990,32] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[986,9] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/assistant/InterfaceServlet.java: E:\147\cmu\src\main\java\com\migu\reading\servl
et\assistant\InterfaceServlet.java使用或覆盖了已过时的 API。
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/assistant/InterfaceServlet.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编
译。
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/management/activity/impl/ActivityManagerImpl.java: 某些输入文件使用了未经检查或不安全的
操作。
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/management/activity/impl/ActivityManagerImpl.java: 有关详细信息, 请使用 -Xlint:unchecked
重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cmu ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ cmu ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.13:test (default-test) @ cmu ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (post-test) @ cmu ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (default) @ cmu ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks main:
[propertyfile] Creating new property file: E:\147\cmu\src\main\webapp\version.txt
[INFO] Executed tasks
[INFO]
[INFO] --- maven-jar-plugin:2.3:jar (cmu-jar) @ cmu ---
[INFO] Building jar: E:\147\cmu\target\cmu-master-SNAPSHOT.jar
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-kf) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/kf] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [2753 msecs]
[INFO] Building war: E:\147\cmu\dist\kf\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-st) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/st] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [2276 msecs]
[INFO] Building war: E:\147\cmu\dist\st\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-sit) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/sit] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [2901 msecs]
[INFO] Building war: E:\147\cmu\dist\sit\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-wy) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/wy] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1099 msecs]
[INFO] Building war: E:\147\cmu\dist\wy\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-xncs) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/xncs] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1062 msecs]
[INFO] Building war: E:\147\cmu\dist\xncs\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-xncs_sq) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/xncs_sq] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [2487 msecs]
[INFO] Building war: E:\147\cmu\dist\xncs_sq\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-grap) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/grap] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [2658 msecs]
[INFO] Building war: E:\147\cmu\dist\grap\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-prod-bj) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/prod-bj] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1221 msecs]
[INFO] Building war: E:\147\cmu\dist\prod-bj\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-prod-debug) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/prod-debug] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1247 msecs]
[INFO] Building war: E:\147\cmu\dist\prod-debug\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-prod-sd) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/prod-sd] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1802 msecs]
[INFO] Building war: E:\147\cmu\dist\prod-sd\cmu.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.727 s
[INFO] Finished at: 2018-12-06T15:20:13+08:00
[INFO] Final Memory: 45M/421M
[INFO] ------------------------------------------------------------------------ E:\147\cmu>mvn clean package -Dmaven.test.skip=true
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'profile' (position: START_TAG seen ...<profile>\n\t\t<profile>... @11:12) @ D:\Develop\apache-maven-3.5.2\bin\.
.\conf\settings.xml, line 11, column 12
[WARNING] Unrecognised tag: 'profile' (position: START_TAG seen ...<profile>\n\t\t<profile>... @11:12) @ C:\Users\Administrator\.m2\settings
.xml, line 11, column 12
[WARNING]
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.migu.reading.server:cmu:jar:master-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.migu.reading.server:cmu:${branch}-SNAPSHOT, E:\147\cmu\pom.xml, li
ne 9, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.migu.reading.server:cmu:${branc
h}-SNAPSHOT, E:\147\cmu\pom.xml, line 1243, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cmu Maven Webapp master-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.huawei.jaguar:charging.ereading.base:jar:V300R003C20B311-20181205.183304-1068 is invalid, transitive dependencies (
if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cmu ---
[INFO] Deleting E:\147\cmu\target
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (pre-test) @ cmu ---
[INFO] argLine set to -javaagent:D:\\javaToos\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.7.201606060606\\org.jacoco.agent-0.7.7.20160606
0606-runtime.jar=destfile=E:\\147\\cmu\\target\\jacoco\\jacoco.exec,append=true,output=file
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cmu ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ cmu ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 235 source files to E:\147\cmu\target\classes
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[69,16] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[70,16] sun.misc.SignalHandler是内部专用 API, 可能会在未来发
行版中删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[984,9] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[984,29] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[986,35] sun.misc.SignalHandler是内部专用 API, 可能会在未来
发行版中删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[990,32] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/DispathServlet.java:[986,9] sun.misc.Signal是内部专用 API, 可能会在未来发行版中
删除
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/assistant/InterfaceServlet.java: E:\147\cmu\src\main\java\com\migu\reading\servl
et\assistant\InterfaceServlet.java使用或覆盖了已过时的 API。
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/servlet/assistant/InterfaceServlet.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编
译。
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/management/activity/impl/ActivityManagerImpl.java: 某些输入文件使用了未经检查或不安全的
操作。
[WARNING] /E:/147/cmu/src/main/java/com/migu/reading/management/activity/impl/ActivityManagerImpl.java: 有关详细信息, 请使用 -Xlint:unchecked
重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cmu ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ cmu ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.13:test (default-test) @ cmu ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (post-test) @ cmu ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (default) @ cmu ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks main:
[propertyfile] Updating property file: E:\147\cmu\src\main\webapp\version.txt
[INFO] Executed tasks
[INFO]
[INFO] --- maven-jar-plugin:2.3:jar (cmu-jar) @ cmu ---
[INFO] Building jar: E:\147\cmu\target\cmu-master-SNAPSHOT.jar
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-kf) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/kf] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1988 msecs]
[INFO] Building war: E:\147\cmu\dist\kf\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-st) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/st] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1058 msecs]
[INFO] Building war: E:\147\cmu\dist\st\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-sit) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/sit] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1064 msecs]
[INFO] Building war: E:\147\cmu\dist\sit\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-wy) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/wy] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1249 msecs]
[INFO] Building war: E:\147\cmu\dist\wy\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-xncs) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/xncs] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1023 msecs]
[INFO] Building war: E:\147\cmu\dist\xncs\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-xncs_sq) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/xncs_sq] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1191 msecs]
[INFO] Building war: E:\147\cmu\dist\xncs_sq\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-grap) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/grap] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [1245 msecs]
[INFO] Building war: E:\147\cmu\dist\grap\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-prod-bj) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/prod-bj] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [989 msecs]
[INFO] Building war: E:\147\cmu\dist\prod-bj\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-prod-debug) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/prod-debug] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [2128 msecs]
[INFO] Building war: E:\147\cmu\dist\prod-debug\cmu.war
[INFO]
[INFO] --- maven-war-plugin:2.3:war (cmu-prod-sd) @ cmu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cmu] in [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [E:\147\cmu\runtimeconf/prod-sd] to [E:\147\cmu\target\cmu-master-SNAPSHOT]
[INFO] Copying webapp resources [E:\147\cmu\src\main\webapp]
[INFO] Webapp assembled in [927 msecs]
[INFO] Building war: E:\147\cmu\dist\prod-sd\cmu.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.098 s
[INFO] Finished at: 2018-12-06T15:32:39+08:00
[INFO] Final Memory: 45M/353M
[INFO] ------------------------------------------------------------------------

可以发现,我们build success了!

Maven进行install的时候报错,COMPILATION ERROR : Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project cmu: There are test failures.的更多相关文章

  1. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war

    创建springboot项目,且不采用<parent>引入springboot时,pom.xml如下: <?xml version="1.0" encoding= ...

  2. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project taotao-manager-pojo: Compilation failure

    运行maven项目时报错 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compi ...

  3. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project triage: Compilation failure [ERROR] No compiler is provided in this environment.

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-c ...

  4. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4: install (default-install) on project authorizationManagement-service: Failed to install metadata com.dmsdbj.itoo:autho

    今天在打包时遇到这个问题: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4: inst ...

  5. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:

    security-sdk-1.0.jar已经存在于D:/secServerSDK-test/src/main/resources/lib下 报错如下: xxxxxx@xxxxxxxx /d/secSe ...

  6. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project child02

    maven打包成war时,报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (d ...

  7. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of 3: mojo org.apache.maven.plugins:

    问题: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (defau ...

  8. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on ...

  9. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on project kircp-js-plan-resource: The packaging for this project did not assign a file to the bu

    结合网上的相关资料,要使用Lifecycle下的install 原因好像是Lifecycle下才会走Maven完整的phase.

随机推荐

  1. python第三方库requests简单介绍

    一.发送请求与传递参数 简单demo: import requests r = requests.get(url='http://www.itwhy.org') # 最基本的GET请求 print(r ...

  2. python函数的万能参数

    我们通过一个简单的事例来展示一下函数的万能参数,我们先写一个最简单的函数 def test(*args,**kwargs): print(args,kwargs) 然后定义两个变量 l = [1,2, ...

  3. 联想G510安装win7系统

    1.插入系统盘重启(要按Fn+f12) 2默认下一步 3.选择自定义 4.选择需要将系统安装到的分区,格式化,然后下一步 5.默认下一步 安装到这里就成功了 6.问题处理: 第4步时出现 Window ...

  4. Bootstrap(7) 输入框和导航组件

            一.输入框组件 文本输入框就是可以在<input>元素前后加上文字或按钮,可以实现对表单控件的扩展. //在左侧添加文字 <!-- //在左侧添加文字 --> ...

  5. JSON与GSON比较

    JSON: 是Android SDK官方的库,所以在开发移动端的工程时就必须使用JSON.进行数据的转换和处理 GSON: GSON适用于服务端,gson比json功能更加强大.比如在集合类的处理.自 ...

  6. MVC报错:找到多个与名为“Home”的控制器匹配的类型。

    错误原因是:在根目录中的Controller中有HomeController,而在Areas中也有一个HomeController,只是他们的命名空间不一样. 这样的话,只需要在对应的路由注册中加入命 ...

  7. Jenkins+Jmeter+Ant自动化集成及邮件正文以html输出

    一.工具的安装与环境变量配置 1.依次安装Jenkins+Jmeter+Ant,具体安装步骤,此文不再详述 2.配置Jmeter&ant环境变量 Jmeter变量: 验证是否配置成功:cmd窗 ...

  8. 全局组建封装(挂载到vue实例的原型中,通过this访问)

    主题:组建的封装  一:install注册的全局封装(v-grid九宫格组建)               1.九宫格的封装主要有三个api 点击功能 每行个数 是否隐藏边框              ...

  9. asp.net web 服务器端全局定时执行任务

    web网站里面,需要每隔1分钟,执行一个任务,并且一直保持这个定时执行状态,可以用如下一个方法:    1,Global.asax里面的 Application_Start ,发生在第一次请求网站的时 ...

  10. Python之socket编程进阶版

    1.socket之简单的ssh功能 2.socket之简单的ftp服务器 3.socketserver的用法 4.socketserver的多并发的实现 1.socket实现ssh服务 1.1我们现在 ...