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.
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.的更多相关文章
- [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= ...
- [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 ...
- [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 ...
- [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 ...
- [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 ...
- [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 ...
- [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 ...
- [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 ...
- [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.
随机推荐
- selenimu学习二
1.上传文件 from selenium import webdriver import time import os driver = webdriver.Chrome() src_file = & ...
- swift - label 的font 设置 文字字体和大小
设置字体和颜色 lab.textColor = UIColor.init(hexColor: "795928") lab.font = UIFont.systemFont(ofSi ...
- [leetcode]311. Sparse Matrix Multiplication 稀疏矩阵相乘
Given two sparse matrices A and B, return the result of AB. You may assume that A's column number is ...
- day 20 类与类之间的关系,继承2
类与类之间的关系: 依赖关系 关联关系 聚合关系 组合关系 依赖关系: 大象与冰箱的例子 # 依赖关系,冰箱依赖大象打开 class Elephant: def __init__(self,name) ...
- python脚本计算斐波那契数列
有一列数组[1,1,2,3,5,8,,,,,],计算第n个数字的大小 def abstract(n): fibs = [1, 1] for i in range(n-2): fibs.append(f ...
- gearman管理工具GearmanManager的安装与使用
一.gearman自带了一个gearadmin工具 查看帮助信息 > gearadmin --help 查看状态 > gearadmin --status 查看worker信息 > ...
- excel数据复制到html表格<textarea>中
方案一 多行文本框接收到复制的excel值后,在文本框的chage事件中,将excel内容分割到二维数组中,然后填充到html的表格的input或textarea中. 数据格式: 单元格复制后的数据格 ...
- 在BCH硬分叉后防止重放攻击-1
导致新加密货币的硬分叉为加密交换运营商带来了独特的机遇和挑战.Poloniex在最近的Bitcoin Cash硬叉之后面临的一个挑战是保护我们的客户免受重播攻击.由于SV链后面的开发团队选择在分叉后近 ...
- Angular5学习札记
1.使用cnpm安装jQuery和bootstrap后,页面没有加载的问题 -使用cnpm安装的路径和使用npm安装路径不一样,解决如下: 把css路径改成"../node_modules/ ...
- Informatica_(3)组件
一.Informatica介绍Informatica PowerCenter 是Informatica公司开发的世界级的企业数据集成平台,也是业界领先的ETL工具.Informatica PowerC ...