OSDN Git Service

move config files to ./config/
authorOlyutorskii <olyutorskii@users.osdn.me>
Tue, 7 May 2019 00:01:08 +0000 (09:01 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Tue, 7 May 2019 00:01:08 +0000 (09:01 +0900)
config/checkstyle/checkstyle-suppressions.xml [moved from checkstyle-suppressions.xml with 100% similarity]
config/checkstyle/checkstyle.xml [moved from checkstyle.xml with 100% similarity]
config/pmd/pmdrules.xml [moved from pmdrules.xml with 100% similarity]
pom.xml

similarity index 100%
rename from pmdrules.xml
rename to config/pmd/pmdrules.xml
diff --git a/pom.xml b/pom.xml
index 4296697..978023c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 
         <checkstyle-plugin.version>2.17</checkstyle-plugin.version>
         <checkstyleruntime.version>6.19</checkstyleruntime.version>
-        <checkstyle.config.location>${project.basedir}/checkstyle.xml</checkstyle.config.location>
-        <checkstyle.suppressions.location>${project.basedir}/checkstyle-suppressions.xml</checkstyle.suppressions.location>
+        <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.7</pmd-plugin.version>
             </plugin>
 
             <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-pmd-plugin</artifactId>
+                <version>${pmd-plugin.version}</version>
+                <configuration>
+                    <rulesets>
+                        <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
+                    </rulesets>
+                </configuration>
+            </plugin>
+
+            <plugin>
                 <groupId>com.github.spotbugs</groupId>
                 <artifactId>spotbugs-maven-plugin</artifactId>
                 <version>${spotbugs-plugin.version}</version>
                 <version>${pmd-plugin.version}</version>
                 <configuration>
                     <rulesets>
-                        <ruleset>${project.basedir}/pmdrules.xml</ruleset>
+                        <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
                     </rulesets>
                 </configuration>
                 <reportSets>