Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1270 EAR projects should not be analyzed in eclipse

3.0.0
closed-wont-fix
None
5
2014-08-15
2014-04-26
No

In FindBugsWorker.java there is a check whether the project is a Java project or not. At present it throws an exception if the project is not a JAR project.

Can it be made such that no exception is thrown and silently ignored?

This is a Maven project and I have already tried to prevent the execution of findbugs in the project.

            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>findbugs-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>findbugs</id>
                            <goals/>
                        </execution>
                    </executions>
                </plugin>
            </plugins>

Discussion

  • Hi Archimedes,

    I can't really understand what do you want. What are "EAR" or "JAR" projects?

    FindBugs can't analyze code if it is not inside valid Java project, so it throws an exception.

    If some tools for some strange reason create Eclipse .project files with findbugs builder but without org.eclipse.jdt.core.javanature nature, it is a tool problem.

    As a user you can simply remove edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder and edu.umd.cs.findbugs.plugin.eclipse.findbugsNature from your .project file.

    Nothing to fix here.
    Fix maven please.

    Regards,
    Andrey

     
    • status: open --> closed-wont-fix
    • assigned_to: Andrey Loskutov
    • Group: 2.0.4 --> 3.0.0