[LIB-9] Add ability to archive qrcode content
[chesshog.git] / pom.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2018. Developed by Hedgecode.
5   ~
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   -->
18
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23
24     <modules>
25         <module>chesshog-core</module>
26         <module>chesshog-format</module>
27         <module>chesshog-uci</module>
28         <module>chesshog-graphics</module>
29         <module>chesshog-hedgefish</module>
30         <module>chesshog-dbetude</module>
31         <module>chesshog-qrcode</module>
32     </modules>
33
34     <parent>
35         <groupId>org.hedgecode.maven</groupId>
36         <artifactId>lib-parent</artifactId>
37         <version>2</version>
38         <relativePath>../lib-parent/pom.xml</relativePath>
39     </parent>
40
41     <groupId>org.hedgecode.chess</groupId>
42     <artifactId>chesshog</artifactId>
43     <version>0.1-SNAPSHOT</version>
44     <packaging>pom</packaging>
45
46     <name>Hedgecode ChessHog</name>
47     <description>
48         Hedgecode ChessHog.
49     </description>
50     <inceptionYear>2018</inceptionYear>
51
52     <url>https://lib.hedgecode.org/${project.artifactId}/</url>
53
54     <scm>
55         <connection>scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</connection>
56         <developerConnection>scm:svn:https://svn.hedgecode.org/lib/${project.artifactId}/trunk/</developerConnection>
57         <url>http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</url>
58     </scm>
59
60     <issueManagement>
61         <system>JIRA</system>
62         <url>https://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId}</url>
63     </issueManagement>
64
65     <distributionManagement>
66         <site>
67             <id>hedgecode.website</id>
68             <name>Hedgecode Libs Website</name>
69             <url>dav:https://hedgecode.org/libs/${project.artifactId}/</url>
70         </site>
71     </distributionManagement>
72
73     <properties>
74         <chessHogVersion>0.1-SNAPSHOT</chessHogVersion>
75         <junitVersion>4.12</junitVersion>
76         <commonsConfigVersion>1.10</commonsConfigVersion>
77         <commonsCollectionVersion>3.2.1</commonsCollectionVersion>
78         <mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
79         <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
80         <issueComponentId>10030</issueComponentId>
81         <issueNumber>9</issueNumber>
82     </properties>
83
84     <dependencies>
85         <dependency>
86             <groupId>junit</groupId>
87             <artifactId>junit</artifactId>
88             <version>${junitVersion}</version>
89             <scope>test</scope>
90         </dependency>
91         <dependency>
92             <groupId>commons-configuration</groupId>
93             <artifactId>commons-configuration</artifactId>
94             <version>${commonsConfigVersion}</version>
95             <scope>test</scope>
96         </dependency>
97         <dependency>
98             <groupId>commons-collections</groupId>
99             <artifactId>commons-collections</artifactId>
100             <version>${commonsCollectionVersion}</version>
101             <scope>test</scope>
102         </dependency>
103     </dependencies>
104
105     <build>
106         <plugins>
107             <plugin>
108                 <groupId>org.apache.maven.plugins</groupId>
109                 <artifactId>maven-dependency-plugin</artifactId>
110                 <version>${mavenDependencyPluginVersion}</version>
111                 <executions>
112                     <execution>
113                         <id>copy-dependencies</id>
114                         <phase>prepare-package</phase>
115                         <goals>
116                             <goal>copy-dependencies</goal>
117                         </goals>
118                         <configuration>
119                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
120                             <overWriteReleases>false</overWriteReleases>
121                             <overWriteSnapshots>false</overWriteSnapshots>
122                             <overWriteIfNewer>true</overWriteIfNewer>
123                         </configuration>
124                     </execution>
125                 </executions>
126             </plugin>
127             <plugin>
128                 <groupId>org.apache.maven.plugins</groupId>
129                 <artifactId>maven-jar-plugin</artifactId>
130                 <version>${mavenJarPluginVersion}</version>
131                 <configuration>
132                     <archive>
133                         <manifest>
134                             <addClasspath>true</addClasspath>
135                             <classpathPrefix>lib/</classpathPrefix>
136                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
137                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
138                             <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
139                         </manifest>
140                         <manifestEntries>
141                             <Implementation-Title>${project.artifactId}</Implementation-Title>
142                         </manifestEntries>
143                     </archive>
144                 </configuration>
145             </plugin>
146             <plugin>
147                 <groupId>org.apache.maven.plugins</groupId>
148                 <artifactId>maven-release-plugin</artifactId>
149                 <version>${mavenReleasePluginVersion}</version>
150                 <configuration>
151                     <tagBase>https://svn.hedgecode.org/lib/${project.artifactId}/tags</tagBase>
152                     <branchBase>https://svn.hedgecode.org/lib/${project.artifactId}/branches</branchBase>
153                     <preparationGoals>clean install</preparationGoals>
154                     <goals>deploy</goals>
155                     <releaseProfiles>release</releaseProfiles>
156                     <scmCommentPrefix xml:space="preserve">[${issueKey}-${issueNumber}] </scmCommentPrefix>
157                 </configuration>
158             </plugin>
159         </plugins>
160     </build>
161
162     <reporting>
163         <plugins>
164             <plugin>
165                 <groupId>org.apache.maven.plugins</groupId>
166                 <artifactId>maven-project-info-reports-plugin</artifactId>
167                 <version>${mavenReportsPluginVersion}</version>
168                 <configuration>
169                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
170                 </configuration>
171                 <reportSets>
172                     <reportSet>
173                         <reports>
174                             <report>index</report>
175                             <report>summary</report>
176                             <report>dependency-info</report>
177                             <report>project-team</report>
178                             <report>scm</report>
179                             <report>dependency-management</report>
180                             <report>dependencies</report>
181                             <report>plugin-management</report>
182                             <report>plugins</report>
183                             <report>distribution-management</report>
184                         </reports>
185                     </reportSet>
186                 </reportSets>
187             </plugin>
188         </plugins>
189     </reporting>
190
191     <profiles>
192         <profile>
193             <id>jar-with-dependencies</id>
194             <build>
195                 <plugins>
196                     <plugin>
197                         <groupId>org.apache.maven.plugins</groupId>
198                         <artifactId>maven-assembly-plugin</artifactId>
199                         <version>${mavenAssemblyPluginVersion}</version>
200                         <configuration>
201                             <archive>
202                                 <manifest>
203                                     <addClasspath>true</addClasspath>
204                                     <classpathPrefix>lib/</classpathPrefix>
205                                     <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
206                                     <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
207                                     <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
208                                 </manifest>
209                                 <manifestEntries>
210                                     <Implementation-Title>${project.artifactId}</Implementation-Title>
211                                 </manifestEntries>
212                             </archive>
213                             <descriptorRefs>
214                                 <descriptorRef>jar-with-dependencies</descriptorRef>
215                             </descriptorRefs>
216                         </configuration>
217                         <executions>
218                             <execution>
219                                 <id>make-assembly</id>
220                                 <phase>package</phase>
221                                 <goals>
222                                     <goal>single</goal>
223                                 </goals>
224                             </execution>
225                         </executions>
226                     </plugin>
227                 </plugins>
228             </build>
229         </profile>
230         <profile>
231             <id>reporting</id>
232             <reporting>
233                 <plugins>
234                     <plugin>
235                         <groupId>org.apache.maven.plugins</groupId>
236                         <artifactId>maven-javadoc-plugin</artifactId>
237                         <configuration>
238                             <sourceFileExcludes>
239                                 <!--<exclude>org/hedgecode/chess/*.java</exclude>-->
240                             </sourceFileExcludes>
241                         </configuration>
242                     </plugin>
243                 </plugins>
244             </reporting>
245         </profile>
246     </profiles>
247
248 </project>