Java Spotbugs与JDeveloper的集成
我是一名构建工程师,我的开发团队使用JDeveloperIDE开发代码。有没有办法直接在Jdeveloper中集成spotbug并找到bug?对于Jdeveloper 12c,您可以使用默认情况下可用的Maven将spotbug集成到IDE中(您也可以将其设置为11g版本,但默认情况下未集成到IDE中):Java Spotbugs与JDeveloper的集成,java,jdeveloper,findbugs,spotbugs,Java,Jdeveloper,Findbugs,Spotbugs,我是一名构建工程师,我的开发团队使用JDeveloperIDE开发代码。有没有办法直接在Jdeveloper中集成spotbug并找到bug?对于Jdeveloper 12c,您可以使用默认情况下可用的Maven将spotbug集成到IDE中(您也可以将其设置为11g版本,但默认情况下未集成到IDE中): com.github.spotbug 在这两种情况下,您都会在jdeveloper 12c中的“build”菜单中看到新创建的spotbug任务。对于jdeveloper 12c,您可以使
com.github.spotbug
在这两种情况下,您都会在jdeveloper 12c中的“build”菜单中看到新创建的spotbug任务。对于jdeveloper 12c,您可以使用默认情况下可用的Maven将spotbug集成到IDE中(您也可以将其设置为11g版本,但默认情况下未将其集成到IDE中):
com.github.spotbug
在这两种情况下,您都会在jdeveloper内部的“build”菜单中看到新创建的spotbug任务,您需要提供所使用的jdeveloper版本。jdeveloper studio 11.1.1.9.0是我们正在使用的版本。您需要提供所使用的jdeveloper版本。jdeveloper studio 11.1.1.9.0是我们正在使用的版本。Hi Cedric-我们正在使用11g。我们希望在每个开发人员的机器上本地安装它,以便他们在签入repo之前检查代码。我们需要将上面的xml代码精确地放在哪里?如果您还没有使用maven,可以使用ant,只需按照Jdev11g中的说明操作即可。我以前做过,然后你会在IDEHi Cedric中看到spotbug ant任务-我们使用的是11g。我们希望在每个开发人员的机器上本地安装它,以便他们在签入repo之前检查代码。我们需要将上面的xml代码精确地放在哪里?如果您还没有使用maven,可以使用ant,只需按照Jdev11g中的说明操作即可。我以前做过,然后您将在IDE中看到spotbug ant任务
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>3.1.12</version>
<dependencies>
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>4.0.0-beta3</version>
</dependency>
</dependencies>
</plugin>
<property name="spotbugs.home" value="/export/home/daveho/work/spotbugs" />
<target name="spotbugs" depends="jar">
<spotbugs home="${spotbugs.home}"
output="xml"
outputFile="bcel-sb.xml" >
<auxClasspath path="${basedir}/lib/Regex.jar" />
<sourcePath path="${basedir}/src/java" />
<class location="${basedir}/bin/bcel.jar" />
</spotbugs>
</target>