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.
随机推荐
- Django使用jsonp和cors解决跨域请求问题
1.使用jsonp的方式解决跨域请求的问题 我启动两个django项目,然后使用的端口不一样,在项目1中通过ajax发请求给项目2,然后接受项目2发送过来的数据 先看项目1的ajax的代码 $(&qu ...
- python添加fluent日志记录-aop
python添加fluent日志,aop实现 1.配置fluent相关信息 fluent_config.ini fluent_config.ini [fluent.aop] #is support f ...
- swoole的EventLoop学习
我们先使用php来写一个socket的服务端.先从最开始的模型开始将起逐步引申到为何要使用eventloop 1.最简单的socket服务端,直接按照官方文档来执行 <?php $sock = ...
- hdu 1757 (矩阵快速幂) 一个简单的问题 一个简单的开始
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1757 题意不难理解,当x小于10的时候,数列f(x)=x,当x大于等于10的时候f(x) = a0 * ...
- JVM 运行时数据区 (三)
JVM运行时数据区 运行时数据区由 程序计数器.java虚拟机栈.本地方法栈.堆.方法区 组成: 1.程序计数器 每一个Java线程都有一个程序计数器,用于保存程序执行到当前方法的哪一个指令,它是线程 ...
- javascript 高级程序设计 十一
接上一节的创建对象的模式: 原型模式: 对于prototype的理解:我们创建的函数都有一个prototype(原型)属性,这个属性是一个指针指向一个对象,而这个对象的用途是包含基于这个方法的 所有的 ...
- Go语言之讲解GOROOT、GOPATH、GOBIN
Go是一门全新的静态类型开发语言,具有自动垃圾回收,丰富的内置类型,函数多返回值,错误处理,匿名函数,并发编程,反射等特性. go命令依赖一个重要的环境变量:$GOPATH GOPATH允许多个目录, ...
- BZOJ1999或洛谷1099&BZOJ2282或洛谷2491 树网的核&[SDOI2011]消防
一道树的直径 树网的核 BZOJ原题链接 树网的核 洛谷原题链接 消防 BZOJ原题链接 消防 洛谷原题链接 一份代码四倍经验,爽 显然要先随便找一条直径,然后直接枚举核的两个端点,对每一次枚举的核遍 ...
- python——简单爬虫
因为要学习python,所以看到一些网站有很多文章. 如:http://python.jobbole.com/all-posts/ 目标: 将某个网站脚本编程->python模块这个分类下所有的 ...
- delphi sdk 函数个数知多少?
pascal用了这么久 那么您知道他有多少个函数,过程? 笔者统计了一下, delphi 7 21579个delphi xe2 41145个lazarus 1.12 70987个 ==== ...