OSDN Git Service

0.0.5-SNAPSHOT
[hayashilib/hayashi.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <groupId>haya4.tools</groupId>
5   <artifactId>hayashilib</artifactId>
6   <version>0.0.5-SNAPSHOT</version>
7   <name>hayashilib</name>
8   <description>file commands use by 'org.apache.commons'.</description>
9   <packaging>jar</packaging>
10   <scm>
11     <connection>scm:git:http://scm.osdn.net/gitroot/hayashilib/hayashi.git</connection>
12     <url>https://osdn.net/projects/hayashilib/simple/</url>
13     <developerConnection>scm:git:http://scm.osdn.net/gitroot/hayashilib/hayashi.git</developerConnection>
14     <tag>hayashilib-0.0.5</tag>
15   </scm>
16   
17   <licenses>
18     <license>
19       <name>MIT License</name>
20       <url>http://www.opensource.org/licenses/mit-license.php</url>
21     </license>
22   </licenses>
23   
24   <developers>
25     <developer>
26       <name>Yuu Hayashi</name>
27       <email>hayashi.yuu@gmail.com</email>
28       <organization>surveyor</organization>
29       <organizationUrl>http://surveyor.mydns.jp/</organizationUrl>
30     </developer>
31   </developers>
32   
33   <properties>
34     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35     <java.version>1.8</java.version>
36     <maven.compiler.source>${java.version}</maven.compiler.source>
37     <maven.compiler.target>${java.version}</maven.compiler.target>
38   </properties>
39
40   <!-- DEPLOY先の指定  mvn deploy -->
41   <distributionManagement>
42     <repository>
43       <id>surveyor.haya4</id>
44       <name>Internal Release Repository</name>
45       <url>http://surveyor.mydns.jp/archiva/repository/haya4/</url>
46     </repository>
47     <snapshotRepository>
48       <id>surveyor.snapshots</id>
49       <name>Archiva Managed Snapshot Repository</name>
50       <url>http://surveyor.mydns.jp/archiva/repository/snapshots/</url>
51     </snapshotRepository>
52   </distributionManagement>
53   
54   <dependencies>
55     <!-- https://mvnrepository.com/artifact/javax.mail/mail -->
56     <dependency>
57         <groupId>javax.mail</groupId>
58         <artifactId>mail</artifactId>
59         <version>1.4.7</version>
60     </dependency>
61
62     <!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->
63     <dependency>
64         <groupId>javax.servlet</groupId>
65         <artifactId>servlet-api</artifactId>
66         <version>2.5</version>
67         <scope>provided</scope>
68     </dependency>
69     
70     <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
71     <dependency>
72         <groupId>javax.json</groupId>
73         <artifactId>javax.json-api</artifactId>
74         <version>1.0</version>
75     </dependency>
76
77     <!-- for JUnit test -->
78     <dependency>
79       <groupId>org.hamcrest</groupId>
80       <artifactId>hamcrest-core</artifactId>
81       <version>2.2</version>
82       <scope>test</scope>
83       <type>jar</type>
84     </dependency>
85     <dependency>
86       <groupId>junit</groupId>
87       <artifactId>junit</artifactId>
88       <version>4.12</version>
89       <scope>test</scope>
90       <type>jar</type>
91     </dependency>
92   </dependencies>
93
94   <build>
95     <plugins>
96       <plugin>
97         <groupId>org.apache.maven.plugins</groupId>
98         <artifactId>maven-compiler-plugin</artifactId>
99         <version>3.8.1</version>
100         <configuration>
101           <source>${java.version}</source>
102           <target>${java.version}</target>
103         </configuration>
104       </plugin>
105     
106       <plugin>
107         <groupId>org.apache.maven.plugins</groupId>
108         <artifactId>maven-resources-plugin</artifactId>
109         <version>3.1.0</version>
110         <configuration>
111           <encoding>UTF-8</encoding>
112         </configuration>
113       </plugin>
114       
115       <plugin>
116         <groupId>org.apache.maven.plugins</groupId>
117         <artifactId>maven-surefire-plugin</artifactId>
118         <version>3.0.0-M3</version>
119         <configuration>
120           <systemPropertyVariables>
121             <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
122           </systemPropertyVariables>
123           <!-- ↓これがないとスタックトレースが出ない -->
124           <trimStackTrace>false</trimStackTrace>
125         </configuration>
126       </plugin>
127       
128       <plugin>
129         <groupId>org.jacoco</groupId>
130         <artifactId>jacoco-maven-plugin</artifactId>
131         <version>0.8.5</version>
132         <executions>
133           <execution>
134             <goals>
135               <goal>prepare-agent</goal>
136             </goals>
137           </execution>
138           <execution>
139             <id>default-report</id>
140             <goals>
141               <goal>report</goal>
142             </goals>
143           </execution>
144         </executions>
145       </plugin>
146
147       <!-- mvn site -->
148       <plugin>
149         <groupId>org.apache.maven.plugins</groupId>
150         <artifactId>maven-site-plugin</artifactId>
151         <version>3.7.1</version>
152         <configuration>
153           <locales>ja</locales>
154           <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
155           <outputEncoding>${site.encoding}</outputEncoding>
156         </configuration>
157       </plugin>
158
159     </plugins>
160   </build>
161   
162   <reporting>
163     <plugins>
164       <!--  UnitTest report to site -->
165       <plugin>
166         <groupId>org.apache.maven.plugins</groupId>
167         <artifactId>maven-surefire-report-plugin</artifactId>
168       </plugin>
169       
170       <!--  Javadoc report to site -->
171       <plugin>
172         <groupId>org.apache.maven.plugins</groupId>
173         <artifactId>maven-javadoc-plugin</artifactId>
174         <configuration>
175           <source>1.8</source>
176           <show>protected</show>
177           <encoding>UTF-8</encoding>
178           <docencoding>UTF-8</docencoding>
179           <charset>UTF-8</charset>
180         </configuration>
181       </plugin>
182
183       <!--  Coverage report to site -->
184       <plugin>
185         <groupId>org.jacoco</groupId>
186         <artifactId>jacoco-maven-plugin</artifactId>
187         <version>0.8.5</version>
188         <reportSets>
189           <reportSet>
190             <reports>
191               <report>report</report>
192             </reports>
193           </reportSet>
194         </reportSets>
195       </plugin>
196     </plugins>
197     
198   </reporting>
199 </project>