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.

时间:2022-08-04 17:15:15
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进去,发现有方法未重写;

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.

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

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.

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

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了!