`
sanyecao2314
  • 浏览: 135137 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:

阅读更多

maven 执行test报错.

错误信息如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project

后改为如下即不报错:

  <plugin>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <version>2.3.2</version>
                        <configuration>
                            <source>1.8</source>
                            <target>1.8</target>
                        </configuration>
                    </plugin>
                    <plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>2.12</version>
						<dependencies>
							<dependency>
								<groupId>org.apache.maven.surefire</groupId>
								<artifactId>surefire-junit47</artifactId>
								<version>2.12</version>
							</dependency>
						</dependencies>
					</plugin>

 上面添加 <version>2.3.2</version>即可.网上一种说法是上面两个插件不匹配导致的.具体待分析.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics