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. 浅析java修饰符之public default protected private static final abstract

    浅析java修饰符之public default protected private static final abstract 一   修饰符的作用:用来定义类.方法或者变量,通常放在语句的最前端 ...

  2. python中类变量和成员变量、局部变量总结

    class Member(): num= #类变量,可以直接用类调用,或用实例对象调用 def __init__(self,x,y): self.x=x #实例变量(成员变量),需要它是在类的构造函数 ...

  3. composer ip2city配置

    //根据ip获取地址信息composer require "mylukin/ip2city: dev-master" // vendor/mylukin/ip2city/src/I ...

  4. Bootstrap(6)辅组类和响应式工具

    一.辅助类 Bootstrap 在布局方面提供了一些细小的辅组样式,用于文字颜色以及背景色的设置.显示关闭图标等等. 1.情景文本颜色 各种色调的字体 <p class="text-m ...

  5. 通过docker-compose构建ghost博客(二)

    上一篇通过yml文件构建 ghost博客,这次通过构建nginx服务,并添加反向代理来运行搭建的ghost博客. 目录结构 ghost.conf 就是 定义的nginx 加载的配置文件 server ...

  6. PARAMETERS 指令

    语法: PARAMETERS  <p>  [DEFAULT <f>] [LOWER CASE] [OBLIGATORY] [AS CHECKBOX] [RADIOBUTTON ...

  7. bean生命周期_Junit测试使用factory模式

    在面试某互联网_保险 公司, 被问到了spring中bean的生命周期,不禁联想到我们之前作 junit测试时,使用了Factory模式,而没有用Mock.

  8. [转]C#中HttpClient使用注意:预热与长连接

    最近在测试一个第三方API,准备集成在我们的网站应用中.API的调用使用的是.NET中的HttpClient,由于这个API会在关键业务中用到,对调用API的整体响应速度有严格要求,所以对HttpCl ...

  9. c# 2016QQ自动登录程序

    程序是抓QQ主程序窗体句柄,通过移位定位到QQ 输入框,虚拟键盘输入后,ALT切换到密码框的方式实现的 附程序: using System;using System.Collections.Gener ...

  10. BZOJ 1227 [SDOI2009]虔诚的墓主人 - 扫描线

    Solution 离散化 扫描线, 并用 $rest[i]$ 和 $cnt[i]$ 记录 第$i$列 总共有 $cnt[i]$棵常青树, 还有$rest[i]$ 没有被扫描到. 那么 第$i$ 列的方 ...