当我尝试编译项目时,我收到了这个错误:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.981 s
[INFO] Finished at: 2019-05-01T14:48:00+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find resource 'findbugs-exclude.xml'. -> [Help 1]
org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not find resource 'findbugs-exclude.xml'.
at org.codehaus.plexus.resource.DefaultResourceManager.getResource (DefaultResourceManager.java:171)
at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsInputStream (DefaultResourceManager.java:67)
at org.codehaus.plexus.resource.ResourceManager$getResourceAsInputStream$1.call (Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall (CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java:125)
at org.codehaus.mojo.findbugs.FindBugsMojo.getResourceAsFile (FindBugsMojo.groovy:1331)
at org.codehaus.mojo.findbugs.FindBugsMojo$getResourceAsFile.callCurrent (Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent (CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:182)
at org.codehaus.mojo.findbugs.FindBugsMojo.getResourceFile (FindBugsMojo.groovy:1225)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke (MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod (ClosureMetaClass.java:384)
at groovy.lang.MetaClassImpl.invokeMethod (MetaClassImpl.java:1022)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent (PogoMetaClassSite.java:69)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent (CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:166)
at org.codehaus.mojo.findbugs.FindBugsMojo$_getFindbugsArgs_closure5.doCall (FindBugsMojo.groovy:889)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke (MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod (ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod (MetaClassImpl.java:1022)
at groovy.lang.Closure.call (Closure.java:414)
at groovy.lang.Closure.call (Closure.java:430)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each (DefaultGroovyMethods.java:2040)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each (DefaultGroovyMethods.java:1895)
at org.codehaus.groovy.runtime.dgm$160.invoke (Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke (PojoMetaMethodSite.java:274)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call (PojoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall (CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java:125)
at org.codehaus.mojo.findbugs.FindBugsMojo.getFindbugsArgs (FindBugsMojo.groovy:887)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke (PogoMetaMethodSite.java:210)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent (PogoMetaMethodSite.java:59)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent (CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:166)
at org.codehaus.mojo.findbugs.FindBugsMojo.executeFindbugs (FindBugsMojo.groovy:1019)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke (PogoMetaMethodSite.java:210)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent (PogoMetaMethodSite.java:59)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent (CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent (AbstractCallSite.java:166)
at org.codehaus.mojo.findbugs.FindBugsMojo.canGenerateReport (FindBugsMojo.groovy:549)
at org.codehaus.mojo.findbugs.FindBugsMojo.execute (FindBugsMojo.groovy:688)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:355)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ResourceNotFoundException
java版本
OpenJDK版本“11.0.2”2019-01-15 OpenJDK运行时环境(build 11.0.2 9-Debian-3)OpenJDK 64位服务器VM(build 11.0.2 9-Debian-3,混合模式,共享)
mvn-版本
Maven home:/usr/share/Maven Java版本:11.0.2,供应商:Oracle Corporation,运行时:/usr/lib/jvm/Java-11-openjdk-amd64默认语言环境:en_US,平台编码:UTF-8操作系统名称:“linux”,版本:“4.19.0-kali3-amd64”,arch:“amd64“,family:“unix”
什么是原因?谢谢
我有FindBugs Maven Plugin版本3.0.5。刚刚在3.0.4上更改了它,错误消失了。
我创造了一个activity,在这个activity里,我有不同的碎片。在一个片段中,我想检查用户是否已登录,如果已登录显示一个布局,如果未登录显示另一个布局。 这是我做的,你能过来看看吗? 这是我得到的错误 E/AndroidRuntime:致命异常:主进程:#########,PID:562 Android.content.res.resourcesimpl.getValue(resource
Java版本 openjdk版本“11.0.2”2019-01-15 openjdk运行时环境(构建11.0.2 9-Debian-3)openjdk 64位服务器虚拟机(构建11.0.2 9-Debian-3,混合模式,共享) mvn-版本Apache Maven 3.6.0 Maven home:/usr/share/Maven Java版本:11.0.2,供应商:Oracle Corpora
我是JTextArea和JScrollPane的新手,每当我编译时,我都会得到这样的错误,Project3.java:95:无法找到符号符号:class Dimension Location:class Project3 Scroll.setPreferredSize(new Dimension(200,400)); 我已经导入,导入java.io;导入javax.swing.;导入java.ut
我的代码是 此代码给出的输出为 以及如何打印所有组的开始和结束索引?
我在我的项目中使用了Java、Wildfly18、Primefaces和JSF,但是我得到了这个警告!有人知道为什么我只在Firefox中使用这个项目时会收到这个警告吗? 任何信息都会有帮助。以下是服务器日志: 17:13:41,238警告[javax.enterprise.resource.webcontainer.jsf.application](默认任务-291)JSF1064:Ressou
这是我的项目结构:我有一个< code>xml文件,我需要在我的< code>junit测试用例中使用它,我不知道为什么我不能得到这个文件。 这是我的方法: 我总是得到相同的错误跟踪: