Jovsonz 変更履歴
-X.XXX.X (20XX-XX-XX)
+1.101.104 (2019-05-03)
・Maven3対応。
- ・JDK1.7が必須となる。
- ・OSDN.JP 対応。
+ ・JDK1.8が必須となる。
+ ・SourceForge.JP → OSDN.JP → OSDN.net 対応。
+ ・Mercurial(1.101.3-SNAPSHOT)からGit(1.101.103-SNAPSHOT)へSCMを移行。
1.101.2 (2011-05-13)
・初回リリース。
=== 実行環境 ===
- - JovsonzはJava言語(JavaSE7)で記述されたプログラムです。
- - JovsonzはJRE1.7に準拠したJava実行環境で利用できるように作られています。
- 原則として、JRE1.7に準拠した実行系であれば、プラットフォームを選びません。
+ - JovsonzはJava言語(JavaSE8)で記述されたプログラムです。
+ - JovsonzはJavaSE8に準拠したJava実行環境で利用できるように作られています。
+ 原則として、JavaSE8に準拠した実行系であれば、プラットフォームを選びません。
=== 開発プロジェクト運営元 ===
- https://osdn.jp/projects/jovsonz/ まで。
+ https://osdn.net/projects/jovsonz/ まで。
=== ディレクトリ内訳構成 ===
./LICENSE.txt
ライセンスに関して。
-./SCM.txt
- ソースコード管理に関して。
-
./pom.xml
Maven3用プロジェクト構成定義ファイル。
./src/test/java/
JUnit 4.* 用のユニットテストコード。
-./src/main/config/
+./config/
各種ビルド・構成管理に必要なファイル群。
-./src/main/config/checks.xml
+./config/checkstyle/checkstyle.xml
Checkstyle用configファイル。
-./src/main/config/pmdrules.xml
+./config/pmd/pmdrules.xml
PMD用ルール定義ファイル。
+++ /dev/null
-[UTF-8 Japanese]
-
- J o v s o n z
- バージョン管理システムに関する情報
-
- Copyright(c) 2011 olyutorskii
-
-
-=== バージョン管理体制 ===
-
- このアーカイブの原本は、Mercurial(hg)でバージョン管理されています。
- このアーカイブの原本となる開発資産は、
- https://osdn.jp/projects/jovsonz/scm/hg/Jovsonz/
- を上位に持つMercurialリポジトリで管理されています。
- アーカイブの代わりにMercurialを通じての開発資産へのアクセスが可能です。
- # hg clone http://hg.osdn.jp/view/jovsonz/Jovsonz
-
-
-=== 各種設定ファイル ===
-
-./.hgignore
-
-Mercurial 管理の対象外にさせたいファイル群の設定です。
-IDE独自の設定ファイルは基本的に管理対象外とするつもりです。
-
-
-./.hgeol
-
-Mercurial の EOL Extension 用の設定です。
-非バイナリなテキストファイルの改行コードに関する設定です。
-・拡張子が *.txt なローカルファイルの改行文字はローカルの環境に合わせる。
-・拡張子が *.java なローカルファイルの改行文字はローカルの環境に合わせる。
-・それ以外の非バイナリなローカルファイルの改行文字は基本LFで統一。
-・リポジトリ上の全ての非バイナリファイルの改行文字は基本LFで統一。
-というポリシーで運用しています。
-EOL Extensionを有効にしないと設定が反映されません。
-
-
-=== リンク ===
-
-・https://www.mercurial-scm.org/
-・https://www.mercurial-scm.org/wiki/.hgignore
-・https://www.selenic.com/mercurial/hgignore.5.html
-・https://www.mercurial-scm.org/wiki/EolExtension
-・http://tortoisehg.bitbucket.org/
-
-
---- EOF ---
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE suppressions PUBLIC
- "-//Puppy Crawl//DTD Suppressions 1.1//EN"
- "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
+ "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
+ "https://checkstyle.org/dtds/suppressions_1_2.dtd">
<!--
- Checkstyle用警告抑止設定
- ※ SuppressionFilter モジュール用
+ Checkstyle suppressions
+ for Checkstyle 8.18 or later
- [ http://checkstyle.sourceforge.net/ ]
+ [ https://checkstyle.org/ ]
Copyright(c) 2010 olyutorskii
-->
<suppressions>
+ <!-- Annotations -->
+ <suppress files="" checks="AnnotationOnSameLine" />
+
<!-- Class Design -->
<suppress files="" checks="DesignForExtension" />
<suppress files="" checks="ExplicitInitialization" />
<suppress files="" checks="FinalLocalVariable" />
<suppress files="" checks="MagicNumber" />
+ <suppress files="" checks="OneStatementPerLine" />
<!-- Imports -->
<suppress files="" checks="ImportControl" />
<!-- Javadoc Comments -->
+ <suppress files="" checks="JavadocTagContinuationIndentation" />
<suppress files="" checks="SummaryJavadocCheck" />
- <!-- 句読点対応待ち -->
- <suppress files="" checks="SingleLineJavadoc" />
- <!-- ignoredTagsプロパティ対応待ち -->
<!-- Miscellaneous -->
<suppress files="" checks="FinalParameters" />
<suppress files="" checks="TrailingComment" />
+ <!-- Modifiers -->
+ <suppress files="" checks="InterfaceMemberImpliedModifier" />
+
+ <!-- Whitespace -->
+ <suppress files="" checks="SingleSpaceSeparator" />
+
</suppressions>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
+ "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+ "https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
- Checkstyle用チェック項目定義。
+ Checkstyle modules
+ for Checkstyle 8.18 or later
- Checkstyle 6.1 以降向けに記述。
-
- [ http://checkstyle.sourceforge.net/ ]
+ [ https://checkstyle.org/ ]
Copyright(c) 2010 olyutorskii
-->
<property name="charset" value="UTF-8" />
<property name="localeCountry" value="JP" />
- <property name="localeLanguage" value="ja" />
+ <property name="localeLanguage" value="en" />
+ <!--property name="localeLanguage" value="ja" /-->
+ <property name="fileExtensions" value="java, xml, properties" />
<property name="severity" value="error" />
<!-- Filters -->
<module name="SeverityMatchFilter" />
- <module name="SuppressionCommentFilter" />
- <module name="SuppressionFilter">
- <property name="file" value="src/main/config/suppressions.xml" />
- </module>
+ <!--module name="SuppressionFilter" /-->
<module name="SuppressWarningsFilter" />
- <module name="SuppressWithNearbyCommentFilter" />
+ <module name="SuppressWithPlainTextCommentFilter" />
<!-- Headers -->
+ <module name="Header">
+ <property name="header" value="<?xml version="1.0" encoding="UTF-8" ?>" />
+ <property name="fileExtensions" value="xml" />
+ </module>
<module name="RegexpHeader">
<property name="header" value="^/\*$\n^ \*( .*)?$\n^ \*/$\n" />
<property name="multiLines" value="2" />
<module name="RegexpMultiline">
<property name="format" value="[\u000b\f\u001a]" />
</module>
-<!--<module name="RegexpOnFilename" /> 6.15 or later -->
+ <module name="RegexpOnFilename" />
<module name="RegexpSingleline">
<property name="format" value="\s+$" />
</module>
<module name="FileTabCharacter" />
+ <module name="BeforeExecutionExclusionFileFilter">
+ <property name="fileNamePattern" value="module\-info\.java$" />
+ </module>
+
+
<module name="TreeWalker">
- <property name="tabWidth" value="8"/>
+ <property name="tabWidth" value="8" />
+ <property name="fileExtensions" value="java" />
+
+ <module name="SuppressWarningsHolder" />
+
+
+ <!-- Filters -->
+
+ <module name="SuppressionCommentFilter" />
+ <module name="SuppressWithNearbyCommentFilter" />
+ <!--module name="SuppressionXpathFilter" /-->
+ <!--module name="SuppressionXpathSingleFilter" /-->
<!-- Annotations -->
<module name="AnnotationLocation" />
+ <module name="AnnotationOnSameLine" />
<module name="AnnotationUseStyle" />
<module name="MissingDeprecated" />
<module name="MissingOverride" />
<!-- Block Checks -->
+
<module name="AvoidNestedBlocks" />
<module name="EmptyBlock" />
-<!-- <module name="EmptyCatchBlock" /> 6.4 or later -->
+ <module name="EmptyCatchBlock" />
<module name="LeftCurly" />
<module name="NeedBraces">
- <property name="tokens" value="LITERAL_DO" />
+ <property name="allowSingleLineStatement" value="true" />
</module>
<module name="RightCurly" />
<module name="HiddenField">
<property name="ignoreConstructorParameter" value="true" />
<property name="ignoreSetter" value="true" />
+ <property name="setterCanReturnItsClass" value="true" />
<property name="ignoreAbstractMethods" value="true" />
</module>
<module name="IllegalCatch" />
<module name="ModifiedControlVariable" />
<module name="MultipleStringLiterals" />
<module name="MultipleVariableDeclarations" />
- <module name="SimplifyBooleanExpression" />
- <module name="SimplifyBooleanReturn" />
- <module name="StringLiteralEquality" />
<module name="NestedForDepth" />
<module name="NestedIfDepth" />
<module name="NestedTryDepth" />
<module name="AvoidStaticImport" />
<module name="CustomImportOrder" />
<module name="IllegalImport" />
- <module name="ImportControl" />
+ <!--module name="ImportControl" /-->
<module name="ImportOrder" />
<module name="RedundantImport" />
<module name="UnusedImports" />
<module name="ArrayTypeStyle" />
<module name="AvoidEscapedUnicodeCharacters">
- <property name="allowEscapesForControlCharacters" value="true"/>
- <property name="allowByTailComment" value="true"/>
- <property name="allowIfAllCharactersEscaped" value="true"/>
- <property name="allowNonPrintableEscapes" value="true"/>
+ <property name="allowEscapesForControlCharacters" value="true" />
+ <property name="allowByTailComment" value="true" />
+ <property name="allowIfAllCharactersEscaped" value="true" />
+ <property name="allowNonPrintableEscapes" value="true" />
</module>
-<!-- <module name="CommentsIndentation" /> 6.10 or later -->
+ <module name="CommentsIndentation" />
<module name="DescendantToken" />
- <module name="FileContentsHolder" />
<module name="FinalParameters" />
<module name="Indentation">
<property name="caseIndent" value="0" />
<!-- Modifiers -->
+ <module name="ClassMemberImpliedModifier" />
+ <module name="InterfaceMemberImpliedModifier" />
<module name="ModifierOrder" />
<module name="RedundantModifier" />
value="^Abstract.*$|^.*Factory$|^.*Builder$|^.*Adapter$"
/>
</module>
-<!-- <module name="CatchParameterName" /> 6.14 or later -->
+ <module name="CatchParameterName" />
<module name="ClassTypeParameterName" />
<module name="ConstantName" />
<module name="InterfaceTypeParameterName" />
+ <module name="LambdaParameterName" />
<module name="LocalFinalVariableName">
<property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
</module>
<property name="tokens" value="DOT" />
<property name="option" value="nl" />
</module>
+ <module name="SingleSpaceSeparator" />
<module name="TypecastParenPad" />
- <module name="WhitespaceAfter" />
+ <module name="WhitespaceAfter" >
+ <property name="tokens" value="COMMA, SEMI," />
+ </module>
<module name="WhitespaceAround">
<property
name="tokens"
</module>
+
</module>
<!-- EOF -->
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ Custom rule set
+ for PMD [ https://pmd.github.io/ ] 6.13.0 or later
+
+ Copyright(c) 2016 olyutorskii
+-->
+
+<ruleset
+ xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
+ http://pmd.sourceforge.net/ruleset_2_0_0.xsd"
+ name="Custom ruleset"
+>
+
+ <description>
+ custom rulesets
+ </description>
+
+ <rule ref="category/java/bestpractices.xml" />
+
+ <rule ref="category/java/codestyle.xml" >
+ <exclude name="CommentDefaultAccessModifier" />
+ <exclude name="DefaultPackage" />
+ <exclude name="LocalVariableCouldBeFinal" />
+ <exclude name="MethodArgumentCouldBeFinal" />
+ <exclude name="OnlyOneReturn" />
+ <exclude name="ShortVariable" />
+ <exclude name="UnnecessaryLocalBeforeReturn" />
+ <exclude name="UnnecessaryReturn" />
+ </rule>
+ <rule ref="category/java/codestyle.xml/ControlStatementBraces" >
+ <properties>
+ <property name="checkIfElseStmt" value="false"/>
+ <property name="checkSingleIfStmt" value="false"/>
+ </properties>
+ </rule>
+
+ <rule ref="category/java/design.xml" >
+ <exclude name="AvoidThrowingNullPointerException" />
+ <exclude name="AvoidUncheckedExceptionsInSignatures" />
+ <exclude name="LawOfDemeter" />
+ <exclude name="LoosePackageCoupling" />
+ <exclude name="SimplifyBooleanReturns" />
+ </rule>
+
+ <rule ref="category/java/documentation.xml" />
+ <rule ref="category/java/documentation.xml/CommentRequired" >
+ <properties>
+ <property name="fieldCommentRequirement" value="Ignored"/>
+ </properties>
+ </rule>
+ <rule ref="category/java/documentation.xml/CommentSize" >
+ <properties>
+ <property name="maxLines" value="25"/>
+ </properties>
+ </rule>
+
+ <rule ref="category/java/errorprone.xml" >
+ <exclude name="AvoidLiteralsInIfCondition" />
+ <exclude name="BeanMembersShouldSerialize" />
+ <exclude name="DataflowAnomalyAnalysis" />
+ </rule>
+
+ <rule ref="category/java/multithreading.xml" />
+
+ <rule ref="category/java/performance.xml" >
+ <exclude name="ConsecutiveAppendsShouldReuse" />
+ <exclude name="RedundantFieldInitializer" />
+ </rule>
+
+ <rule ref="category/java/security.xml" />
+
+ <!--rule ref="category/pom/errorprone.xml" /-->
+
+ <!--rule ref="category/xml/errorprone.xml" /-->
+
+</ruleset>
+
+<!-- EOF -->
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!-- ====================================================================== -->
-<!-- Ant build file (http://ant.apache.org/) for Ant 1.8.0 or later. -->
-<!-- ====================================================================== -->
-
-<project basedir=".">
-<description>
-CAUTION : This is not build-file for project-building.
-It's just adapting project-files for native environment.
-</description>
-
-<!-- ====================================================================== -->
-<!-- sanitize files for native environment -->
-<!-- ====================================================================== -->
-
- <target description="sanitize files" name="sanitize" >
- <echo message="sanitize files..." />
-
- <fixcrlf
- srcDir="." includes="*.txt"
- encoding="UTF-8" outputencoding="UTF-8"
- tablength="8" tab="remove"
- eof="remove"
- />
-
- <fixcrlf
- srcDir="./src/" includes="**/*.java"
- encoding="UTF-8" outputencoding="UTF-8"
- tablength="4" tab="remove" javafiles="true"
- eof="remove"
- />
-
- <fixcrlf
- srcDir="./src/" includes="**/*.properties"
- encoding="ISO-8859-1" outputencoding="ISO-8859-1"
- eol="lf"
- eof="remove"
- />
-
- <fixcrlf
- srcDir="./src/" includes="**/*.xml,**/*.xsd,**/*.dtd"
- encoding="UTF-8" outputencoding="UTF-8"
- tablength="8" tab="remove"
- eol="lf"
- eof="remove"
- />
-
- <fixcrlf
- srcDir="./src/" includes="**/*.html,**/*.htm,**/*.css"
- encoding="UTF-8" outputencoding="UTF-8"
- tablength="8" tab="remove"
- eol="lf"
- eof="remove"
- />
-
- <chmod type="file" perm="a-x">
- <fileset dir="." includes="**/*" excludes="**/*.sh" />
- </chmod>
-
- </target>
-
-</project>
-
-<!-- EOF -->
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
- http://maven.apache.org/maven-v4_0_0.xsd"
+ http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<!--parent/-->
<groupId>jp.sourceforge.jovsonz</groupId>
<artifactId>jovsonz</artifactId>
- <version>1.101.103-SNAPSHOT</version>
+ <version>1.101.104</version>
<packaging>jar</packaging>
<name>Jovsonz</name>
<organization>
<name>Jovsonz Partners</name>
- <url>https://osdn.jp/projects/jovsonz/</url>
+ <url>https://osdn.net/projects/jovsonz/</url>
</organization>
<licenses>
<license>
<name>The MIT License</name>
- <url>https://opensource.org/licenses/mit-license.php</url>
+ <url>https://opensource.org/licenses/MIT</url>
<distribution>manual</distribution>
</license>
</licenses>
<id>olyutorskii</id>
<url>https://sites.google.com/site/olyutorskiipit/</url>
<organization>Jovsonz Partners</organization>
- <organizationUrl>https://osdn.jp/projects/jovsonz/</organizationUrl>
+ <organizationUrl>https://osdn.net/projects/jovsonz/</organizationUrl>
<roles>
<role>Project Founder</role>
<role>Java Developer</role>
<contributors/>
<mailingLists/>
- <prerequisites>
- <maven>3.0.1</maven>
- </prerequisites>
+ <!-- prerequisites/ -->
<modules/>
<scm>
- <connection>scm:hg:http://hg.osdn.jp/view/jovsonz/Jovsonz</connection>
- <developerConnection>scm:hg:ssh://hg.osdn.jp//hgroot/jovsonz/Jovsonz</developerConnection>
- <url>https://osdn.jp/projects/jovsonz/scm/hg/Jovsonz/</url>
+ <connection>scm:git:git://git.osdn.net/gitroot/jovsonz/Jovsonz.git</connection>
+ <developerConnection>scm:git:https://scm.osdn.net/gitroot/jovsonz/Jovsonz.git</developerConnection>
+ <url>https://osdn.net/projects/jovsonz/scm/git/Jovsonz/</url>
</scm>
<issueManagement>
- <system>OSDN.JP</system>
- <url>https://osdn.jp/projects/jovsonz/ticket/</url>
+ <system>OSDN.net</system>
+ <url>https://osdn.net/projects/jovsonz/ticket/</url>
</issueManagement>
<ciManagement/>
<distributionManagement/>
<properties>
- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
-
- <maven.compiler.source>1.7</maven.compiler.source>
- <maven.compiler.target>1.7</maven.compiler.target>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
<maven.compiler.showWarnings>true</maven.compiler.showWarnings>
+ <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.mainconf>${project.basedir}/src/main/config</project.mainconf>
- <checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.location>
+ <locale>en</locale>
+ <site.locales>${locale}</site.locales>
+ <javadoc.locale>${locale}</javadoc.locale>
+ <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.jvmArgs>
+
+ <!-- Walk around: JDK 11 javadoc + Maven -->
+ <detectJavaApiLink>false</detectJavaApiLink>
+
+ <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
+ <jacoco-plugin.version>0.8.3</jacoco-plugin.version>
+
+ <checkstyle-plugin.version>3.0.0</checkstyle-plugin.version>
+ <checkstyleruntime.version>8.18</checkstyleruntime.version>
+ <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
+ <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
<checkstyle.enable.rss>false</checkstyle.enable.rss>
+ <pmd-plugin.version>3.12.0</pmd-plugin.version>
+ <pmd.analysisCache>true</pmd.analysisCache>
+
+ <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/>
<pluginRepositories/>
<build>
- <pluginManagement/>
+
+ <pluginManagement>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>${checkstyle-plugin.version}</version>
+ <dependencies>
+ <dependency>
+ <groupId>com.puppycrawl.tools</groupId>
+ <artifactId>checkstyle</artifactId>
+ <version>${checkstyleruntime.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
+ </plugins>
+
+ </pluginManagement>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.4.1</version>
- <configuration>
- <rules>
- <requireMavenVersion>
- <version>[3.0.1,)</version>
- </requireMavenVersion>
- <requireJavaVersion>
- <version>[1.7,)</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.5.2</version>
- </plugin>
+ <!-- clean lifecycle -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
- <version>3.0.0</version>
+ <version>3.1.0</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}</directory>
<includes>
- <include>**/.DS_Store</include>
- <include>**/_MACOSX</include>
+ <include>**/*~</include>
+ <include>**/*.swp</include>
+ <include>**/*.DS_Store</include>
+ <include>**/._*</include>
+ <include>**/__MACOSX</include>
<include>**/Thumbs.db</include>
- <include>**/thumbs.db</include>
- <include>**/Desktop.ini</include>
<include>**/desktop.ini</include>
<include>**/core</include>
+ <include>**/hs_err_pid*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
+
+ <!-- default lifecycle -->
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>3.0.0-M2</version>
+ <executions>
+ <execution>
+ <id>enforce-versions</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>[3.3.9,)</version>
+ </requireMavenVersion>
+ <requireJavaVersion>
+ <version>[1.8,)</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>3.1.0</version>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.5.1</version>
+ <version>3.8.0</version>
<configuration>
- <source>1.7</source> <!-- for NetBeans IDE -->
- <target>1.7</target>
- <showDeprecation>true</showDeprecation>
- <showWarnings>true</showWarnings>
+ <source>1.8</source> <!-- for NetBeans IDE -->
+ <target>1.8</target>
<compilerArguments>
<Xlint/>
</compilerArguments>
+ <showWarnings>true</showWarnings>
+ <showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>3.0.0</version>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${surefire-plugin.version}</version>
<configuration>
- <archive>
- <manifestEntries>
- <Built-By>${project.organization.name}</Built-By>
- </manifestEntries>
- </archive>
+ <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-assembly-plugin</artifactId>
- <version>2.6</version>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>3.1.1</version>
<configuration>
- <archiveBaseDirectory>.</archiveBaseDirectory>
- <descriptors>
- <descriptor>src/main/assembly/descriptor.xml</descriptor>
- </descriptors>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>
+ true
+ </addDefaultImplementationEntries>
+ </manifest>
+ <manifestEntries>
+ <Built-By>${project.organization.name}</Built-By>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
- <version>3.0.0</version>
+ <version>3.0.1</version>
<configuration>
<includePom>true</includePom>
<archive>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.0.0</version>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.19.1</version>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>3.0.0-M1</version>
+ </plugin>
+
+
+ <!-- site lifecycle -->
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.7.1</version>
<configuration>
- <skipTests>false</skipTests>
- <enableAssertions>true</enableAssertions>
+ <locales>${site.locales}</locales>
</configuration>
</plugin>
+
+ <!-- goals without lifecycle -->
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.5.1</version>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>3.1.1</version>
<configuration>
- <generateReports>true</generateReports>
- <locales>ja</locales>
- <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
- <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
+ <descriptors>
+ <descriptor>src/assembly/src.xml</descriptor>
+ </descriptors>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.15</version>
- <!-- config from property value -->
+ <version>${checkstyle-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
- <version>3.6</version>
+ <version>${pmd-plugin.version}</version>
<configuration>
- <targetJdk>${maven.compiler.target}</targetJdk>
<rulesets>
- <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
+ <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
</rulesets>
</configuration>
</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-javadoc-plugin</artifactId>
- <version>2.10.3</version>
+ <version>3.1.0</version>
<configuration>
- <skip>false</skip>
+ <author>false</author>
<notimestamp>true</notimestamp>
<quiet>true</quiet>
<show>protected</show>
+ <header>${project.name} ${project.version} API</header>
+ <version>true</version>
+ <locale>${javadoc.locale}</locale>
+ <!-- for JDK11 javadoc -->
+ <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
</configuration>
<reportSets>
<reportSet>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <skip>false</skip>
- </configuration>
+ <version>3.0.0</version>
</plugin>
<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>
- <configuration>
- <skip>false</skip>
- <!-- config from property value -->
- </configuration>
+ <version>${checkstyle-plugin.version}</version>
<reportSets>
<reportSet>
<reports>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
- <version>3.6</version>
+ <version>${pmd-plugin.version}</version>
<configuration>
- <skip>false</skip>
- <targetJdk>${maven.compiler.target}</targetJdk>
<rulesets>
- <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
+ <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
</rulesets>
</configuration>
<reportSets>
</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>
<?xml version="1.0" encoding="UTF-8" ?>
<assembly
- xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
+ xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3
- http://maven.apache.org/xsd/assembly-1.1.3.xsd"
+ xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0
+ http://maven.apache.org/xsd/assembly-2.0.0.xsd"
>
<!--
- OSDN.JP用リリースファイル構成定義ファイル
- Maven2(or3) assembly用
+ OSDN.net用リリースファイル構成定義ファイル
+ Maven3 assembly用
-->
<id>src</id>
<fileSets>
<fileSet>
- <directory>.</directory>
+ <directory>${project.basedir}</directory>
<includes>
- <include>pom.xml</include>
- <include>fixcrlf.xml</include>
+ <include>*.xml</include>
<include>*.txt</include>
+ <include>*.md</include>
</includes>
<excludes>
<exclude>nb-configuration.xml</exclude>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
<fileSet>
- <directory>src/</directory>
+ <directory>${project.basedir}/src</directory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.basedir}/config</directory>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
</fileSets>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!--
- PMD用ルールセット定義
-
- PMD [ https://pmd.github.io/ ] 5.3 以降用に記述されています。
-
- Copyright(c) 2016 olyutorskii
--->
-
-<ruleset
- xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
- http://pmd.sourceforge.net/ruleset_2_0_0.xsd"
- name="Custom ruleset"
->
-
- <description>
- custom rulesets for project
- </description>
-
-<!--
- <rule ref="rulesets/java/android.xml" />
--->
-
- <rule ref="rulesets/java/basic.xml" />
-
- <rule ref="rulesets/java/braces.xml">
- <exclude name="IfElseStmtsMustUseBraces" />
- <exclude name="IfStmtsMustUseBraces" />
- </rule>
-
- <rule ref="rulesets/java/clone.xml" />
-
- <rule ref="rulesets/java/codesize.xml">
- <exclude name="TooManyMethods" />
- </rule>
- <rule ref="rulesets/java/codesize.xml/TooManyMethods">
- <properties>
- <property name="maxmethods" value="25"/>
- </properties>
- </rule>
-
- <rule ref="rulesets/java/comments.xml">
- <exclude name="CommentRequired" />
- <exclude name="CommentSize" />
- </rule>
- <rule ref="rulesets/java/comments.xml/CommentRequired" >
- <properties>
- <property name="fieldCommentRequirement" value="Ignored"/>
- </properties>
- </rule>
- <rule ref="rulesets/java/comments.xml/CommentSize" >
- <properties>
- <property name="maxLines" value="25"/>
- </properties>
- </rule>
-
- <rule ref="rulesets/java/controversial.xml">
- <exclude name="NullAssignment" />
- <exclude name="OnlyOneReturn" />
- <exclude name="DefaultPackage" />
- <exclude name="DataflowAnomalyAnalysis" />
- <exclude name="AvoidUsingShortType" />
- <exclude name="AvoidLiteralsInIfCondition" />
- <exclude name="UseConcurrentHashMap" />
- </rule>
-
- <rule ref="rulesets/java/coupling.xml">
- <exclude name="LoosePackageCoupling" />
- <exclude name="LawOfDemeter" />
- </rule>
-
- <rule ref="rulesets/java/design.xml">
- <exclude name="SimplifyBooleanReturns" />
- <exclude name="ConfusingTernary" />
- <exclude name="UnnecessaryLocalBeforeReturn" />
- <exclude name="FieldDeclarationsShouldBeAtStartOfClass" />
- </rule>
-
- <rule ref="rulesets/java/empty.xml" />
-
- <rule ref="rulesets/java/finalizers.xml" />
-
- <rule ref="rulesets/java/imports.xml" />
-
-<!--
- <rule ref="rulesets/java/j2ee.xml" />
- <rule ref="rulesets/java/javabeans.xml" />
--->
-
- <rule ref="rulesets/java/junit.xml" />
-
-<!--
- <rule ref="rulesets/java/logging-jakarta-commons.xml" />
--->
-
- <rule ref="rulesets/java/logging-java.xml" />
-
- <rule ref="rulesets/java/migrating.xml" />
-<!--
- <rule ref="rulesets/java/migrating_to_XX.xml" />
--->
-
- <rule ref="rulesets/java/naming.xml">
- <exclude name="ShortVariable" />
- <exclude name="LongVariable" />
- <exclude name="AvoidFieldNameMatchingMethodName" />
- </rule>
- <rule ref="rulesets/java/naming.xml/LongVariable">
- <properties>
- <property name="minimum" value="25"/>
- </properties>
- </rule>
-
- <rule ref="rulesets/java/optimizations.xml">
- <exclude name="LocalVariableCouldBeFinal" />
- <exclude name="MethodArgumentCouldBeFinal" />
- <exclude name="RedundantFieldInitializer" />
- </rule>
-
- <rule ref="rulesets/java/strictexception.xml">
- <exclude name="AvoidThrowingNullPointerException" />
- </rule>
-
- <rule ref="rulesets/java/strings.xml" />
-
- <rule ref="rulesets/java/sunsecure.xml" />
-
- <rule ref="rulesets/java/typeresolution.xml" />
-
- <rule ref="rulesets/java/unnecessary.xml">
- <exclude name="UnnecessaryReturn" />
- <exclude name="UselessParentheses" />
- </rule>
-
- <rule ref="rulesets/java/unusedcode.xml" />
-
-</ruleset>
-
-<!-- EOF -->