为了账号安全,请及时绑定邮箱和手机立即绑定

mvn test报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project maven01-model: There are test failures.

-----------------------------------------------

在pom.xml中加入如下内容后:

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

----------------------------------------------------------------------------------------------

再次执行mvn test

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building maven01-model 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ maven01-model ---

[debug] execute contextualize

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory D:\apache-maven-3.0.5\code\maven01\src\main\resources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ maven01-model ---

[INFO] Nothing to compile - all classes are up to date

[INFO]

[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ maven01-model ---

[debug] execute contextualize

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory D:\apache-maven-3.0.5\code\maven01\src\test\resources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ maven01-model ---

[INFO] Nothing to compile - all classes are up to date

[INFO]

[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ maven01-model ---

[INFO] Tests are skipped.

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.676s

[INFO] Finished at: Sun Feb 16 23:13:33 CST 2020

[INFO] Final Memory: 7M/154M

[INFO] ------------------------------------------------------------------------

------------------------------------------------------------------------------------

有两个警告,怎么解决?

正在回答

2 回答

https://vk.com/topic-210967729_48611493
https://vk.com/topic-210967729_48611498
https://vk.com/topic-210967729_48611502
https://vk.com/topic-210967729_48611506
https://vk.com/topic-210967729_48611510
https://vk.com/topic-210967729_48611513
https://vk.com/topic-210967729_48611515
https://vk.com/topic-210967729_48611516
https://vk.com/topic-210967729_48611519
https://vk.com/topic-210967729_48611524
https://vk.com/topic-210967729_48611526
https://vk.com/topic-210967729_48611528
https://vk.com/topic-210967729_48611531
https://vk.com/topic-210967729_48611534
https://vk.com/topic-210967729_48611537
https://vk.com/topic-210967729_48611539
https://vk.com/topic-210967729_48611543
https://vk.com/topic-210967729_48611544
https://vk.com/topic-210967729_48611546
https://vk.com/topic-210967729_48611548
https://vk.com/topic-210967729_48611551
https://vk.com/topic-210967729_48611555
https://vk.com/topic-210967729_48611560
https://vk.com/topic-210967729_48611563
https://vk.com/topic-210967729_48611566
https://vk.com/topic-210967729_48611572
https://vk.com/topic-210967729_48611576
https://vk.com/topic-210967729_48611581
https://vk.com/topic-210967729_48611584
https://vk.com/topic-210967729_48611589
https://vk.com/topic-210967729_48611593
https://vk.com/topic-210967729_48611597
https://vk.com/topic-210967729_48611601
https://vk.com/topic-210967729_48611606
https://vk.com/topic-210967729_48611607
https://vk.com/topic-210967729_48611609
https://vk.com/topic-210967729_48611612
https://vk.com/topic-210967729_48611613
https://vk.com/topic-210967729_48611615
https://vk.com/@712782889-121680
https://vk.com/@712781708-92152
https://vk.com/@712782082-143929
https://vk.com/@712782483-50714
https://vk.com/@712781332-147895
https://vk.com/@712772904-98459
https://vk.com/@712774205-94077
https://vk.com/@712534118-37887
https://vk.com/@712782889-121681
https://vk.com/@712781708-92153
https://vk.com/@712782082-143930
https://vk.com/@712782483-50715
https://vk.com/@712781332-147896
https://vk.com/@712772904-98474
https://vk.com/@712774205-94079
https://vk.com/@712534118-37888
https://vk.com/@712782889-121682
https://vk.com/@712781708-92155
https://vk.com/@712782082-143931
https://vk.com/@712782483-50716
https://vk.com/@712781332-147897
https://vk.com/@712772904-98508
https://vk.com/@712774205-94080
https://vk.com/@712534118-37889
https://vk.com/@712782889-121683
https://vk.com/@712781708-92156
https://vk.com/@712782082-143932
https://vk.com/@712782483-50717
https://vk.com/@712781332-147901
https://vk.com/@712772904-98547
https://vk.com/@712774205-94081
https://vk.com/@712534118-37890
https://vk.com/@712782889-121684
https://vk.com/@712781708-92157
https://vk.com/@712782082-143934
https://vk.com/@712782483-50718
https://vk.com/@712781332-147902
https://vk.com/@712772904-98574
https://vk.com/@712774205-94082
https://vk.com/@712534118-37891
https://vk.com/@712782889-121685
https://vk.com/@712781708-92158
https://vk.com/@712782082-143937
https://vk.com/@712782483-50719
https://vk.com/@712781332-147903
https://vk.com/@712772904-98575
https://vk.com/@712774205-94083
https://vk.com/@712534118-37892
https://vk.com/@712782889-121686
https://vk.com/@712781708-92159
https://vk.com/@712782082-143938
https://vk.com/@712782483-50720
https://vk.com/@712781332-147904
https://vk.com/@712772904-98576
https://vk.com/@712774205-94084
https://vk.com/@712534118-37894
https://vk.com/@712782889-121687
https://vk.com/@712781708-92160
https://vk.com/@712782082-143939
https://vk.com/@712782483-50722
https://vk.com/@712781332-147905
https://vk.com/@712772904-98577
https://vk.com/@712774205-94085
https://vk.com/@712534118-37895
https://vk.com/@712782889-121688
https://vk.com/@712781708-92161
https://vk.com/@712782082-143940
https://vk.com/@712782483-50723
https://vk.com/@712781332-147907
https://vk.com/@712772904-98579
https://vk.com/@712774205-94086
https://vk.com/@712534118-37896
https://vk.com/@712782889-121689
https://vk.com/@712781708-92162
https://vk.com/@712782082-143941
https://vk.com/@712782483-50724
https://vk.com/@712781332-147908
https://vk.com/@712772904-98580
https://vk.com/@712774205-94087
https://vk.com/@712534118-37897
https://vk.com/@712782889-121690
https://vk.com/@712781708-92163
https://vk.com/@712782082-143943
https://vk.com/@712782483-50725
https://vk.com/@712781332-147910
https://vk.com/@712772904-98582
https://vk.com/@712774205-94088
https://vk.com/@712534118-37898
https://vk.com/@712782889-121691
https://vk.com/@712781708-92164
https://vk.com/@712782082-143948
https://vk.com/@712782483-50726
https://vk.com/@712781332-147911
https://vk.com/@712772904-98587
https://vk.com/@712774205-94089
https://vk.com/@712534118-37899
https://vk.com/@712782889-121692
https://vk.com/@712781708-92165
https://vk.com/@712782082-143949
https://vk.com/@712782483-50727
https://vk.com/@712781332-147915
https://vk.com/@712772904-98625
https://vk.com/@712774205-94090
https://vk.com/@712534118-37900
https://vk.com/@712782889-121693
https://vk.com/@712781708-92166
https://vk.com/@712782082-143950
https://vk.com/@712782483-50728
https://vk.com/@712781332-147916
https://vk.com/@712772904-98657
https://vk.com/@712774205-94091
https://vk.com/@712534118-37901
https://vk.com/@712782889-121694
https://vk.com/@712781708-92167
https://vk.com/@712782082-143951
https://vk.com/@712782483-50729
https://vk.com/@712781332-147917
https://vk.com/@712772904-98688
https://vk.com/@712774205-94092
https://vk.com/@712534118-37903
https://vk.com/@712782889-121696
https://vk.com/@712781708-92168
https://vk.com/@712782082-143952
https://vk.com/@712782483-50730
https://vk.com/@712781332-147918
https://vk.com/@712772904-98689
https://vk.com/@712774205-94093
https://vk.com/@712534118-37904
https://vk.com/@712782889-121697
https://vk.com/@712781708-92169
https://vk.com/@712782082-143953
https://vk.com/@712782483-50731
https://vk.com/@712781332-147919
https://vk.com/@712772904-98690
https://vk.com/@712774205-94094
https://vk.com/@712534118-37905
https://vk.com/@712782889-121698
https://vk.com/@712781708-92170
https://vk.com/@712782082-143954
https://vk.com/@712782483-50732
https://vk.com/@712781332-147920
https://vk.com/@712772904-98731
https://vk.com/@712774205-94095
https://vk.com/@712534118-37906
https://vk.com/@712782889-121699
https://vk.com/@712781708-92171
https://vk.com/@712782082-143958
https://vk.com/@712782483-50734
https://vk.com/@712781332-147921
https://vk.com/@712772904-98732
https://vk.com/@712774205-94096
https://vk.com/@712534118-37908
https://vk.com/@712782889-121700
https://vk.com/@712781708-92173
https://vk.com/@712782082-143959
https://vk.com/@712782483-50735
https://vk.com/@712781332-147922
https://vk.com/@712772904-98733
https://vk.com/@712774205-94097
https://vk.com/@712534118-37909
https://vk.com/@712782889-121701


0 回复 有任何疑惑可以回复我~

貌似这两个warning不影响test的正常执行,看了老师的操作也有这两个warining。先忽略掉吧。

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173076    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

mvn test报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信