OSDN Git Service

findbugs to spotbugs
[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         <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.jvmArgs>
94
95         <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
96         <jacoco-plugin.version>0.8.3</jacoco-plugin.version>
97         
98         <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
99
100         <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
101         <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
102         <checkstyle.enable.rss>false</checkstyle.enable.rss>
103
104         <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
105         <spotbugs.effort>Max</spotbugs.effort>
106         <spotbugs.threshold>Low</spotbugs.threshold>
107         <!-- for Jenkins -->
108         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
109
110     </properties>
111
112     <dependencyManagement/>
113
114     <dependencies>
115
116         <dependency>
117             <groupId>junit</groupId>
118             <artifactId>junit</artifactId>
119             <version>4.12</version>
120             <scope>test</scope>
121         </dependency>
122
123     </dependencies>
124
125     <repositories/>
126     <pluginRepositories/>
127
128     <build>
129         
130         <pluginManagement/>
131
132         <plugins>
133
134
135             <!-- clean lifecycle -->
136
137             <plugin>
138                 <groupId>org.apache.maven.plugins</groupId>
139                 <artifactId>maven-clean-plugin</artifactId>
140                 <version>3.1.0</version>
141                 <configuration>
142                     <filesets>
143                         <fileset>
144                             <directory>${project.basedir}</directory>
145                             <includes>
146                                 <include>**/*~</include>
147                                 <include>**/*.swp</include>
148                                 <include>**/*.DS_Store</include>
149                                 <include>**/._*</include>
150                                 <include>**/__MACOSX</include>
151                                 <include>**/Thumbs.db</include>
152                                 <include>**/desktop.ini</include>
153                                 <include>**/core</include>
154                                 <include>**/hs_err_pid*</include>
155                             </includes>
156                         </fileset>
157                     </filesets>
158                 </configuration>
159             </plugin>
160
161
162             <!-- default lifecycle -->
163
164             <plugin>
165                 <groupId>org.apache.maven.plugins</groupId>
166                 <artifactId>maven-enforcer-plugin</artifactId>
167                 <version>3.0.0-M2</version>
168                 <executions>
169                     <execution>
170                         <id>enforce-versions</id>
171                         <goals>
172                             <goal>enforce</goal>
173                         </goals>
174                         <configuration>
175                             <rules>
176                                 <requireMavenVersion>
177                                     <version>[3.3.9,)</version>
178                                 </requireMavenVersion>
179                                 <requireJavaVersion>
180                                     <version>1.8</version>
181                                 </requireJavaVersion>
182                             </rules>
183                         </configuration>
184                     </execution>
185                 </executions>
186             </plugin>
187
188             <plugin>
189                 <groupId>org.apache.maven.plugins</groupId>
190                 <artifactId>maven-resources-plugin</artifactId>
191                 <version>3.1.0</version>
192             </plugin>
193
194             <plugin>
195                 <groupId>org.apache.maven.plugins</groupId>
196                 <artifactId>maven-compiler-plugin</artifactId>
197                 <version>3.8.0</version>
198                 <configuration>
199                     <source>1.8</source>  <!-- for NetBeans IDE -->
200                     <target>1.8</target>
201                     <compilerArguments>
202                         <Xlint/>
203                     </compilerArguments>
204                     <showWarnings>true</showWarnings>
205                     <showDeprecation>true</showDeprecation>
206                 </configuration>
207             </plugin>
208
209             <plugin>
210                 <groupId>org.apache.maven.plugins</groupId>
211                 <artifactId>maven-surefire-plugin</artifactId>
212                 <version>${surefire-plugin.version}</version>
213                 <configuration>
214                     <enableAssertions>true</enableAssertions>
215                 </configuration>
216             </plugin>
217
218             <plugin>
219                 <groupId>org.jacoco</groupId>
220                 <artifactId>jacoco-maven-plugin</artifactId>
221                 <version>${jacoco-plugin.version}</version>
222                 <executions>
223                     <execution>
224                         <id>default-prepare-agent</id>
225                         <goals>
226                             <goal>prepare-agent</goal>
227                         </goals>
228                     </execution>
229                     <execution>
230                         <id>default-report</id>
231                         <phase>prepare-package</phase>
232                         <goals>
233                             <goal>report</goal>
234                         </goals>
235                     </execution>
236                     <execution>
237                         <id>default-check</id>
238                         <goals>
239                             <goal>check</goal>
240                         </goals>
241                         <configuration>
242                             <rules>
243                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
244                                     <element>BUNDLE</element>
245                                     <limits>
246                                         <limit implementation="org.jacoco.report.check.Limit">
247                                             <counter>COMPLEXITY</counter>
248                                             <value>COVEREDRATIO</value>
249                                             <minimum>0.0</minimum>
250                                         </limit>
251                                     </limits>
252                                 </rule>
253                             </rules>
254                         </configuration>
255                     </execution>
256                 </executions>
257             </plugin>
258
259             <plugin>
260                 <groupId>org.apache.maven.plugins</groupId>
261                 <artifactId>maven-jar-plugin</artifactId>
262                 <version>2.4</version>
263                 <configuration>
264                     <archive>
265                         <manifestEntries>
266                             <Built-By>${project.organization.name}</Built-By>
267                         </manifestEntries>
268                     </archive>
269                 </configuration>
270             </plugin>
271
272             <plugin>
273                 <groupId>org.apache.maven.plugins</groupId>
274                 <artifactId>maven-source-plugin</artifactId>
275                 <version>3.0.1</version>
276                 <configuration>
277                     <includePom>true</includePom>
278                     <archive>
279                         <manifestEntries>
280                             <Built-By>${project.organization.name}</Built-By>
281                         </manifestEntries>
282                     </archive>
283                 </configuration>
284                 <executions>
285                     <execution>
286                         <id>attach-sources</id>
287                         <phase>verify</phase>
288                         <goals>
289                           <goal>jar-no-fork</goal>
290                         </goals>
291                     </execution>
292                 </executions>
293             </plugin>
294
295             <plugin>
296                 <groupId>org.apache.maven.plugins</groupId>
297                 <artifactId>maven-install-plugin</artifactId>
298                 <version>3.0.0-M1</version>
299             </plugin>
300
301             <plugin>
302                 <groupId>org.apache.maven.plugins</groupId>
303                 <artifactId>maven-deploy-plugin</artifactId>
304                 <version>3.0.0-M1</version>
305             </plugin>
306
307
308             <!-- site lifecycle -->
309
310             <plugin>
311                 <groupId>org.apache.maven.plugins</groupId>
312                 <artifactId>maven-site-plugin</artifactId>
313                 <version>3.7.1</version>
314                 <configuration>
315                     <locales>${site.locales}</locales>
316                 </configuration>
317             </plugin>
318
319
320             <!-- goals without lifecycle -->
321
322             <plugin>
323                 <groupId>org.apache.maven.plugins</groupId>
324                 <artifactId>maven-assembly-plugin</artifactId>
325                 <version>2.4</version>
326                 <configuration>
327                     <descriptors>
328                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
329                     </descriptors>
330                 </configuration>
331             </plugin>
332
333             <plugin>
334                 <groupId>org.apache.maven.plugins</groupId>
335                 <artifactId>maven-checkstyle-plugin</artifactId>
336                 <version>2.10</version>
337                 <!-- config from property value -->
338             </plugin>
339
340             <plugin>
341                 <groupId>org.apache.maven.plugins</groupId>
342                 <artifactId>maven-pmd-plugin</artifactId>
343                 <version>3.0.1</version>
344                 <configuration>
345                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
346                     <targetJdk>1.6</targetJdk>
347                     <rulesets>
348                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
349                     </rulesets>
350                 </configuration>
351             </plugin>
352
353             <plugin>
354                 <groupId>com.github.spotbugs</groupId>
355                 <artifactId>spotbugs-maven-plugin</artifactId>
356                 <version>${spotbugs-plugin.version}</version>
357             </plugin>
358
359         </plugins>
360
361         <resources>
362
363             <resource>
364                 <directory>src/main/resources</directory>
365                 <filtering>true</filtering>
366                 <includes>
367                     <include>**/version.properties</include>
368                 </includes>
369             </resource>
370
371             <resource>
372                 <directory>src/main/resources</directory>
373                 <includes>
374                     <include>**/*.txt</include>
375
376                     <include>**/*.properties</include>
377
378                     <include>**/*.xml</include>
379                     <include>**/*.xsd</include>
380                     <include>**/*.dtd</include>
381
382                     <include>**/*.html</include>
383                     <include>**/*.htm</include>
384                     <include>**/*.css</include>
385
386                     <include>**/*.png</include>
387                     <include>**/*.gif</include>
388                     <include>**/*.jpeg</include>
389                     <include>**/*.jpg</include>
390                 </includes>
391                 <excludes>
392                     <exclude>**/version.properties</exclude>
393
394                     <exclude>**/.DS_Store</exclude>
395                     <exclude>**/__MACOSX</exclude>
396                     <exclude>**/Thumbs.db</exclude>
397                     <exclude>**/thumbs.db</exclude>
398                     <exclude>**/Desktop.ini</exclude>
399                     <exclude>**/desktop.ini</exclude>
400                     <exclude>**/core</exclude>
401                 </excludes>
402             </resource>
403
404         </resources>
405
406     </build>
407
408     <reporting>
409
410         <plugins>
411
412             <plugin>
413                 <groupId>org.apache.maven.plugins</groupId>
414                 <artifactId>maven-project-info-reports-plugin</artifactId>
415                 <version>3.0.0</version>
416                 <configuration>
417                     <linkOnly>true</linkOnly>
418                     <offline>true</offline>
419                 </configuration>
420                 <reportSets>
421                     <reportSet>
422                         <reports>
423                             <report>index</report>
424                             <report>summary</report>
425                             <report>licenses</report>
426                             <report>dependency-info</report>
427                             <report>dependencies</report>
428                             <report>dependency-convergence</report>
429                             <report>plugins</report>
430                             <report>plugin-management</report>
431                             <report>team</report>
432                             <report>issue-management</report>
433                             <report>scm</report>
434 <!--
435                             <report>dependency-management</report>
436                             <report>distribution-management</report>
437                             <report>ci-management</report>
438                             <report>mailing-lists</report>
439                             <report>modules</report>
440 -->
441                         </reports>
442                     </reportSet>
443                 </reportSets>
444             </plugin>
445
446             <plugin>
447                 <groupId>org.apache.maven.plugins</groupId>
448                 <artifactId>maven-javadoc-plugin</artifactId>
449                 <version>2.9</version>
450                 <configuration>
451                     <skip>false</skip>
452                     <notimestamp>true</notimestamp>
453                     <quiet>true</quiet>
454                     <show>protected</show>
455                     <stylesheet>maven</stylesheet>
456                 </configuration>
457                 <reportSets>
458                     <reportSet>
459                         <reports>
460                             <report>javadoc</report>
461                         </reports>
462                     </reportSet>
463                 </reportSets>
464             </plugin>
465
466             <plugin>
467                 <groupId>org.apache.maven.plugins</groupId>
468                 <artifactId>maven-jxr-plugin</artifactId>
469                 <version>2.3</version>
470                 <configuration>
471                     <skip>false</skip>
472                 </configuration>
473             </plugin>
474
475             <plugin>
476                 <groupId>org.apache.maven.plugins</groupId>
477                 <artifactId>maven-surefire-report-plugin</artifactId>
478                 <version>2.14.1</version>
479                 <configuration>
480                     <showSuccess>false</showSuccess>
481                 </configuration>
482                 <reportSets>
483                     <reportSet>
484                         <reports>
485                             <report>report-only</report>
486                         </reports>
487                     </reportSet>
488                 </reportSets>
489             </plugin>
490
491             <plugin>
492                 <groupId>org.jacoco</groupId>
493                 <artifactId>jacoco-maven-plugin</artifactId>
494                 <version>${jacoco-plugin.version}</version>
495                 <reportSets>
496                     <reportSet>
497                         <reports>
498                             <report>report</report>
499                         </reports>
500                     </reportSet>
501                 </reportSets>
502             </plugin>
503
504             <plugin>
505                 <groupId>org.apache.maven.plugins</groupId>
506                 <artifactId>maven-checkstyle-plugin</artifactId>
507                 <version>2.10</version>
508                 <configuration>
509                     <skip>false</skip>
510                     <!-- config from property value -->
511                 </configuration>
512                 <reportSets>
513                     <reportSet>
514                         <reports>
515                             <report>checkstyle</report>
516                         </reports>
517                     </reportSet>
518                 </reportSets>
519             </plugin>
520
521             <plugin>
522                 <groupId>org.apache.maven.plugins</groupId>
523                 <artifactId>maven-pmd-plugin</artifactId>
524                 <version>3.0.1</version>
525                 <configuration>
526                     <skip>false</skip>
527                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
528                     <targetJdk>1.6</targetJdk>
529                     <rulesets>
530                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
531                     </rulesets>
532                 </configuration>
533                 <reportSets>
534                     <reportSet>
535                         <reports>
536                             <report>pmd</report>
537                             <report>cpd</report>
538                         </reports>
539                     </reportSet>
540                 </reportSets>
541             </plugin>
542
543             <plugin>
544                 <groupId>com.github.spotbugs</groupId>
545                 <artifactId>spotbugs-maven-plugin</artifactId>
546                 <version>${spotbugs-plugin.version}</version>
547             </plugin>
548
549         </plugins>
550
551     </reporting>
552
553     <profiles/>
554
555 </project>
556
557 <!-- EOF -->