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.4-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   <dependencies>
55
56     <!-- restamp-core -->
57     <dependency>
58       <groupId>osm.surveyor</groupId>
59       <artifactId>ReStamp</artifactId>
60       <version>3.8.4</version>
61     </dependency>
62
63     <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-imaging -->
64     <dependency>
65         <groupId>org.apache.commons</groupId>
66         <artifactId>commons-imaging</artifactId>
67         <version>1.0-alpha1</version>
68     </dependency>
69
70     <!-- for JUnit test -->
71     <dependency>
72       <groupId>org.hamcrest</groupId>
73       <artifactId>hamcrest-core</artifactId>
74       <version>2.2</version>
75       <scope>test</scope>
76       <type>jar</type>
77     </dependency>
78     <dependency>
79       <groupId>junit</groupId>
80       <artifactId>junit</artifactId>
81       <version>4.12</version>
82       <scope>test</scope>
83       <type>jar</type>
84     </dependency>
85     <dependency>
86       <groupId>commons-codec</groupId>
87       <artifactId>commons-codec</artifactId>
88       <version>1.14</version>
89       <scope>test</scope>
90     </dependency>
91   </dependencies>
92
93   <build>
94     <defaultGoal>install</defaultGoal>
95     
96     <plugins>
97       <!-- 実行可能jarファイル用のプラグイン -->
98       <plugin>
99           <artifactId>maven-assembly-plugin</artifactId>
100           <version>3.2.0</version>
101           <configuration>
102               <descriptorRefs>
103                   <!-- 依存するリソースをすべてjarに同梱する -->
104                   <descriptorRef>jar-with-dependencies</descriptorRef>
105               </descriptorRefs>
106               <archive>
107                   <manifest>
108                       <mainClass>osm.surveyor.matchtime.gui.ReStamp</mainClass>
109                   </manifest>
110               </archive>
111           </configuration>
112           <executions>
113               <execution>
114                   <id>make-assembly</id> <!-- this is used for inheritance merges -->
115                   <phase>package</phase> <!-- bind to the packaging phase -->
116                   <goals>
117                       <goal>single</goal>
118                   </goals>
119               </execution>
120           </executions>
121       </plugin>
122
123       <plugin>
124         <groupId>org.apache.maven.plugins</groupId>
125         <artifactId>maven-site-plugin</artifactId>
126         <version>3.7.1</version>
127       </plugin>
128       <plugin>
129         <groupId>org.apache.maven.plugins</groupId>
130         <artifactId>maven-project-info-reports-plugin</artifactId>
131         <version>3.0.0</version>
132       </plugin>
133       <plugin>
134         <groupId>org.apache.maven.plugins</groupId>
135         <artifactId>maven-compiler-plugin</artifactId>
136         <version>3.8.1</version>
137         <configuration>
138           <source>${java.version}</source>
139           <target>${java.version}</target>
140         </configuration>
141       </plugin>
142       <plugin>
143         <groupId>org.apache.maven.plugins</groupId>
144         <artifactId>maven-resources-plugin</artifactId>
145         <version>3.1.0</version>
146         <configuration>
147           <encoding>UTF-8</encoding>
148         </configuration>
149       </plugin>
150       
151       <!-- mvn release:prepare -->
152       <plugin>
153         <groupId>org.apache.maven.plugins</groupId>
154         <artifactId>maven-release-plugin</artifactId>
155         <version>2.5.3</version>
156         <configuration>
157           <releaseProfiles>install</releaseProfiles>
158           <tagNameFormat>v@{project.version}</tagNameFormat>
159         </configuration>
160       </plugin>
161
162     </plugins>
163   </build>
164   
165   <reporting>
166         <plugins>
167       <!--  UnitTest report to site -->
168       <plugin>
169         <groupId>org.apache.maven.plugins</groupId>
170         <artifactId>maven-surefire-report-plugin</artifactId>
171       </plugin>
172       <plugin>
173         <groupId>org.apache.maven.plugins</groupId>
174         <artifactId>maven-javadoc-plugin</artifactId>
175         <configuration>
176           <source>1.8</source>
177           <show>protected</show>
178           <encoding>UTF-8</encoding>
179           <docencoding>UTF-8</docencoding>
180           <charset>UTF-8</charset>
181         </configuration>
182       </plugin>
183       <plugin>
184         <groupId>org.codehaus.mojo</groupId>
185         <artifactId>cobertura-maven-plugin</artifactId>
186         <configuration>
187           <failOnViolation>true</failOnViolation>
188         </configuration>
189       </plugin>
190         </plugins>
191   </reporting>
192 </project>