OSDN Git Service

move checkstyle config
[jindolf/JinParser.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.jindolf</groupId>
17     <artifactId>jinparser</artifactId>
18
19     <version>1.409.5-SNAPSHOT</version>
20
21     <packaging>jar</packaging>
22     <name>JinParser</name>
23
24     <description><!--
25 -->JinParserライブラリは、CGIゲーム「人狼BBS」のクライアント制作者向けに<!--
26 -->作られたJavaライブラリです。<!--
27  --></description>
28
29     <url>https://ja.osdn.net/projects/jindolf/devel/</url>
30     <inceptionYear>2009</inceptionYear>
31
32     <organization>
33         <name>Jindolf Partners</name>
34         <url>https://ja.osdn.net/projects/jindolf/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>Jindolf Partners</organization>
50             <organizationUrl>https://ja.osdn.net/projects/jindolf/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:hg:http://hg.osdn.net/view/jindolf/JinParser</connection>
67         <developerConnection>scm:hg:ssh://hg.osdn.net//hgroot/jindolf/JinParser</developerConnection>
68         <url>https://osdn.net/projects/jindolf/scm/hg/JinParser/</url>
69     </scm>
70
71     <issueManagement>
72         <system>OSDN.NET</system>
73         <url>https://ja.osdn.net/projects/jindolf/ticket/</url>
74     </issueManagement>
75
76     <ciManagement/>
77     <distributionManagement/>
78
79     <properties>
80         <maven.compiler.source>1.7</maven.compiler.source>
81         <maven.compiler.target>1.7</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         <site.locales>en</site.locales>
91         <javadoc.locale>en</javadoc.locale>
92         <findbugs.jvmArgs>-Duser.language=en</findbugs.jvmArgs>
93
94         <jacoco-plugin.version>0.8.0</jacoco-plugin.version>
95
96         <checkstyle-plugin.version>3.0.0</checkstyle-plugin.version>
97         <!-- checkstyleruntime.version>6.19</checkstyleruntime.version -->
98         <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
99         <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
100         <checkstyle.enable.rss>false</checkstyle.enable.rss>
101
102         <pmd-plugin.version>3.9.0</pmd-plugin.version>
103         <pmd.analysisCache>true</pmd.analysisCache>
104
105         <findbugs-plugin.version>3.0.5</findbugs-plugin.version>
106         <findbugs.effort>Max</findbugs.effort>
107         <findbugs.threshold>Low</findbugs.threshold>
108         <!-- for Jenkins -->
109         <findbugs.xmlOutput>true</findbugs.xmlOutput>
110
111     </properties>
112
113     <dependencyManagement/>
114
115     <dependencies>
116
117         <dependency>
118             <groupId>junit</groupId>
119             <artifactId>junit</artifactId>
120             <version>4.12</version>
121             <scope>test</scope>
122         </dependency>
123
124         <dependency>
125             <groupId>jp.sourceforge.jindolf</groupId>
126             <artifactId>jincore</artifactId>
127             <version>1.206.10</version>
128             <scope>compile</scope>
129         </dependency>
130
131     </dependencies>
132
133     <repositories/>
134     <pluginRepositories/>
135
136     <build>
137
138         <pluginManagement>
139
140             <plugins>
141
142                 <plugin>
143                     <groupId>org.apache.maven.plugins</groupId>
144                     <artifactId>maven-checkstyle-plugin</artifactId>
145                     <version>${checkstyle-plugin.version}</version>
146                     <dependencies>
147                         <!-- dependency>
148                             <groupId>com.puppycrawl.tools</groupId>
149                             <artifactId>checkstyle</artifactId>
150                             <artifactId>checkstyle-backport-jre6</artifactId>
151                             <version>${checkstyleruntime.version}</version>
152                         </dependency -->
153                     </dependencies>
154                 </plugin>
155
156             </plugins>
157
158         </pluginManagement>
159
160         <plugins>
161
162
163             <!-- clean lifecycle -->
164
165             <plugin>
166                 <groupId>org.apache.maven.plugins</groupId>
167                 <artifactId>maven-clean-plugin</artifactId>
168                 <version>3.0.0</version>
169                 <configuration>
170                     <filesets>
171                         <fileset>
172                             <directory>${project.basedir}</directory>
173                             <includes>
174                                 <include>**/*~</include>
175                                 <include>**/*.swp</include>
176                                 <include>**/*.DS_Store</include>
177                                 <include>**/._*</include>
178                                 <include>**/__MACOSX</include>
179                                 <include>**/Thumbs.db</include>
180                                 <include>**/desktop.ini</include>
181                                 <include>**/core</include>
182                                 <include>**/hs_err_pid*</include>
183                             </includes>
184                         </fileset>
185                     </filesets>
186                 </configuration>
187             </plugin>
188
189
190             <!-- default lifecycle -->
191
192             <plugin>
193                 <groupId>org.apache.maven.plugins</groupId>
194                 <artifactId>maven-enforcer-plugin</artifactId>
195                 <version>3.0.0-M1</version>
196                 <configuration>
197                     <rules>
198                         <requireMavenVersion>
199                             <version>[3.0.1,)</version>
200                         </requireMavenVersion>
201                         <requireJavaVersion>
202                             <version>[1.7,)</version>
203                         </requireJavaVersion>
204                     </rules>
205                 </configuration>
206             </plugin>
207
208             <plugin>
209                 <groupId>org.apache.maven.plugins</groupId>
210                 <artifactId>maven-resources-plugin</artifactId>
211                 <version>3.0.2</version>
212             </plugin>
213
214             <plugin>
215                 <groupId>org.apache.maven.plugins</groupId>
216                 <artifactId>maven-compiler-plugin</artifactId>
217                 <version>3.7.0</version>
218                 <configuration>
219                     <source>1.7</source>  <!-- for NetBeans IDE -->
220                     <target>1.7</target>
221                     <compilerArguments>
222                         <Xlint/>
223                     </compilerArguments>
224                     <showWarnings>true</showWarnings>
225                     <showDeprecation>true</showDeprecation>
226                 </configuration>
227             </plugin>
228
229             <plugin>
230                 <groupId>org.apache.maven.plugins</groupId>
231                 <artifactId>maven-surefire-plugin</artifactId>
232                 <version>2.21.0</version>
233                 <configuration>
234                     <enableAssertions>true</enableAssertions>
235                 </configuration>
236             </plugin>
237
238             <plugin>
239                 <groupId>org.jacoco</groupId>
240                 <artifactId>jacoco-maven-plugin</artifactId>
241                 <version>${jacoco-plugin.version}</version>
242                 <executions>
243                     <execution>
244                         <id>default-prepare-agent</id>
245                         <goals>
246                             <goal>prepare-agent</goal>
247                         </goals>
248                     </execution>
249                     <execution>
250                         <id>default-report</id>
251                         <phase>prepare-package</phase>
252                         <goals>
253                             <goal>report</goal>
254                         </goals>
255                     </execution>
256                     <execution>
257                         <id>default-check</id>
258                         <goals>
259                             <goal>check</goal>
260                         </goals>
261                         <configuration>
262                             <rules>
263                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
264                                     <element>BUNDLE</element>
265                                     <limits>
266                                         <limit implementation="org.jacoco.report.check.Limit">
267                                             <counter>COMPLEXITY</counter>
268                                             <value>COVEREDRATIO</value>
269                                             <minimum>0.0</minimum>
270                                         </limit>
271                                     </limits>
272                                 </rule>
273                             </rules>
274                         </configuration>
275                     </execution>
276                 </executions>
277             </plugin>
278
279             <plugin>
280                 <groupId>org.apache.maven.plugins</groupId>
281                 <artifactId>maven-jar-plugin</artifactId>
282                 <version>3.0.2</version>
283                 <configuration>
284                     <archive>
285                         <manifest>
286                             <addDefaultImplementationEntries>
287                                 true
288                             </addDefaultImplementationEntries>
289                         </manifest>
290                         <manifestEntries>
291                             <Built-By>${project.organization.name}</Built-By>
292                         </manifestEntries>
293                     </archive>
294                 </configuration>
295             </plugin>
296
297             <plugin>
298                 <groupId>org.apache.maven.plugins</groupId>
299                 <artifactId>maven-source-plugin</artifactId>
300                 <version>3.0.1</version>
301                 <configuration>
302                     <includePom>true</includePom>
303                     <archive>
304                         <manifestEntries>
305                             <Built-By>${project.organization.name}</Built-By>
306                         </manifestEntries>
307                     </archive>
308                 </configuration>
309                 <executions>
310                     <execution>
311                         <id>attach-sources</id>
312                         <phase>verify</phase>
313                         <goals>
314                           <goal>jar-no-fork</goal>
315                         </goals>
316                     </execution>
317                 </executions>
318             </plugin>
319
320             <plugin>
321                 <groupId>org.apache.maven.plugins</groupId>
322                 <artifactId>maven-install-plugin</artifactId>
323                 <version>2.5.2</version>
324             </plugin>
325
326             <plugin>
327                 <groupId>org.apache.maven.plugins</groupId>
328                 <artifactId>maven-deploy-plugin</artifactId>
329                 <version>2.8.2</version>
330             </plugin>
331
332
333             <!-- site lifecycle -->
334
335             <plugin>
336                 <groupId>org.apache.maven.plugins</groupId>
337                 <artifactId>maven-site-plugin</artifactId>
338                 <version>3.7</version>
339                 <configuration>
340                     <locales>${site.locales}</locales>
341                 </configuration>
342             </plugin>
343
344
345             <!-- goals without lifecycle -->
346
347             <plugin>
348                 <groupId>org.apache.maven.plugins</groupId>
349                 <artifactId>maven-assembly-plugin</artifactId>
350                 <version>3.1.0</version>
351                 <configuration>
352                     <descriptors>
353                         <descriptor>src/assembly/src.xml</descriptor>
354                     </descriptors>
355                 </configuration>
356             </plugin>
357
358             <plugin>
359                 <groupId>org.apache.maven.plugins</groupId>
360                 <artifactId>maven-checkstyle-plugin</artifactId>
361                 <version>${checkstyle-plugin.version}</version>
362             </plugin>
363
364         </plugins>
365
366         <resources>
367
368             <resource>
369                 <directory>src/main/resources</directory>
370                 <filtering>true</filtering>
371                 <includes>
372                     <include>**/version.properties</include>
373                 </includes>
374             </resource>
375
376             <resource>
377                 <directory>src/main/resources</directory>
378                 <includes>
379                     <include>**/*.txt</include>
380
381                     <include>**/*.properties</include>
382
383                     <include>**/*.xml</include>
384                     <include>**/*.xsd</include>
385                     <include>**/*.dtd</include>
386
387                     <include>**/*.html</include>
388                     <include>**/*.htm</include>
389                     <include>**/*.css</include>
390
391                     <include>**/*.png</include>
392                     <include>**/*.gif</include>
393                     <include>**/*.jpeg</include>
394                     <include>**/*.jpg</include>
395                 </includes>
396                 <excludes>
397                     <exclude>**/version.properties</exclude>
398
399                     <exclude>**/.DS_Store</exclude>
400                     <exclude>**/__MACOSX</exclude>
401                     <exclude>**/Thumbs.db</exclude>
402                     <exclude>**/thumbs.db</exclude>
403                     <exclude>**/Desktop.ini</exclude>
404                     <exclude>**/desktop.ini</exclude>
405                     <exclude>**/core</exclude>
406                 </excludes>
407             </resource>
408
409         </resources>
410
411     </build>
412
413     <reporting>
414
415         <plugins>
416
417             <plugin>
418                 <groupId>org.apache.maven.plugins</groupId>
419                 <artifactId>maven-project-info-reports-plugin</artifactId>
420                 <version>2.9</version>
421                 <configuration>
422                     <linkOnly>true</linkOnly>
423                     <offline>true</offline>
424                 </configuration>
425                 <reportSets>
426                     <reportSet>
427                         <reports>
428                             <report>index</report>
429                             <report>summary</report>
430                             <report>license</report>
431                             <report>dependency-info</report>
432                             <report>dependencies</report>
433                             <report>dependency-convergence</report>
434                             <report>plugins</report>
435                             <report>plugin-management</report>
436                             <report>project-team</report>
437                             <report>issue-tracking</report>
438                             <report>scm</report>
439 <!--
440                             <report>dependency-management</report>
441                             <report>distribution-management</report>
442                             <report>cim</report>
443                             <report>mailing-list</report>
444                             <report>modules</report>
445 -->
446                         </reports>
447                     </reportSet>
448                 </reportSets>
449             </plugin>
450
451             <plugin>
452                 <groupId>org.apache.maven.plugins</groupId>
453                 <artifactId>maven-javadoc-plugin</artifactId>
454                 <version>3.0.0</version>
455                 <configuration>
456                     <author>false</author>
457                     <notimestamp>true</notimestamp>
458                     <quiet>true</quiet>
459                     <show>protected</show>
460                     <locale>${javadoc.locale}</locale>
461                     <header>${project.name} ${project.version} API</header>
462                     <version>true</version>
463                 </configuration>
464                 <reportSets>
465                     <reportSet>
466                         <reports>
467                             <report>javadoc</report>
468                         </reports>
469                     </reportSet>
470                 </reportSets>
471             </plugin>
472
473             <plugin>
474                 <groupId>org.apache.maven.plugins</groupId>
475                 <artifactId>maven-jxr-plugin</artifactId>
476                 <version>2.5</version>
477             </plugin>
478
479             <plugin>
480                 <groupId>org.apache.maven.plugins</groupId>
481                 <artifactId>maven-surefire-report-plugin</artifactId>
482                 <version>2.21.0</version>
483             </plugin>
484
485             <plugin>
486                 <groupId>org.jacoco</groupId>
487                 <artifactId>jacoco-maven-plugin</artifactId>
488                 <version>${jacoco-plugin.version}</version>
489                 <reportSets>
490                     <reportSet>
491                         <reports>
492                             <report>report</report>
493                         </reports>
494                     </reportSet>
495                 </reportSets>
496             </plugin>
497
498             <plugin>
499                 <groupId>org.apache.maven.plugins</groupId>
500                 <artifactId>maven-checkstyle-plugin</artifactId>
501                 <version>${checkstyle-plugin.version}</version>
502                 <reportSets>
503                     <reportSet>
504                         <reports>
505                             <report>checkstyle</report>
506                         </reports>
507                     </reportSet>
508                 </reportSets>
509             </plugin>
510
511             <plugin>
512                 <groupId>org.apache.maven.plugins</groupId>
513                 <artifactId>maven-pmd-plugin</artifactId>
514                 <version>${pmd-plugin.version}</version>
515                 <configuration>
516                     <rulesets>
517                         <ruleset>${project.basedir}/pmdrules.xml</ruleset>
518                     </rulesets>
519                 </configuration>
520                 <reportSets>
521                     <reportSet>
522                         <reports>
523                             <report>pmd</report>
524                             <report>cpd</report>
525                         </reports>
526                     </reportSet>
527                 </reportSets>
528             </plugin>
529
530             <plugin>
531                 <groupId>org.codehaus.mojo</groupId>
532                 <artifactId>findbugs-maven-plugin</artifactId>
533                 <version>${findbugs-plugin.version}</version>
534             </plugin>
535
536         </plugins>
537
538     </reporting>
539
540     <profiles/>
541
542 </project>
543
544 <!-- EOF -->