[LIB-9] Fix some pom.xml dependencies
[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-hedgefish</module>
29         <module>chesshog-dbetude</module>
30         <module>chesshog-qrcode</module>
31     </modules>
32
33     <parent>
34         <groupId>org.hedgecode.maven</groupId>
35         <artifactId>lib-parent</artifactId>
36         <version>2</version>
37         <relativePath>../lib-parent/pom.xml</relativePath>
38     </parent>
39
40     <groupId>org.hedgecode.chess</groupId>
41     <artifactId>chesshog</artifactId>
42     <version>0.1-SNAPSHOT</version>
43     <packaging>pom</packaging>
44
45     <name>Hedgecode ChessHog</name>
46     <description>
47         Hedgecode ChessHog.
48     </description>
49     <inceptionYear>2018</inceptionYear>
50
51     <url>https://lib.hedgecode.org/${project.artifactId}/</url>
52
53     <scm>
54         <connection>scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</connection>
55         <developerConnection>scm:svn:https://svn.hedgecode.org/lib/${project.artifactId}/trunk/</developerConnection>
56         <url>http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</url>
57     </scm>
58
59     <issueManagement>
60         <system>JIRA</system>
61         <url>https://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId}</url>
62     </issueManagement>
63
64     <distributionManagement>
65         <site>
66             <id>hedgecode.website</id>
67             <name>Hedgecode Libs Website</name>
68             <url>dav:https://hedgecode.org/libs/${project.artifactId}/</url>
69         </site>
70     </distributionManagement>
71
72     <properties>
73         <chessHogVersion>0.1-SNAPSHOT</chessHogVersion>
74         <junitVersion>4.12</junitVersion>
75         <commonsConfigVersion>1.10</commonsConfigVersion>
76         <commonsCollectionVersion>3.2.1</commonsCollectionVersion>
77         <mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
78         <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
79         <issueComponentId>10030</issueComponentId>
80         <issueNumber>9</issueNumber>
81     </properties>
82
83     <dependencies>
84         <dependency>
85             <groupId>junit</groupId>
86             <artifactId>junit</artifactId>
87             <version>${junitVersion}</version>
88             <scope>test</scope>
89         </dependency>
90         <dependency>
91             <groupId>commons-configuration</groupId>
92             <artifactId>commons-configuration</artifactId>
93             <version>${commonsConfigVersion}</version>
94             <scope>test</scope>
95         </dependency>
96         <dependency>
97             <groupId>commons-collections</groupId>
98             <artifactId>commons-collections</artifactId>
99             <version>${commonsCollectionVersion}</version>
100             <scope>test</scope>
101         </dependency>
102     </dependencies>
103
104     <build>
105         <plugins>
106             <plugin>
107                 <groupId>org.apache.maven.plugins</groupId>
108                 <artifactId>maven-dependency-plugin</artifactId>
109                 <version>${mavenDependencyPluginVersion}</version>
110                 <executions>
111                     <execution>
112                         <id>copy-dependencies</id>
113                         <phase>prepare-package</phase>
114                         <goals>
115                             <goal>copy-dependencies</goal>
116                         </goals>
117                         <configuration>
118                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
119                             <overWriteReleases>false</overWriteReleases>
120                             <overWriteSnapshots>false</overWriteSnapshots>
121                             <overWriteIfNewer>true</overWriteIfNewer>
122                         </configuration>
123                     </execution>
124                 </executions>
125             </plugin>
126             <plugin>
127                 <groupId>org.apache.maven.plugins</groupId>
128                 <artifactId>maven-jar-plugin</artifactId>
129                 <version>${mavenJarPluginVersion}</version>
130                 <configuration>
131                     <archive>
132                         <manifest>
133                             <addClasspath>true</addClasspath>
134                             <classpathPrefix>lib/</classpathPrefix>
135                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
136                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
137                             <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
138                         </manifest>
139                         <manifestEntries>
140                             <Implementation-Title>${project.artifactId}</Implementation-Title>
141                         </manifestEntries>
142                     </archive>
143                 </configuration>
144             </plugin>
145             <plugin>
146                 <groupId>org.apache.maven.plugins</groupId>
147                 <artifactId>maven-release-plugin</artifactId>
148                 <version>${mavenReleasePluginVersion}</version>
149                 <configuration>
150                     <tagBase>https://svn.hedgecode.org/lib/${project.artifactId}/tags</tagBase>
151                     <branchBase>https://svn.hedgecode.org/lib/${project.artifactId}/branches</branchBase>
152                     <preparationGoals>clean install</preparationGoals>
153                     <goals>deploy</goals>
154                     <releaseProfiles>release</releaseProfiles>
155                     <scmCommentPrefix xml:space="preserve">[${issueKey}-${issueNumber}] </scmCommentPrefix>
156                 </configuration>
157             </plugin>
158         </plugins>
159     </build>
160
161     <reporting>
162         <plugins>
163             <plugin>
164                 <groupId>org.apache.maven.plugins</groupId>
165                 <artifactId>maven-project-info-reports-plugin</artifactId>
166                 <version>${mavenReportsPluginVersion}</version>
167                 <configuration>
168                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
169                 </configuration>
170                 <reportSets>
171                     <reportSet>
172                         <reports>
173                             <report>index</report>
174                             <report>summary</report>
175                             <report>dependency-info</report>
176                             <report>project-team</report>
177                             <report>scm</report>
178                             <report>dependency-management</report>
179                             <report>dependencies</report>
180                             <report>plugin-management</report>
181                             <report>plugins</report>
182                             <report>distribution-management</report>
183                         </reports>
184                     </reportSet>
185                 </reportSets>
186             </plugin>
187         </plugins>
188     </reporting>
189
190     <profiles>
191         <profile>
192             <id>jar-with-dependencies</id>
193             <build>
194                 <plugins>
195                     <plugin>
196                         <groupId>org.apache.maven.plugins</groupId>
197                         <artifactId>maven-assembly-plugin</artifactId>
198                         <version>${mavenAssemblyPluginVersion}</version>
199                         <configuration>
200                             <archive>
201                                 <manifest>
202                                     <addClasspath>true</addClasspath>
203                                     <classpathPrefix>lib/</classpathPrefix>
204                                     <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
205                                     <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
206                                     <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
207                                 </manifest>
208                                 <manifestEntries>
209                                     <Implementation-Title>${project.artifactId}</Implementation-Title>
210                                 </manifestEntries>
211                             </archive>
212                             <descriptorRefs>
213                                 <descriptorRef>jar-with-dependencies</descriptorRef>
214                             </descriptorRefs>
215                         </configuration>
216                         <executions>
217                             <execution>
218                                 <id>make-assembly</id>
219                                 <phase>package</phase>
220                                 <goals>
221                                     <goal>single</goal>
222                                 </goals>
223                             </execution>
224                         </executions>
225                     </plugin>
226                 </plugins>
227             </build>
228         </profile>
229         <profile>
230             <id>reporting</id>
231             <reporting>
232                 <plugins>
233                     <plugin>
234                         <groupId>org.apache.maven.plugins</groupId>
235                         <artifactId>maven-javadoc-plugin</artifactId>
236                         <configuration>
237                             <sourceFileExcludes>
238                                 <!--<exclude>org/hedgecode/chess/*.java</exclude>-->
239                             </sourceFileExcludes>
240                         </configuration>
241                     </plugin>
242                 </plugins>
243             </reporting>
244         </profile>
245     </profiles>
246
247 </project>