Skip to content

Commit 2a84838

Browse files
author
Matthias Fuchs
committed
added spotbugs (disabled for now)
1 parent 5e97591 commit 2a84838

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,29 @@
9191
<url>https://github.com/shannah/Java-Objective-C-Bridge</url>
9292
</scm>
9393

94+
<repositories>
95+
<repository>
96+
<id>mvnrepository</id>
97+
<name>mvnrepository</name>
98+
<url>https://www.mvnrepository.com</url>
99+
<snapshots>
100+
<enabled>false</enabled>
101+
</snapshots>
102+
</repository>
103+
</repositories>
104+
105+
<pluginRepositories>
106+
<!-- eclipse lifecycle plugin is only available here -->
107+
<pluginRepository>
108+
<id>mvnrepository</id>
109+
<name>mvnrepository</name>
110+
<url>https://www.mvnrepository.com</url>
111+
<snapshots>
112+
<enabled>false</enabled>
113+
</snapshots>
114+
</pluginRepository>
115+
</pluginRepositories>
116+
94117
<distributionManagement>
95118
<snapshotRepository>
96119
<id>ossrh</id>
@@ -183,6 +206,35 @@
183206
</configuration>
184207
</plugin>
185208

209+
<!-- CODE ANALYSIS -->
210+
<plugin>
211+
<groupId>com.github.spotbugs</groupId>
212+
<artifactId>spotbugs-maven-plugin</artifactId>
213+
<version>3.1.12.2</version>
214+
<configuration>
215+
<effort>more</effort>
216+
<jvmArgs>--add-opens java.base/java.lang=ALL-UNNAMED
217+
--illegal-access=deny</jvmArgs>
218+
</configuration>
219+
<dependencies>
220+
<dependency>
221+
<groupId>com.github.spotbugs</groupId>
222+
<artifactId>spotbugs</artifactId>
223+
<version>4.0.0-beta4</version>
224+
</dependency>
225+
</dependencies>
226+
<executions>
227+
<!-- Ensures that spotbugs inspects source code when project is deployed. -->
228+
<!-- <execution> -->
229+
<!-- <id>analyze-deploy</id> -->
230+
<!-- <phase>deploy</phase> -->
231+
<!-- <goals> -->
232+
<!-- <goal>check</goal> -->
233+
<!-- </goals> -->
234+
<!-- </execution> -->
235+
</executions>
236+
</plugin>
237+
186238
<!-- deployment -->
187239
<plugin>
188240
<groupId>org.sonatype.plugins</groupId>

0 commit comments

Comments
 (0)