1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
\r
3 <modelVersion>4.0.0</modelVersion>
\r
5 <groupId>jp.seraphyware.charactermanaj</groupId>
\r
6 <artifactId>CharacterManaJ</artifactId>
\r
7 <version>0.9.9.8</version>
\r
9 <url>https://osdn.net/projects/charactermanaj/</url>
\r
12 <appname>CharacterManaJ</appname>
\r
13 <exename>${appname}.exe</exename>
\r
14 <email>seraphy@users.osdn.me</email>
\r
15 <mainClass>charactermanaj.CharacterManaJ</mainClass>
\r
16 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
\r
17 <maven.compiler.source>1.5</maven.compiler.source>
\r
18 <maven.compiler.target>1.5</maven.compiler.target>
\r
19 <animalSnifferArtifact>java15</animalSnifferArtifact>
\r
20 <animalSnifferArtifactVersion>1.0</animalSnifferArtifactVersion>
\r
21 <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>
\r
25 <!-- https://mvnrepository.com/artifact/com.apple/AppleJavaExtensions -->
\r
27 <groupId>com.apple</groupId>
\r
28 <artifactId>AppleJavaExtensions</artifactId>
\r
29 <version>1.4</version>
\r
30 <scope>provided</scope>
\r
35 <groupId>junit</groupId>
\r
36 <artifactId>junit</artifactId>
\r
37 <version>4.11</version>
\r
45 <!-- コンパイラープラグイン -->
\r
46 <groupId>org.apache.maven.plugins</groupId>
\r
47 <artifactId>maven-compiler-plugin</artifactId>
\r
48 <version>3.1</version>
\r
50 <source>${maven.compiler.source}</source>
\r
51 <target>${maven.compiler.target}</target>
\r
52 <compilerArgument>-Xlint:all</compilerArgument>
\r
57 <groupId>org.codehaus.mojo</groupId>
\r
58 <artifactId>animal-sniffer-maven-plugin</artifactId>
\r
59 <version>1.16</version>
\r
62 <groupId>org.codehaus.mojo.signature</groupId>
\r
63 <artifactId>${animalSnifferArtifact}</artifactId>
\r
64 <version>${animalSnifferArtifactVersion}</version>
\r
66 <ignoreDependencies>true</ignoreDependencies>
\r
70 <id>check-java-api</id>
\r
79 <!-- 実行可能jar本体のパッケージを行う (package時) -->
\r
80 <groupId>org.apache.maven.plugins</groupId>
\r
81 <artifactId>maven-jar-plugin</artifactId>
\r
82 <version>2.6</version>
\r
84 <finalName>${project.artifactId}</finalName>
\r
87 <mainClass>${mainClass}</mainClass>
\r
88 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
\r
89 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
\r
92 <!-- 起動時のスプラッシュ画像 -->
\r
93 <SplashScreen-Image>splash.png</SplashScreen-Image>
\r
94 <Built-By>${email}</Built-By>
\r
95 <Build-At>${maven.build.timestamp}</Build-At>
\r
96 <Implementation-Vendor><![CDATA[Copyright (C) 2010 ${email}]]></Implementation-Vendor>
\r
106 <!-- Windowsの場合のビルド -->
\r
107 <id>windows-profile</id>
\r
110 <family>windows</family>
\r
114 <jre.dir>${java.home}</jre.dir>
\r
119 <!-- Launch4jによるjarファイルのexe化を行う. http://launch4j.sourceforge.net/docs.html -->
\r
120 <groupId>org.bluestemsoftware.open.maven.plugin</groupId>
\r
121 <artifactId>launch4j-plugin</artifactId>
\r
122 <version>1.5.0.0</version>
\r
126 <phase>package</phase>
\r
128 <goal>launch4j</goal>
\r
131 <headerType>gui</headerType>
\r
132 <outfile>target/${exename}</outfile>
\r
133 <jar>target/${project.artifactId}.jar</jar>
\r
134 <errTitle>Failed to execute the ${project.artifactId}</errTitle>
\r
135 <icon>icon.ico</icon>
\r
138 <minVersion>1.5.0</minVersion>
\r
139 <initialHeapSize>64</initialHeapSize>
\r
140 <maxHeapSize>128</maxHeapSize>
\r
143 <fileVersion>${project.version}</fileVersion>
\r
144 <txtFileVersion>${project.version}</txtFileVersion>
\r
145 <fileDescription>${appname}</fileDescription>
\r
146 <copyright>${maven.build.timestamp} ${email}</copyright>
\r
147 <productVersion>${project.version}</productVersion>
\r
148 <txtProductVersion>${project.version}</txtProductVersion>
\r
149 <productName>${appname}</productName>
\r
150 <internalName>${appname}</internalName>
\r
151 <originalFilename>${exename}</originalFilename>
\r
158 <groupId>org.apache.maven.plugins</groupId>
\r
159 <artifactId>maven-assembly-plugin</artifactId>
\r
160 <version>2.6</version>
\r
163 <!-- JREつきの配布用zipを生成する -->
\r
164 <id>create-distribution-with-jre</id>
\r
165 <phase>package</phase>
\r
167 <goal>single</goal>
\r
170 <finalName>${appname}_${project.version}_with_JRE.zip</finalName>
\r
171 <appendAssemblyId>false</appendAssemblyId>
\r
173 <descriptor>src/main/assembly/charactermanaj_with_jre_zip.xml</descriptor>
\r
178 <!-- JRE無しの配布用zipを生成する -->
\r
179 <id>create-distribution</id>
\r
180 <phase>package</phase>
\r
182 <goal>single</goal>
\r
185 <finalName>${appname}_${project.version}.zip</finalName>
\r
186 <appendAssemblyId>false</appendAssemblyId>
\r
188 <descriptor>src/main/assembly/charactermanaj_zip.xml</descriptor>
\r
199 <!-- MAC OSXの場合のビルド -->
\r
200 <id>osx-profile</id>
\r
203 <family>mac</family>
\r
209 <!-- 生成されたjarをdistフォルダにコピーする-->
\r
210 <artifactId>maven-resources-plugin</artifactId>
\r
211 <version>2.7</version>
\r
215 <phase>package</phase>
\r
217 <goal>copy-resources</goal>
\r
220 <outputDirectory>${basedir}/dist</outputDirectory>
\r
223 <directory>${basedir}/target</directory>
\r
225 <include>${project.artifactId}.jar</include>
\r
227 <filtering>false</filtering>
\r
230 <directory>src/main/attachment</directory>
\r
232 <include>charactermanaj.l4j.ini</include>
\r
233 <include>README_mac.txt</include>
\r
235 <filtering>false</filtering>
\r
243 <!-- 配布用dmg作成のためのシェルの呼び出し -->
\r
244 <groupId>org.codehaus.mojo</groupId>
\r
245 <artifactId>exec-maven-plugin</artifactId>
\r
246 <version>1.6.0</version>
\r
250 <phase>package</phase>
\r
255 <executable>sh</executable>
\r
256 <workingDirectory>${basedir}/dist</workingDirectory>
\r
257 <commandlineArgs>-c 'chmod +x *.sh;./build_all.sh'</commandlineArgs>
\r