OSDN Git Service

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