OSDN Git Service

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