[FB-Discuss] Finbugs Maven Plugin error

View: New views
4 Messages — Rating Filter:   Alert me  

[FB-Discuss] Finbugs Maven Plugin error

by Muthu Velappan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I tried to setup maven findbugs plug-in for my project but it shows the error trace copied below… I also attached my settings.xml file and findbugs reporting configuration in my pom.xml.

 

Please let me know where I’m going wrong.

 

Thanks,

Muthu

 

Reporting configuration in pom.xml

 

        <reporting>

          <plugins>

            <plugin>

                  <groupId>org.codehaus.mojo</groupId>

                  <artifactId>findbugs-maven-plugin</artifactId>

                  <version>2.0</version>

                  <configuration>

                     <xmlOutput>true</xmlOutput>

                     <xmlOutputDirectory>e:\muthu\Projects</xmlOutputDirectory>

                     <effort>Max</effort>

                     <threshold>Medium</threshold>

                  </configuration>

            </plugin>

          </plugins>

        </reporting>

 

Error Trace

url = http://repository.codehaus.org

Downloading: http://repository.codehaus.org/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://maven.restlet.org/

Downloading: http://maven.restlet.org//org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://repo1.maven.org/maven2

Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

[ERROR]

 

Maven encountered an error while loading a plugin for use in your build.

 

Plugin:

Group-Id: org.codehaus.mojo

Artifact-Id: findbugs-maven-plugin

Version: 2.0

Referenced mojo: findbugs

brought in via: null

 

While building project:

Group-Id: com.thinkronize.edudym

Artifact-Id: EduDymServices

Version: 1.0.0-SNAPSHOT

From file: E:\Muthu\Projects\Antares\EduDymServices\pom.xml

 

 

Error message:Failed to load plugin. Reason: Unable to build project for plugin 'org.codehaus.mojo:findbugs-maven-plugin': POM 'org.codehaus.mojo:findbugs-maven-plugin' not found in repository: Unable to download the artifact from any repository

 

  org.codehaus.mojo:findbugs-maven-plugin:pom:2.0

 

from the specified remote repositories:

  findbugs (http://repository.codehaus.org),

  maven-restlet (http://maven.restlet.org/),

  central (http://repo1.maven.org/maven2)

 for project org.codehaus.mojo:findbugs-maven-plugin

Root error message:Unable to download the artifact from any repository

 

 

 

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

[INFO] For more information, run with the -e flag

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

[INFO] BUILD FAILED

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

[INFO] Total time: 4 seconds

[INFO] Finished at: Thu Apr 16 14:00:30 IST 2009

[INFO] Final Memory: 1M/4M

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

 


<settings xmlns="http://maven.apache.org/settings/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/setrings/1.0.0 
          http://maven.apache.org/xsd/settings-1.0.0.xsd">
 
  <servers>
    <server>
    <id>findbugs</id>
    </server>
  </servers>

  <profiles>

    <profile>
      <id>findbugs-profile</id>
      <repositories>
        <repository>
          <id>findbugs</id>
          <url>http://repository.codehaus.org</url>
        </repository>
      </repositories>
    </profile>

  </profiles>

  <activeProfiles>
    <activeProfile>findbugs-profile</activeProfile>
  </activeProfiles>

</settings>

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Parent Message unknown Re: [FB-Discuss] Finbugs Maven Plugin error

by Muthu Velappan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Thanks Garvin. Proxy is the issue, It is resolved now and report generation is working fine…

 

However, now I’m running into another issue. The generated findbugs XML is not getting loaded into Findbugs Swing UI. It’s not a show stopper for me but I would like to know from the group whether this is a known issue for finbugs reports generated through Maven reporting configuration…

 

Part of my Output XML, This is not getting loaded into Swing UI..

 

<?xml version="1.0" encoding="UTF-8"?>

<BugCollection version="1.3.7" threshold="Low" effort="Max" >

<file classname="com.sample.test.DAO.AuthenticationDAO" >

<BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="Normal" category="EXPERIMENTAL" message="OBL: Method com.sample.test.DAO.AuthenticationDAO.authenticateIP(String, Integer, Integer, Connection) may fail to clean up stream or resource of type java.sql.Statement" lineNumber="51" />

<BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="Normal" category="EXPERIMENTAL" message="OBL: Method com.sample.test.DAO.AuthenticationDAO.authenticateIP(String, Integer, Connection) may fail to clean up stream or resource of type java.sql.Statement" lineNumber="90" />

</file>

<file classname="com.sample.test.DAO.BaseDataSourceDAO$1" >

<BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="Low" category="PERFORMANCE" message="SIC: The class com.sample.test.DAO.BaseDataSourceDAO$1 could be refactored into a named _static_ inner class" lineNumber="176" />

</file>

<Errors>

</Errors>

<Project>

<SrcDir>E:\Muthu\Projects\sample\test\src\main\java</SrcDir>

</Project>

</BugCollection>

 

~Muthu


From: Garvin LeClaire [mailto:garvin.leclaire@...]
Sent: Friday, April 17, 2009 10:47 PM
To: muthu velappan
Cc: findbugs-discuss@...
Subject: Re: [FB-Discuss] Finbugs Maven Plugin error

 

I am able to see the repository items for the plugin.   Are you behind a firewall?

Put the following in your browser :

http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

If that works, look at your settings.xml and configure a proxy if your browser is using one.





Regards,
 
 
 
Garvin LeClaire
garvin.leclaire@...
 



muthu velappan wrote:

Hi,

 

I tried to setup maven findbugs plug-in for my project but it shows the error trace copied below… I also attached my settings.xml file and findbugs reporting configuration in my pom.xml.

 

Please let me know where I’m going wrong.

 

Thanks,

Muthu

 

Reporting configuration in pom.xml

 

        <reporting>

          <plugins>

            <plugin>

                  <groupId>org.codehaus.mojo</groupId>

                  <artifactId>findbugs-maven-plugin</artifactId>

                  <version>2.0</version>

                  <configuration>

                     <xmlOutput>true</xmlOutput>

                     <xmlOutputDirectory>e:\muthu\Projects</xmlOutputDirectory>

                     <effort>Max</effort>

                     <threshold>Medium</threshold>

                  </configuration>

            </plugin>

          </plugins>

        </reporting>

 

Error Trace

url = http://repository.codehaus.org

Downloading: http://repository.codehaus.org/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://maven.restlet.org/

Downloading: http://maven.restlet.org//org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://repo1.maven.org/maven2

Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

[ERROR]

 

Maven encountered an error while loading a plugin for use in your build.

 

Plugin:

Group-Id: org.codehaus.mojo

Artifact-Id: findbugs-maven-plugin

Version: 2.0

Referenced mojo: findbugs

brought in via: null

 

While building project:

Group-Id: com.thinkronize.edudym

Artifact-Id: EduDymServices

Version: 1.0.0-SNAPSHOT

From file: E:\Muthu\Projects\Antares\EduDymServices\pom.xml

 

 

Error message:Failed to load plugin. Reason: Unable to build project for plugin 'org.codehaus.mojo:findbugs-maven-plugin': POM 'org.codehaus.mojo:findbugs-maven-plugin' not found in repository: Unable to download the artifact from any repository

 

  org.codehaus.mojo:findbugs-maven-plugin:pom:2.0

 

from the specified remote repositories:

  findbugs (http://repository.codehaus.org),

  maven-restlet (http://maven.restlet.org/),

  central (http://repo1.maven.org/maven2)

 for project org.codehaus.mojo:findbugs-maven-plugin

Root error message:Unable to download the artifact from any repository

 

 

 

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

[INFO] For more information, run with the -e flag

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

[INFO] BUILD FAILED

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

[INFO] Total time: 4 seconds

[INFO] Finished at: Thu Apr 16 14:00:30 IST 2009

[INFO] Final Memory: 1M/4M

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

 

 



 
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
  

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Parent Message unknown Re: [FB-Discuss] Finbugs Maven Plugin error

by Muthu Velappan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Garvin,

 

No, I have findbugs application installed in my system. I launching the GUI from there and loading the generated XML through FileàOpen Menu.

 

Regards,

Muthu


From: Garvin LeClaire [mailto:garvin.leclaire@...]
Sent: Thursday, April 23, 2009 4:33 PM
To: Muthu Velappan
Subject: Re: [FB-Discuss] Finbugs Maven Plugin error

 

Are you running "mvn findbugs:gui"?



Regards,
 
 
 
Garvin LeClaire
garvin.leclaire@...
 



Muthu Velappan wrote:

Thanks Garvin. Proxy is the issue, It is resolved now and report generation is working fine…

 

However, now I’m running into another issue. The generated findbugs XML is not getting loaded into Findbugs Swing UI. It’s not a show stopper for me but I would like to know from the group whether this is a known issue for finbugs reports generated through Maven reporting configuration…

 

Part of my Output XML, This is not getting loaded into Swing UI..

 

<?xml version="1.0" encoding="UTF-8"?>

<BugCollection version="1.3.7" threshold="Low" effort="Max" >

<file classname="com.sample.test.DAO.AuthenticationDAO" >

<BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="Normal" category="EXPERIMENTAL" message="OBL: Method com.sample.test.DAO.AuthenticationDAO.authenticateIP(String, Integer, Integer, Connection) may fail to clean up stream or resource of type java.sql.Statement" lineNumber="51" />

<BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="Normal" category="EXPERIMENTAL" message="OBL: Method com.sample.test.DAO.AuthenticationDAO.authenticateIP(String, Integer, Connection) may fail to clean up stream or resource of type java.sql.Statement" lineNumber="90" />

</file>

<file classname="com.sample.test.DAO.BaseDataSourceDAO$1" >

<BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="Low" category="PERFORMANCE" message="SIC: The class com.sample.test.DAO.BaseDataSourceDAO$1 could be refactored into a named _static_ inner class" lineNumber="176" />

</file>

<Errors>

</Errors>

<Project>

<SrcDir>E:\Muthu\Projects\sample\test\src\main\java</SrcDir>

</Project>

</BugCollection>

 

~Muthu


From: Garvin LeClaire [garvin.leclaire@...]
Sent: Friday, April 17, 2009 10:47 PM
To: muthu velappan
Cc: findbugs-discuss@...
Subject: Re: [FB-Discuss] Finbugs Maven Plugin error

 

I am able to see the repository items for the plugin.   Are you behind a firewall?

Put the following in your browser :

http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

If that works, look at your settings.xml and configure a proxy if your browser is using one.






Regards,
 
 
 
Garvin LeClaire
garvin.leclaire@...
 



muthu velappan wrote:

Hi,

 

I tried to setup maven findbugs plug-in for my project but it shows the error trace copied below… I also attached my settings.xml file and findbugs reporting configuration in my pom.xml.

 

Please let me know where I’m going wrong.

 

Thanks,

Muthu

 

Reporting configuration in pom.xml

 

        <reporting>

          <plugins>

            <plugin>

                  <groupId>org.codehaus.mojo</groupId>

                  <artifactId>findbugs-maven-plugin</artifactId>

                  <version>2.0</version>

                  <configuration>

                     <xmlOutput>true</xmlOutput>

                     <xmlOutputDirectory>e:\muthu\Projects</xmlOutputDirectory>

                     <effort>Max</effort>

                     <threshold>Medium</threshold>

                  </configuration>

            </plugin>

          </plugins>

        </reporting>

 

Error Trace

url = http://repository.codehaus.org

Downloading: http://repository.codehaus.org/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://maven.restlet.org/

Downloading: http://maven.restlet.org//org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://repo1.maven.org/maven2

Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

[ERROR]

 

Maven encountered an error while loading a plugin for use in your build.

 

Plugin:

Group-Id: org.codehaus.mojo

Artifact-Id: findbugs-maven-plugin

Version: 2.0

Referenced mojo: findbugs

brought in via: null

 

While building project:

Group-Id: com.thinkronize.edudym

Artifact-Id: EduDymServices

Version: 1.0.0-SNAPSHOT

From file: E:\Muthu\Projects\Antares\EduDymServices\pom.xml

 

 

Error message:Failed to load plugin. Reason: Unable to build project for plugin 'org.codehaus.mojo:findbugs-maven-plugin': POM 'org.codehaus.mojo:findbugs-maven-plugin' not found in repository: Unable to download the artifact from any repository

 

  org.codehaus.mojo:findbugs-maven-plugin:pom:2.0

 

from the specified remote repositories:

  findbugs (http://repository.codehaus.org),

  maven-restlet (http://maven.restlet.org/),

  central (http://repo1.maven.org/maven2)

 for project org.codehaus.mojo:findbugs-maven-plugin

Root error message:Unable to download the artifact from any repository

 

 

 

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

[INFO] For more information, run with the -e flag

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

[INFO] BUILD FAILED

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

[INFO] Total time: 4 seconds

[INFO] Finished at: Thu Apr 16 14:00:30 IST 2009

[INFO] Final Memory: 1M/4M

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

 

 
 
 



 
 
 
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
  

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Parent Message unknown Re: [FB-Discuss] Finbugs Maven Plugin error

by Muthu Velappan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Yes Garvin. That’s a stupid mistake from my end. I should have read the page properly once before posting the question.

 

Thanks for your update, everything works fine now.

 

~Muthu

 


From: Garvin LeClaire [mailto:garvin.leclaire@...]
Sent: Monday, April 27, 2009 4:44 AM
To: Muthu Velappan
Cc: findbugs-discuss@...
Subject: Re: [FB-Discuss] Finbugs Maven Plugin error

 

It looks like you are trying to load the xdoc version of the bug report.    Try setting your configuration like:

<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.0.1</version>
        <configuration>
          <findbugsXmlOutput>true</findbugsXmlOutput>
          <!-- Optional directory to put findbugs xml report -->
          <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  ...
</project>


More info at http://mojo.codehaus.org/findbugs-maven-plugin/usage.html





Regards,
 
 
 
Garvin LeClaire
garvin.leclaire@...
 



Muthu Velappan wrote:

Garvin,

 

No, I have findbugs application installed in my system. I launching the GUI from there and loading the generated XML through FileàOpen Menu.

 

Regards,

Muthu


From: Garvin LeClaire [mailto:garvin.leclaire@...]
Sent: Thursday, April 23, 2009 4:33 PM
To: Muthu Velappan
Subject: Re: [FB-Discuss] Finbugs Maven Plugin error

 

Are you running "mvn findbugs:gui"?




Regards,
 
 
 
Garvin LeClaire
garvin.leclaire@...
 



Muthu Velappan wrote:

Thanks Garvin. Proxy is the issue, It is resolved now and report generation is working fine…

 

However, now I’m running into another issue. The generated findbugs XML is not getting loaded into Findbugs Swing UI. It’s not a show stopper for me but I would like to know from the group whether this is a known issue for finbugs reports generated through Maven reporting configuration…

 

Part of my Output XML, This is not getting loaded into Swing UI..

 

<?xml version="1.0" encoding="UTF-8"?>

<BugCollection version="1.3.7" threshold="Low" effort="Max" >

<file classname="com.sample.test.DAO.AuthenticationDAO" >

<BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="Normal" category="EXPERIMENTAL" message="OBL: Method com.sample.test.DAO.AuthenticationDAO.authenticateIP(String, Integer, Integer, Connection) may fail to clean up stream or resource of type java.sql.Statement" lineNumber="51" />

<BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="Normal" category="EXPERIMENTAL" message="OBL: Method com.sample.test.DAO.AuthenticationDAO.authenticateIP(String, Integer, Connection) may fail to clean up stream or resource of type java.sql.Statement" lineNumber="90" />

</file>

<file classname="com.sample.test.DAO.BaseDataSourceDAO$1" >

<BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="Low" category="PERFORMANCE" message="SIC: The class com.sample.test.DAO.BaseDataSourceDAO$1 could be refactored into a named _static_ inner class" lineNumber="176" />

</file>

<Errors>

</Errors>

<Project>

<SrcDir>E:\Muthu\Projects\sample\test\src\main\java</SrcDir>

</Project>

</BugCollection>

 

~Muthu


From: Garvin LeClaire [garvin.leclaire@...]
Sent: Friday, April 17, 2009 10:47 PM
To: muthu velappan
Cc: findbugs-discuss@...
Subject: Re: [FB-Discuss] Finbugs Maven Plugin error

 

I am able to see the repository items for the plugin.   Are you behind a firewall?

Put the following in your browser :

http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

If that works, look at your settings.xml and configure a proxy if your browser is using one.







Regards,
 
 
 
Garvin LeClaire
garvin.leclaire@...
 



muthu velappan wrote:

Hi,

 

I tried to setup maven findbugs plug-in for my project but it shows the error trace copied below… I also attached my settings.xml file and findbugs reporting configuration in my pom.xml.

 

Please let me know where I’m going wrong.

 

Thanks,

Muthu

 

Reporting configuration in pom.xml

 

        <reporting>

          <plugins>

            <plugin>

                  <groupId>org.codehaus.mojo</groupId>

                  <artifactId>findbugs-maven-plugin</artifactId>

                  <version>2.0</version>

                  <configuration>

                     <xmlOutput>true</xmlOutput>

                     <xmlOutputDirectory>e:\muthu\Projects</xmlOutputDirectory>

                     <effort>Max</effort>

                     <threshold>Medium</threshold>

                  </configuration>

            </plugin>

          </plugins>

        </reporting>

 

Error Trace

url = http://repository.codehaus.org

Downloading: http://repository.codehaus.org/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://maven.restlet.org/

Downloading: http://maven.restlet.org//org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

url = http://repo1.maven.org/maven2

Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.0/findbugs-maven-plugin-2.0.pom

[ERROR]

 

Maven encountered an error while loading a plugin for use in your build.

 

Plugin:

Group-Id: org.codehaus.mojo

Artifact-Id: findbugs-maven-plugin

Version: 2.0

Referenced mojo: findbugs

brought in via: null

 

While building project:

Group-Id: com.thinkronize.edudym

Artifact-Id: EduDymServices

Version: 1.0.0-SNAPSHOT

From file: E:\Muthu\Projects\Antares\EduDymServices\pom.xml

 

 

Error message:Failed to load plugin. Reason: Unable to build project for plugin 'org.codehaus.mojo:findbugs-maven-plugin': POM 'org.codehaus.mojo:findbugs-maven-plugin' not found in repository: Unable to download the artifact from any repository

 

  org.codehaus.mojo:findbugs-maven-plugin:pom:2.0

 

from the specified remote repositories:

  findbugs (http://repository.codehaus.org),

  maven-restlet (http://maven.restlet.org/),

  central (http://repo1.maven.org/maven2)

 for project org.codehaus.mojo:findbugs-maven-plugin

Root error message:Unable to download the artifact from any repository

 

 

 

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

[INFO] For more information, run with the -e flag

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

[INFO] BUILD FAILED

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

[INFO] Total time: 4 seconds

[INFO] Finished at: Thu Apr 16 14:00:30 IST 2009

[INFO] Final Memory: 1M/4M

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

 

 
 
 
 
 
 
 



 
 
 
 
 
 
 
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
  

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss