OSDN Git Service

[maven-release-plugin] prepare for next development iteration
[restamp/Restamp-gui.git] / pom.xml
1 <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">
2   <modelVersion>4.0.0</modelVersion>
3   <groupId>osm.surveyor</groupId>
4   <artifactId>ReStamp-gui</artifactId>
5   <version>3.5-SNAPSHOT</version>
6   <packaging>jar</packaging>
7   <scm>
8     <connection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/ReStamp-gui.git</connection>
9     <url>http://surveyor.mydns.jp/gitbucket/yuu/ReStamp-gui/wiki</url>
10     <developerConnection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/ReStamp-gui.git</developerConnection>
11     <tag>HEAD</tag>
12   </scm>
13   
14   <licenses>
15     <license>
16       <name>MIT License</name>
17       <url>http://www.opensource.org/licenses/mit-license.php</url>
18     </license>
19   </licenses>
20   <developers>
21     <developer>
22       <name>Yuu Hayashi</name>
23       <email>hayashi.yuu@gmail.com</email>
24       <organization>surveyor</organization>
25       <organizationUrl>http://surveyor.mydns.jp/</organizationUrl>
26     </developer>
27   </developers>
28
29   <properties>
30     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31     <java.version>1.8</java.version>
32     <maven.compiler.source>${java.version}</maven.compiler.source>
33     <maven.compiler.target>${java.version}</maven.compiler.target>
34   </properties>
35     
36   <!-- プロジェクトの名前、ロゴ、URL(右上) -->
37   <name>ReStamp-gui</name>
38   <url>http://surveyor.mydns.jp/gitbucket/yuu/Restamp-gui/wiki</url>
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   <repositories>
55     <repository>
56       <id>surveyor.haya4</id>
57       <name>Internal Release Repository</name>
58       <url>http://surveyor.mydns.jp/archiva/repository/haya4/</url>
59     </repository>
60   </repositories>
61
62   <dependencies>
63
64     <!-- restamp-core -->
65     <dependency>
66       <groupId>osm.surveyor</groupId>
67       <artifactId>ReStamp</artifactId>
68       <version>3.8.4</version>
69     </dependency>
70
71     <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-imaging -->
72     <dependency>
73         <groupId>org.apache.commons</groupId>
74         <artifactId>commons-imaging</artifactId>
75         <version>1.0-alpha1</version>
76     </dependency>
77
78     <!-- for JUnit test -->
79     <dependency>
80       <groupId>org.hamcrest</groupId>
81       <artifactId>hamcrest-core</artifactId>
82       <version>2.2</version>
83       <scope>test</scope>
84       <type>jar</type>
85     </dependency>
86     <dependency>
87       <groupId>junit</groupId>
88       <artifactId>junit</artifactId>
89       <version>4.12</version>
90       <scope>test</scope>
91       <type>jar</type>
92     </dependency>
93     <dependency>
94       <groupId>commons-codec</groupId>
95       <artifactId>commons-codec</artifactId>
96       <version>1.14</version>
97       <scope>test</scope>
98     </dependency>
99   </dependencies>
100
101   <build>
102     <defaultGoal>install</defaultGoal>
103     
104     <plugins>
105       <!-- 実行可能jarファイル用のプラグイン -->
106       <plugin>
107           <artifactId>maven-assembly-plugin</artifactId>
108           <version>3.2.0</version>
109           <configuration>
110               <descriptorRefs>
111                   <!-- 依存するリソースをすべてjarに同梱する -->
112                   <descriptorRef>jar-with-dependencies</descriptorRef>
113               </descriptorRefs>
114               <archive>
115                   <manifest>
116                       <mainClass>osm.surveyor.matchtime.gui.ReStamp</mainClass>
117                   </manifest>
118               </archive>
119           </configuration>
120           <executions>
121               <execution>
122                   <id>make-assembly</id> <!-- this is used for inheritance merges -->
123                   <phase>package</phase> <!-- bind to the packaging phase -->
124                   <goals>
125                       <goal>single</goal>
126                   </goals>
127               </execution>
128           </executions>
129       </plugin>
130
131       <plugin>
132         <groupId>org.apache.maven.plugins</groupId>
133         <artifactId>maven-site-plugin</artifactId>
134         <version>3.7.1</version>
135       </plugin>
136       <plugin>
137         <groupId>org.apache.maven.plugins</groupId>
138         <artifactId>maven-project-info-reports-plugin</artifactId>
139         <version>3.0.0</version>
140       </plugin>
141       <plugin>
142         <groupId>org.apache.maven.plugins</groupId>
143         <artifactId>maven-compiler-plugin</artifactId>
144         <version>3.8.1</version>
145         <configuration>
146           <source>${java.version}</source>
147           <target>${java.version}</target>
148         </configuration>
149       </plugin>
150       <plugin>
151         <groupId>org.apache.maven.plugins</groupId>
152         <artifactId>maven-resources-plugin</artifactId>
153         <version>3.1.0</version>
154         <configuration>
155           <encoding>UTF-8</encoding>
156         </configuration>
157       </plugin>
158       
159       <!-- mvn release:prepare -->
160       <plugin>
161         <groupId>org.apache.maven.plugins</groupId>
162         <artifactId>maven-release-plugin</artifactId>
163         <version>2.5.3</version>
164         <configuration>
165           <releaseProfiles>install</releaseProfiles>
166           <tagNameFormat>v@{project.version}</tagNameFormat>
167         </configuration>
168       </plugin>
169
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       <plugin>
181         <groupId>org.apache.maven.plugins</groupId>
182         <artifactId>maven-javadoc-plugin</artifactId>
183         <configuration>
184           <source>1.8</source>
185           <show>protected</show>
186           <encoding>UTF-8</encoding>
187           <docencoding>UTF-8</docencoding>
188           <charset>UTF-8</charset>
189         </configuration>
190       </plugin>
191       <plugin>
192         <groupId>org.codehaus.mojo</groupId>
193         <artifactId>cobertura-maven-plugin</artifactId>
194         <configuration>
195           <failOnViolation>true</failOnViolation>
196         </configuration>
197       </plugin>
198         </plugins>
199   </reporting>
200 </project>