OSDN Git Service

move checkstyle & pmd configs.
[mikutoga/TogaGem.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2
3 <!--
4     Maven3 POM definition file
5 -->
6
7 <project
8   xmlns="http://maven.apache.org/POM/4.0.0"
9   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
11   http://maven.apache.org/xsd/maven-4.0.0.xsd"
12 >
13     <modelVersion>4.0.0</modelVersion>
14     <!--parent/-->
15
16     <groupId>jp.sourceforge.mikutoga</groupId>
17     <artifactId>togagem</artifactId>
18
19     <version>3.101.105-SNAPSHOT</version>
20
21     <packaging>jar</packaging>
22     <name>TogaGem</name>
23
24     <description><!--
25 -->TogaGem is a file reader library for MikuMikuDance(MMD) with Java. <!--
26 -->TogaGem is a sub-project of MikuToga project. <!--
27 --></description>
28
29     <url>https://ja.osdn.net/projects/mikutoga/devel/</url>
30     <inceptionYear>2010</inceptionYear>
31
32     <organization>
33         <name>MikuToga Partners</name>
34         <url>https://ja.osdn.net/projects/mikutoga/devel/</url>
35     </organization>
36
37     <licenses>
38         <license>
39             <name>The MIT License</name>
40             <url>https://opensource.org/licenses/MIT</url>
41             <distribution>manual</distribution>
42         </license>
43     </licenses>
44
45     <developers>
46         <developer>
47             <id>olyutorskii</id>
48             <url>https://sites.google.com/site/olyutorskiipit/</url>
49             <organization>MikuToga Partners</organization>
50             <organizationUrl>https://ja.osdn.net/projects/mikutoga/devel/</organizationUrl>
51             <roles>
52                 <role>Project Founder</role>
53                 <role>Java Developer</role>
54             </roles>
55         </developer>
56     </developers>
57
58     <contributors/>
59     <mailingLists/>
60
61     <!-- prerequisites/ -->
62
63     <modules/>
64
65     <scm>
66         <connection>scm:git:git://git.osdn.net/gitroot/mikutoga/TogaGem.git</connection>
67         <developerConnection>scm:git:https://scm.osdn.net/gitroot/mikutoga/TogaGem.git</developerConnection>
68         <url>https://osdn.net/projects/mikutoga/scm/git/TogaGem/</url>
69     </scm>
70
71     <issueManagement>
72         <system>OSDN.net</system>
73         <url>https://ja.osdn.net/projects/mikutoga/ticket/</url>
74     </issueManagement>
75
76     <ciManagement/>
77     <distributionManagement/>
78
79     <properties>
80         <maven.compiler.source>1.8</maven.compiler.source>
81         <maven.compiler.target>1.8</maven.compiler.target>
82
83         <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
84         <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
85
86         <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
87         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
88         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
89
90         <locale>en</locale>
91         <site.locales>${locale}</site.locales>
92         <javadoc.locale>${locale}</javadoc.locale>
93
94         <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
95         <jacoco-plugin.version>0.8.3</jacoco-plugin.version>
96         
97         <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
98
99         <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
100         <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
101         <checkstyle.enable.rss>false</checkstyle.enable.rss>
102
103     </properties>
104
105     <dependencyManagement/>
106
107     <dependencies>
108
109         <dependency>
110             <groupId>junit</groupId>
111             <artifactId>junit</artifactId>
112             <version>4.12</version>
113             <scope>test</scope>
114         </dependency>
115
116     </dependencies>
117
118     <repositories/>
119     <pluginRepositories/>
120
121     <build>
122         
123         <pluginManagement/>
124
125         <plugins>
126
127
128             <!-- clean lifecycle -->
129
130             <plugin>
131                 <groupId>org.apache.maven.plugins</groupId>
132                 <artifactId>maven-clean-plugin</artifactId>
133                 <version>3.1.0</version>
134                 <configuration>
135                     <filesets>
136                         <fileset>
137                             <directory>${project.basedir}</directory>
138                             <includes>
139                                 <include>**/*~</include>
140                                 <include>**/*.swp</include>
141                                 <include>**/*.DS_Store</include>
142                                 <include>**/._*</include>
143                                 <include>**/__MACOSX</include>
144                                 <include>**/Thumbs.db</include>
145                                 <include>**/desktop.ini</include>
146                                 <include>**/core</include>
147                                 <include>**/hs_err_pid*</include>
148                             </includes>
149                         </fileset>
150                     </filesets>
151                 </configuration>
152             </plugin>
153
154
155             <!-- default lifecycle -->
156
157             <plugin>
158                 <groupId>org.apache.maven.plugins</groupId>
159                 <artifactId>maven-enforcer-plugin</artifactId>
160                 <version>3.0.0-M2</version>
161                 <executions>
162                     <execution>
163                         <id>enforce-versions</id>
164                         <goals>
165                             <goal>enforce</goal>
166                         </goals>
167                         <configuration>
168                             <rules>
169                                 <requireMavenVersion>
170                                     <version>[3.3.9,)</version>
171                                 </requireMavenVersion>
172                                 <requireJavaVersion>
173                                     <version>1.8</version>
174                                 </requireJavaVersion>
175                             </rules>
176                         </configuration>
177                     </execution>
178                 </executions>
179             </plugin>
180
181             <plugin>
182                 <groupId>org.apache.maven.plugins</groupId>
183                 <artifactId>maven-resources-plugin</artifactId>
184                 <version>3.1.0</version>
185             </plugin>
186
187             <plugin>
188                 <groupId>org.apache.maven.plugins</groupId>
189                 <artifactId>maven-compiler-plugin</artifactId>
190                 <version>3.8.0</version>
191                 <configuration>
192                     <source>1.8</source>  <!-- for NetBeans IDE -->
193                     <target>1.8</target>
194                     <compilerArguments>
195                         <Xlint/>
196                     </compilerArguments>
197                     <showWarnings>true</showWarnings>
198                     <showDeprecation>true</showDeprecation>
199                 </configuration>
200             </plugin>
201
202             <plugin>
203                 <groupId>org.apache.maven.plugins</groupId>
204                 <artifactId>maven-surefire-plugin</artifactId>
205                 <version>${surefire-plugin.version}</version>
206                 <configuration>
207                     <enableAssertions>true</enableAssertions>
208                 </configuration>
209             </plugin>
210
211             <plugin>
212                 <groupId>org.jacoco</groupId>
213                 <artifactId>jacoco-maven-plugin</artifactId>
214                 <version>${jacoco-plugin.version}</version>
215                 <executions>
216                     <execution>
217                         <id>default-prepare-agent</id>
218                         <goals>
219                             <goal>prepare-agent</goal>
220                         </goals>
221                     </execution>
222                     <execution>
223                         <id>default-report</id>
224                         <phase>prepare-package</phase>
225                         <goals>
226                             <goal>report</goal>
227                         </goals>
228                     </execution>
229                     <execution>
230                         <id>default-check</id>
231                         <goals>
232                             <goal>check</goal>
233                         </goals>
234                         <configuration>
235                             <rules>
236                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
237                                     <element>BUNDLE</element>
238                                     <limits>
239                                         <limit implementation="org.jacoco.report.check.Limit">
240                                             <counter>COMPLEXITY</counter>
241                                             <value>COVEREDRATIO</value>
242                                             <minimum>0.0</minimum>
243                                         </limit>
244                                     </limits>
245                                 </rule>
246                             </rules>
247                         </configuration>
248                     </execution>
249                 </executions>
250             </plugin>
251
252             <plugin>
253                 <groupId>org.apache.maven.plugins</groupId>
254                 <artifactId>maven-jar-plugin</artifactId>
255                 <version>2.4</version>
256                 <configuration>
257                     <archive>
258                         <manifestEntries>
259                             <Built-By>${project.organization.name}</Built-By>
260                         </manifestEntries>
261                     </archive>
262                 </configuration>
263             </plugin>
264
265             <plugin>
266                 <groupId>org.apache.maven.plugins</groupId>
267                 <artifactId>maven-source-plugin</artifactId>
268                 <version>3.0.1</version>
269                 <configuration>
270                     <includePom>true</includePom>
271                     <archive>
272                         <manifestEntries>
273                             <Built-By>${project.organization.name}</Built-By>
274                         </manifestEntries>
275                     </archive>
276                 </configuration>
277                 <executions>
278                     <execution>
279                         <id>attach-sources</id>
280                         <phase>verify</phase>
281                         <goals>
282                           <goal>jar-no-fork</goal>
283                         </goals>
284                     </execution>
285                 </executions>
286             </plugin>
287
288             <plugin>
289                 <groupId>org.apache.maven.plugins</groupId>
290                 <artifactId>maven-install-plugin</artifactId>
291                 <version>3.0.0-M1</version>
292             </plugin>
293
294             <plugin>
295                 <groupId>org.apache.maven.plugins</groupId>
296                 <artifactId>maven-deploy-plugin</artifactId>
297                 <version>3.0.0-M1</version>
298             </plugin>
299
300
301             <!-- site lifecycle -->
302
303             <plugin>
304                 <groupId>org.apache.maven.plugins</groupId>
305                 <artifactId>maven-site-plugin</artifactId>
306                 <version>3.7.1</version>
307                 <configuration>
308                     <locales>${site.locales}</locales>
309                 </configuration>
310             </plugin>
311
312
313             <!-- goals without lifecycle -->
314
315             <plugin>
316                 <groupId>org.apache.maven.plugins</groupId>
317                 <artifactId>maven-assembly-plugin</artifactId>
318                 <version>2.4</version>
319                 <configuration>
320                     <descriptors>
321                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
322                     </descriptors>
323                 </configuration>
324             </plugin>
325
326             <plugin>
327                 <groupId>org.apache.maven.plugins</groupId>
328                 <artifactId>maven-checkstyle-plugin</artifactId>
329                 <version>2.10</version>
330                 <!-- config from property value -->
331             </plugin>
332
333             <plugin>
334                 <groupId>org.apache.maven.plugins</groupId>
335                 <artifactId>maven-pmd-plugin</artifactId>
336                 <version>3.0.1</version>
337                 <configuration>
338                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
339                     <targetJdk>1.6</targetJdk>
340                     <rulesets>
341                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
342                     </rulesets>
343                 </configuration>
344             </plugin>
345
346             <plugin>
347                 <groupId>org.codehaus.mojo</groupId>
348                 <artifactId>findbugs-maven-plugin</artifactId>
349                 <version>2.5.2</version>
350                 <configuration>
351                     <effort>Max</effort>
352                     <threshold>Low</threshold>
353                     <!-- for Jenkins -->
354                     <findbugsXmlOutput>true</findbugsXmlOutput>
355                     <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
356                     <xmlOutput>true</xmlOutput>
357                 </configuration>
358             </plugin>
359
360         </plugins>
361
362         <resources>
363
364             <resource>
365                 <directory>src/main/resources</directory>
366                 <filtering>true</filtering>
367                 <includes>
368                     <include>**/version.properties</include>
369                 </includes>
370             </resource>
371
372             <resource>
373                 <directory>src/main/resources</directory>
374                 <includes>
375                     <include>**/*.txt</include>
376
377                     <include>**/*.properties</include>
378
379                     <include>**/*.xml</include>
380                     <include>**/*.xsd</include>
381                     <include>**/*.dtd</include>
382
383                     <include>**/*.html</include>
384                     <include>**/*.htm</include>
385                     <include>**/*.css</include>
386
387                     <include>**/*.png</include>
388                     <include>**/*.gif</include>
389                     <include>**/*.jpeg</include>
390                     <include>**/*.jpg</include>
391                 </includes>
392                 <excludes>
393                     <exclude>**/version.properties</exclude>
394
395                     <exclude>**/.DS_Store</exclude>
396                     <exclude>**/__MACOSX</exclude>
397                     <exclude>**/Thumbs.db</exclude>
398                     <exclude>**/thumbs.db</exclude>
399                     <exclude>**/Desktop.ini</exclude>
400                     <exclude>**/desktop.ini</exclude>
401                     <exclude>**/core</exclude>
402                 </excludes>
403             </resource>
404
405         </resources>
406
407     </build>
408
409     <reporting>
410
411         <plugins>
412
413             <plugin>
414                 <groupId>org.apache.maven.plugins</groupId>
415                 <artifactId>maven-project-info-reports-plugin</artifactId>
416                 <version>3.0.0</version>
417                 <configuration>
418                     <linkOnly>true</linkOnly>
419                     <offline>true</offline>
420                 </configuration>
421                 <reportSets>
422                     <reportSet>
423                         <reports>
424                             <report>index</report>
425                             <report>summary</report>
426                             <report>licenses</report>
427                             <report>dependency-info</report>
428                             <report>dependencies</report>
429                             <report>dependency-convergence</report>
430                             <report>plugins</report>
431                             <report>plugin-management</report>
432                             <report>team</report>
433                             <report>issue-management</report>
434                             <report>scm</report>
435 <!--
436                             <report>dependency-management</report>
437                             <report>distribution-management</report>
438                             <report>ci-management</report>
439                             <report>mailing-lists</report>
440                             <report>modules</report>
441 -->
442                         </reports>
443                     </reportSet>
444                 </reportSets>
445             </plugin>
446
447             <plugin>
448                 <groupId>org.apache.maven.plugins</groupId>
449                 <artifactId>maven-javadoc-plugin</artifactId>
450                 <version>2.9</version>
451                 <configuration>
452                     <skip>false</skip>
453                     <notimestamp>true</notimestamp>
454                     <quiet>true</quiet>
455                     <show>protected</show>
456                     <stylesheet>maven</stylesheet>
457                 </configuration>
458                 <reportSets>
459                     <reportSet>
460                         <reports>
461                             <report>javadoc</report>
462                         </reports>
463                     </reportSet>
464                 </reportSets>
465             </plugin>
466
467             <plugin>
468                 <groupId>org.apache.maven.plugins</groupId>
469                 <artifactId>maven-jxr-plugin</artifactId>
470                 <version>2.3</version>
471                 <configuration>
472                     <skip>false</skip>
473                 </configuration>
474             </plugin>
475
476             <plugin>
477                 <groupId>org.apache.maven.plugins</groupId>
478                 <artifactId>maven-surefire-report-plugin</artifactId>
479                 <version>2.14.1</version>
480                 <configuration>
481                     <showSuccess>false</showSuccess>
482                 </configuration>
483                 <reportSets>
484                     <reportSet>
485                         <reports>
486                             <report>report-only</report>
487                         </reports>
488                     </reportSet>
489                 </reportSets>
490             </plugin>
491
492             <plugin>
493                 <groupId>org.jacoco</groupId>
494                 <artifactId>jacoco-maven-plugin</artifactId>
495                 <version>${jacoco-plugin.version}</version>
496                 <reportSets>
497                     <reportSet>
498                         <reports>
499                             <report>report</report>
500                         </reports>
501                     </reportSet>
502                 </reportSets>
503             </plugin>
504
505             <plugin>
506                 <groupId>org.apache.maven.plugins</groupId>
507                 <artifactId>maven-checkstyle-plugin</artifactId>
508                 <version>2.10</version>
509                 <configuration>
510                     <skip>false</skip>
511                     <!-- config from property value -->
512                 </configuration>
513                 <reportSets>
514                     <reportSet>
515                         <reports>
516                             <report>checkstyle</report>
517                         </reports>
518                     </reportSet>
519                 </reportSets>
520             </plugin>
521
522             <plugin>
523                 <groupId>org.apache.maven.plugins</groupId>
524                 <artifactId>maven-pmd-plugin</artifactId>
525                 <version>3.0.1</version>
526                 <configuration>
527                     <skip>false</skip>
528                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
529                     <targetJdk>1.6</targetJdk>
530                     <rulesets>
531                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
532                     </rulesets>
533                 </configuration>
534                 <reportSets>
535                     <reportSet>
536                         <reports>
537                             <report>pmd</report>
538                             <report>cpd</report>
539                         </reports>
540                     </reportSet>
541                 </reportSets>
542             </plugin>
543
544             <plugin>
545                 <groupId>org.codehaus.mojo</groupId>
546                 <artifactId>findbugs-maven-plugin</artifactId>
547                 <version>2.5.2</version>
548                 <configuration>
549                     <skip>true</skip>
550                     <effort>Max</effort>
551                     <threshold>Low</threshold>
552                     <!-- for Jenkins -->
553                     <findbugsXmlOutput>true</findbugsXmlOutput>
554                     <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
555                     <xmlOutput>true</xmlOutput>
556                     <!-- excludeFilterFile/ -->
557                 </configuration>
558             </plugin>
559
560         </plugins>
561
562     </reporting>
563
564     <profiles/>
565
566 </project>
567
568 <!-- EOF -->