maven报错:org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project

今天在部署maven的项目的时候报 org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test(default-test) on project错误  具体的是以下错误信息:

[ERROR] Failed to execute goalorg.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) onproject newProject: There are test failures.

[ERROR]

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack traceof the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -Xswitch to enable full debug logging.

[ERROR]

[ERROR] For more information aboutthe errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR]

[ERROR] After correcting the problems, youcan resume the build with the command

这种每次Build 都是失败的,于是只能找办法解决,后来在网上找到了解决办法,在这里记录一下。。。遇到这种问题只需要在pom.xml加入以下代码就可以完美解决。。

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

这个问题应该是测试文件出了错。。直接跳过测试就可以咯。。。

时间: 2024-07-30 03:15:30

maven报错:org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project的相关文章

mavne install 报错org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException

maven install 报错 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: nulljava.lang.reflect.InvocationTargetException at sun.reflect.

maven报错(http://repo.maven.apache.org/maven2): No response received after 60000

报错详情:Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

Maven报错“未结束的字符串字面值” “需要为 class、interface 或 enum”等

eclipse里面编译完全正常,mvn clean install 这么惨的错误: Compilation failure: [ERROR] *.java:[38,27] 未结束的字符串字面值 [ERROR] *.java:[38,53] 需要 ';' [ERROR] *.java:[41,19] 需要 ')' [ERROR] *.java:[41,12] 不是语句 [ERROR] *.java:[41,23] 需要 ';' [ERROR] *.java:[41,26] 不是语句 [ERROR]

创建Maven报错

Maven报错:maven-archetype-webapp:RELEASE from any of the configured repositories 今天学习maven,在控制台下新建maven项目没有问题,但是在STS(eclipse)下创建maven项目老是报错,郁闷死了: ---------------------------------------------------- 错误信息:Could not resolve archetype org.apache.maven.arc

Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle

Maven报错 解决方案.ERROR: No goals have been specified for this build. You must specify a valid lifecycle 报错: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal>

web转maven报错

http://howtodoinjava.com/2013/06/04/solved-java-compiler-level-does-not-match-the-version-of-the-installed-java-project-facet/ mvn eclipse:eclipse -Dwtpversion=2.0 web转maven报错

Tomcat启动报错[org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed

Tomcat启动报错: [org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/SoftwareDevelopment/Software/Eclipse4.3/eclipse-jee-kepler-SR1-win32-x86_64/Workspace/.metadata/.plugins/org.ec

Mybatis缓存报错org.apache.ibatis.exceptions.PersistenceException

错误信息如下: org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.cache.CacheException: Error deserializing object. Cause: java.lang.ClassNotFoundException: com.kytsoft.model.Adminlink ### Cause: org.apa

用java运行Hadoop程序报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.

用java运行Hadoop例程报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.所写代码如下: package com.pcitc.hadoop; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.h