问题:

There are test failures.
Please refer to D:\Projects\java_basic\app-jna-sdk\target\surefire-reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

原因

测试方法存在问题,打包时需要设置跳过测试忽略问题,直接打包(不影响jar包的部署使用)。

解决方法:

在父pom中添加

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<testFailureIgnore>true</testFailureIgnore>
				</configuration>
			</plugin>
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐