<project.mainconf>${project.basedir}/src/main/config</project.mainconf>
+ <locale>en</locale>
+ <site.locales>${locale}</site.locales>
+
+ <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
+ <jacoco-plugin.version>0.8.3</jacoco-plugin.version>
+
<checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.location>
<checkstyle.enable.rss>false</checkstyle.enable.rss>
+ <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
+ <spotbugs.effort>Max</spotbugs.effort>
+ <spotbugs.threshold>Low</spotbugs.threshold>
+ <!-- for Jenkins -->
+ <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
+
</properties>
<dependencyManagement/>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.19.1</version>
+ <version>${surefire-plugin.version}</version>
<configuration>
- <skipTests>false</skipTests>
<enableAssertions>true</enableAssertions>
</configuration>
</plugin>
<plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>default-prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-report</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-check</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <rule implementation="org.jacoco.maven.RuleConfiguration">
+ <element>BUNDLE</element>
+ <limits>
+ <limit implementation="org.jacoco.report.check.Limit">
+ <counter>COMPLEXITY</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>0.0</minimum>
+ </limit>
+ </limits>
+ </rule>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
- <version>3.5.1</version>
+ <version>3.7.1</version>
<configuration>
- <generateReports>true</generateReports>
- <locales>ja</locales>
- <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
- <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
+ <locales>${site.locales}</locales>
</configuration>
</plugin>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>3.0.3</version>
- <configuration>
- <effort>Max</effort>
- <threshold>Low</threshold>
- <!-- for Jenkins -->
- <findbugsXmlOutput>true</findbugsXmlOutput>
- <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
- <xmlOutput>true</xmlOutput>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.7</version>
- <configuration>
- <encoding>${project.build.sourceEncoding}</encoding>
- <formats>
- <format>html</format>
- <format>xml</format> <!-- for Jenkins -->
- </formats>
- </configuration>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <version>${spotbugs-plugin.version}</version>
</plugin>
</plugins>
<exclude>**/version.properties</exclude>
<exclude>**/.DS_Store</exclude>
- <exclude>**/_MACOSX</exclude>
+ <exclude>**/__MACOSX</exclude>
<exclude>**/Thumbs.db</exclude>
<exclude>**/thumbs.db</exclude>
<exclude>**/Desktop.ini</exclude>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.9</version>
+ <version>3.0.0</version>
<configuration>
<linkOnly>true</linkOnly>
<offline>true</offline>
<reports>
<report>index</report>
<report>summary</report>
- <report>license</report>
+ <report>licenses</report>
+ <report>dependency-info</report>
<report>dependencies</report>
+ <report>dependency-convergence</report>
<report>plugins</report>
+ <report>plugin-management</report>
+ <report>team</report>
+ <report>issue-management</report>
<report>scm</report>
- <report>project-team</report>
<!--
- <report>dependency-convergence</report>
- <report>dependency-info</report>
<report>dependency-management</report>
<report>distribution-management</report>
- <report>issue-tracking</report>
- <report>mailing-list</report>
+ <report>ci-management</report>
+ <report>mailing-lists</report>
<report>modules</report>
- <report>plugin-management</report>
-->
</reports>
</reportSet>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.19.1</version>
- <configuration>
- <showSuccess>false</showSuccess>
- </configuration>
+ <version>${surefire-plugin.version}</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco-plugin.version}</version>
<reportSets>
<reportSet>
<reports>
- <report>report-only</report>
+ <report>report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.7</version>
- <configuration>
- <encoding>${project.build.sourceEncoding}</encoding>
- <formats>
- <format>html</format>
- <format>xml</format> <!-- for Jenkins -->
- </formats>
- </configuration>
- </plugin>
-
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.15</version>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>3.0.3</version>
- <configuration>
- <skip>false</skip>
- <effort>Max</effort>
- <threshold>Low</threshold>
- <!-- for Jenkins -->
- <findbugsXmlOutput>true</findbugsXmlOutput>
- <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
- <xmlOutput>true</xmlOutput>
- <!-- excludeFilterFile/ -->
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javancss-maven-plugin</artifactId>
- <version>2.1</version>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jdepend-maven-plugin</artifactId>
- <version>2.0</version>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <version>${spotbugs-plugin.version}</version>
</plugin>
</plugins>