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

这篇具有很好参考价值的文章主要介绍了Failed to execute goal org.apache.maven.plugins:maven-resources-plugin。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1.Failed to execute goal org.apache.maven.plugins:maven-resources-plugin
原因是 maven启动器版本高了

2.Internal Error occurred.
org.junit.platform.commons.JUnitException: TestEngine with ID ‘junit-jupiter’ failed to discover tests
at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discoverEngineRoot(EngineDiscoveryOrchestrator.java:160)
at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discoverSafely(EngineDiscoveryOrchestrator.java:134)
at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discover(EngineDiscoveryOrchestrator.java:108)
at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discover(EngineDiscoveryOrchestrator.java:80)
at org.junit.platform.launcher.core.DefaultLauncher.discover(DefaultLauncher.java:110)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
at org.junit.platform.launcher.core.DefaultLauncherSession D e l e g a t i n g L a u n c h e r . e x e c u t e ( D e f a u l t L a u n c h e r S e s s i o n . j a v a : 86 ) a t o r g . j u n i t . p l a t f o r m . l a u n c h e r . c o r e . S e s s i o n P e r R e q u e s t L a u n c h e r . e x e c u t e ( S e s s i o n P e r R e q u e s t L a u n c h e r . j a v a : 53 ) a t c o m . i n t e l l i j . j u n i t 5. J U n i t 5 I d e a T e s t R u n n e r . s t a r t R u n n e r W i t h A r g s ( J U n i t 5 I d e a T e s t R u n n e r . j a v a : 69 ) a t c o m . i n t e l l i j . r t . j u n i t . I d e a T e s t R u n n e r DelegatingLauncher.execute(DefaultLauncherSession.java:86) at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.junit.IdeaTestRunner DelegatingLauncher.execute(DefaultLauncherSession.java:86)atorg.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)atcom.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)atcom.intellij.rt.junit.IdeaTestRunnerRepeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
Caused by: org.junit.platform.commons.JUnitException: MethodSelector [className = ‘com.example.DemoApplicationTests’, methodName = ‘contextLoads’, methodParameterTypes = ‘’] resolution failed
at org.junit.platform.launcher.listeners.discovery.AbortOnFailureLauncherDiscoveryListener.selectorProcessed(AbortOnFailureLauncherDiscoveryListener.java:39)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolveCompletely(EngineDiscoveryRequestResolution.java:102)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.run(EngineDiscoveryRequestResolution.java:82)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.resolve(EngineDiscoveryRequestResolver.java:113)
at org.junit.jupiter.engine.discovery.DiscoverySelectorResolver.resolveSelectors(DiscoverySelectorResolver.java:46)
at org.junit.jupiter.engine.JupiterTestEngine.discover(JupiterTestEngine.java:69)
at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discoverEngineRoot(EngineDiscoveryOrchestrator.java:152)
… 11 more
Caused by: org.junit.platform.commons.PreconditionViolationException: Could not load class with name: com.example.DemoApplicationTests
at org.junit.platform.engine.discovery.MethodSelector.lambda$lazyLoadJavaClass 0 ( M e t h o d S e l e c t o r . j a v a : 157 ) a t o r g . j u n i t . p l a t f o r m . c o m m o n s . f u n c t i o n . T r y 0(MethodSelector.java:157) at org.junit.platform.commons.function.Try 0(MethodSelector.java:157)atorg.junit.platform.commons.function.TryFailure.getOrThrow(Try.java:335)
at org.junit.platform.engine.discovery.MethodSelector.lazyLoadJavaClass(MethodSelector.java:156)
at org.junit.platform.engine.discovery.MethodSelector.getJavaClass(MethodSelector.java:135)
at org.junit.jupiter.engine.discovery.MethodSelectorResolver.resolve(MethodSelectorResolver.java:73)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.lambda$resolve$2(EngineDiscoveryRequestResolution.java:146)
at java.util.stream.ReferencePipeline$3 1. a c c e p t ( R e f e r e n c e P i p e l i n e . j a v a : 193 ) a t j a v a . u t i l . A r r a y L i s t 1.accept(ReferencePipeline.java:193) at java.util.ArrayList 1.accept(ReferencePipeline.java:193)atjava.util.ArrayListArrayListSpliterator.tryAdvance(ArrayList.java:1359)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.FindOps F i n d O p . e v a l u a t e S e q u e n t i a l ( F i n d O p s . j a v a : 152 ) a t j a v a . u t i l . s t r e a m . A b s t r a c t P i p e l i n e . e v a l u a t e ( A b s t r a c t P i p e l i n e . j a v a : 234 ) a t j a v a . u t i l . s t r e a m . R e f e r e n c e P i p e l i n e . f i n d F i r s t ( R e f e r e n c e P i p e l i n e . j a v a : 464 ) a t o r g . j u n i t . p l a t f o r m . e n g i n e . s u p p o r t . d i s c o v e r y . E n g i n e D i s c o v e r y R e q u e s t R e s o l u t i o n . r e s o l v e ( E n g i n e D i s c o v e r y R e q u e s t R e s o l u t i o n . j a v a : 185 ) a t o r g . j u n i t . p l a t f o r m . e n g i n e . s u p p o r t . d i s c o v e r y . E n g i n e D i s c o v e r y R e q u e s t R e s o l u t i o n . r e s o l v e ( E n g i n e D i s c o v e r y R e q u e s t R e s o l u t i o n . j a v a : 125 ) a t o r g . j u n i t . p l a t f o r m . e n g i n e . s u p p o r t . d i s c o v e r y . E n g i n e D i s c o v e r y R e q u e s t R e s o l u t i o n . r e s o l v e C o m p l e t e l y ( E n g i n e D i s c o v e r y R e q u e s t R e s o l u t i o n . j a v a : 91 ) . . . 16 m o r e C a u s e d b y : j a v a . l a n g . C l a s s N o t F o u n d E x c e p t i o n : c o m . e x a m p l e . D e m o A p p l i c a t i o n T e s t s a t j a v a . n e t . U R L C l a s s L o a d e r . f i n d C l a s s ( U R L C l a s s L o a d e r . j a v a : 382 ) a t j a v a . l a n g . C l a s s L o a d e r . l o a d C l a s s ( C l a s s L o a d e r . j a v a : 424 ) a t s u n . m i s c . L a u n c h e r FindOp.evaluateSequential(FindOps.java:152) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464) at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolve(EngineDiscoveryRequestResolution.java:185) at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolve(EngineDiscoveryRequestResolution.java:125) at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolveCompletely(EngineDiscoveryRequestResolution.java:91) ... 16 more Caused by: java.lang.ClassNotFoundException: com.example.DemoApplicationTests at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher FindOp.evaluateSequential(FindOps.java:152)atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)atjava.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)atorg.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolve(EngineDiscoveryRequestResolution.java:185)atorg.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolve(EngineDiscoveryRequestResolution.java:125)atorg.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolveCompletely(EngineDiscoveryRequestResolution.java:91)...16moreCausedby:java.lang.ClassNotFoundException:com.example.DemoApplicationTestsatjava.net.URLClassLoader.findClass(URLClassLoader.java:382)atjava.lang.ClassLoader.loadClass(ClassLoader.java:424)atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.junit.platform.commons.util.ReflectionUtils.lambda$tryToLoadClass 9 ( R e f l e c t i o n U t i l s . j a v a : 829 ) a t o r g . j u n i t . p l a t f o r m . c o m m o n s . f u n c t i o n . T r y . l a m b d a 9(ReflectionUtils.java:829) at org.junit.platform.commons.function.Try.lambda 9(ReflectionUtils.java:829)atorg.junit.platform.commons.function.Try.lambdacall$0(Try.java:57)
at org.junit.platform.commons.function.Try.of(Try.java:93)
at org.junit.platform.commons.function.Try.call(Try.java:57)
at org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass(ReflectionUtils.java:792)
at org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass(ReflectionUtils.java:748)
… 32 more

Process finished with exit code -2

[error] failed to execute goal org.apache.maven.plugins:maven-resources-plug,spring-boot,maven,java,intellij-idea
都是因为maven启动器版本高了

出自https://zhuanlan.zhihu.com/p/465828482文章来源地址https://www.toymoban.com/news/detail-780707.html

到了这里,关于Failed to execute goal org.apache.maven.plugins:maven-resources-plugin的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包