|
|
-
FindBugs-related build error
Mikhail Bautin 2012-06-21, 02:16
Hello,
Has anyone seen the following error building HBase trunk? I must admit I haven't built the official trunk for a while, certainly not after the split into hbase-common and hbase-server happened.
> mvn -DskipTest package [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] HBase [INFO] HBase - Common [INFO] HBase - Server [INFO] ------------------------------------------------------------------------ [INFO] Building HBase [INFO] task-segment: [package] [INFO] ------------------------------------------------------------------------ [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given [INFO] [findbugs:findbugs {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] ------------------------------------------------------------------------ [INFO] Building HBase - Common [INFO] task-segment: [package] [INFO] ------------------------------------------------------------------------ [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/mbautin/workdirs/hbase-apache/hbase-common/src/main/resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given [INFO] [findbugs:findbugs {execution: default}] [INFO] Fork Value is true [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Could not find resource '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not find resource '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsInputStream(DefaultResourceManager.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:738) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:726) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) at org.codehaus.mojo.findbugs.FindBugsMojo.getResourceAsFile(FindBugsMojo.groovy:1178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78) at org.codehaus.mojo.findbugs.FindBugsMojo.getResourceFile(FindBugsMojo.groovy:1093) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:338) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78) at org.codehaus.mojo.findbugs.FindBugsMojo$_executeFindbugs_closure4_closure14.doCall(FindBugsMojo.groovy:852) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:249) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) at groovy.lang.Closure.call(Closure.java:292) at groovy.lang.Closure.call(Closure.java:305) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1068) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1045) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.refle
-
Re: FindBugs-related build error
Ted Yu 2012-06-21, 02:32
~/trunk$ find . -name findbugs-exclude.xml ./dev-support/findbugs-exclude.xml
What version of maven are you using ? I use the following and didn't see the following error:
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
On Wed, Jun 20, 2012 at 7:16 PM, Mikhail Bautin < [EMAIL PROTECTED]> wrote:
> Hello, > > Has anyone seen the following error building HBase trunk? I must admit I > haven't built the official trunk for a while, certainly not after the split > into hbase-common and hbase-server happened. > > > mvn -DskipTest package > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] HBase > [INFO] HBase - Common > [INFO] HBase - Server > [INFO] > ------------------------------------------------------------------------ > [INFO] Building HBase > [INFO] task-segment: [package] > [INFO] > ------------------------------------------------------------------------ > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] [remote-resources:process {execution: default}] > [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given > [INFO] [findbugs:findbugs {execution: default}] > [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building HBase - Common > [INFO] task-segment: [package] > [INFO] > ------------------------------------------------------------------------ > [INFO] [remote-resources:process {execution: default}] > [INFO] [resources:resources {execution: default-resources}] > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] skip non existing resourceDirectory > /Users/mbautin/workdirs/hbase-apache/hbase-common/src/main/resources > [INFO] Copying 3 resources > [INFO] [compiler:compile {execution: default-compile}] > [INFO] Nothing to compile - all classes are up to date > [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given > [INFO] [findbugs:findbugs {execution: default}] > [INFO] Fork Value is true > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Could not find resource > > '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not > find resource > > '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. > at > > org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsInputStream(DefaultResourceManager.java:91) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) > at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) > at > > org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:738) > at > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:726) > at > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) > at > > org.codehaus.mojo.findbugs.FindBugsMojo.getResourceAsFile(FindBugsMojo.groovy:1178) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-
Re: FindBugs-related build error
Ted Yu 2012-06-21, 02:47
I don't see the following in your output w.r.t. findbugs-maven-plugin:
[INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ hbase ---
Strange.
On Wed, Jun 20, 2012 at 7:32 PM, Ted Yu <[EMAIL PROTECTED]> wrote:
> ~/trunk$ find . -name findbugs-exclude.xml > ./dev-support/findbugs-exclude.xml > > What version of maven are you using ? > I use the following and didn't see the following error: > > Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800) > > > On Wed, Jun 20, 2012 at 7:16 PM, Mikhail Bautin < > [EMAIL PROTECTED]> wrote: > >> Hello, >> >> Has anyone seen the following error building HBase trunk? I must admit I >> haven't built the official trunk for a while, certainly not after the >> split >> into hbase-common and hbase-server happened. >> >> > mvn -DskipTest package >> [INFO] Scanning for projects... >> [INFO] Reactor build order: >> [INFO] HBase >> [INFO] HBase - Common >> [INFO] HBase - Server >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building HBase >> [INFO] task-segment: [package] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Setting property: classpath.resource.loader.class => >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. >> [INFO] Setting property: velocimacro.messages.on => 'false'. >> [INFO] Setting property: resource.loader => 'classpath'. >> [INFO] Setting property: resource.manager.logwhenfound => 'false'. >> [INFO] [remote-resources:process {execution: default}] >> [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given >> [INFO] [findbugs:findbugs {execution: default}] >> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building HBase - Common >> [INFO] task-segment: [package] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] [remote-resources:process {execution: default}] >> [INFO] [resources:resources {execution: default-resources}] >> [INFO] Using 'UTF-8' encoding to copy filtered resources. >> [INFO] skip non existing resourceDirectory >> /Users/mbautin/workdirs/hbase-apache/hbase-common/src/main/resources >> [INFO] Copying 3 resources >> [INFO] [compiler:compile {execution: default-compile}] >> [INFO] Nothing to compile - all classes are up to date >> [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given >> [INFO] [findbugs:findbugs {execution: default}] >> [INFO] Fork Value is true >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] FATAL ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Could not find resource >> >> '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Trace >> org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not >> find resource >> >> '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. >> at >> >> org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsInputStream(DefaultResourceManager.java:91) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) >> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) >> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) >> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) >> at >> >> org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:738)
-
Re: FindBugs-related build error
Matt Corgan 2012-06-21, 05:28
I noticed you are missing the "s" on -DskipTests (mvn -DskipTest package), but that's probably unrelated. On Wed, Jun 20, 2012 at 7:47 PM, Ted Yu <[EMAIL PROTECTED]> wrote:
> I don't see the following in your output w.r.t. findbugs-maven-plugin: > > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] > [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ hbase --- > > Strange. > > On Wed, Jun 20, 2012 at 7:32 PM, Ted Yu <[EMAIL PROTECTED]> wrote: > > > ~/trunk$ find . -name findbugs-exclude.xml > > ./dev-support/findbugs-exclude.xml > > > > What version of maven are you using ? > > I use the following and didn't see the following error: > > > > Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800) > > > > > > On Wed, Jun 20, 2012 at 7:16 PM, Mikhail Bautin < > > [EMAIL PROTECTED]> wrote: > > > >> Hello, > >> > >> Has anyone seen the following error building HBase trunk? I must admit I > >> haven't built the official trunk for a while, certainly not after the > >> split > >> into hbase-common and hbase-server happened. > >> > >> > mvn -DskipTest package > >> [INFO] Scanning for projects... > >> [INFO] Reactor build order: > >> [INFO] HBase > >> [INFO] HBase - Common > >> [INFO] HBase - Server > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Building HBase > >> [INFO] task-segment: [package] > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Setting property: classpath.resource.loader.class => > >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > >> [INFO] Setting property: velocimacro.messages.on => 'false'. > >> [INFO] Setting property: resource.loader => 'classpath'. > >> [INFO] Setting property: resource.manager.logwhenfound => 'false'. > >> [INFO] [remote-resources:process {execution: default}] > >> [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given > >> [INFO] [findbugs:findbugs {execution: default}] > >> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Building HBase - Common > >> [INFO] task-segment: [package] > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] [remote-resources:process {execution: default}] > >> [INFO] [resources:resources {execution: default-resources}] > >> [INFO] Using 'UTF-8' encoding to copy filtered resources. > >> [INFO] skip non existing resourceDirectory > >> /Users/mbautin/workdirs/hbase-apache/hbase-common/src/main/resources > >> [INFO] Copying 3 resources > >> [INFO] [compiler:compile {execution: default-compile}] > >> [INFO] Nothing to compile - all classes are up to date > >> [WARNING] DEPRECATED [findbugsXmlOutput]: No reason given > >> [INFO] [findbugs:findbugs {execution: default}] > >> [INFO] Fork Value is true > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] FATAL ERROR > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Could not find resource > >> > >> > '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Trace > >> org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not > >> find resource > >> > >> > '/Users/mbautin/workdirs/hbase-apache/hbase-common/dev-support/findbugs-exclude.xml'. > >> at > >> > >> > org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsInputStream(DefaultResourceManager.java:91) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > >> at > >> > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|
|