[LIB-2] Add snooker-score-api POM file
authorgotty <gotty@fb0bcced-7025-49ed-a12f-f98bce993226>
Sat, 21 Jan 2017 01:57:43 +0000 (01:57 +0000)
committergotty <gotty@fb0bcced-7025-49ed-a12f-f98bce993226>
Sat, 21 Jan 2017 01:57:43 +0000 (01:57 +0000)
git-svn-id: https://svn.hedgecode.org/lib/snooker-score-api/trunk@99 fb0bcced-7025-49ed-a12f-f98bce993226

pom.xml [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..59baa73
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,208 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+  ~ Copyright (c) 2017. Developed by Hedgecode.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<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">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.hedgecode.maven</groupId>
+        <artifactId>maven-parent</artifactId>
+        <version>1</version>
+    </parent>
+
+    <groupId>org.hedgecode.snooker</groupId>
+    <artifactId>snooker-score-api</artifactId>
+    <version>0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>Hedgecode Snooker Score API</name>
+    <description>
+        Hedgecode Snooker Score is an API library for portal snooker.org,
+        which contains the results of snooker competitions and other snooker information.
+        The library provides a set of entity objects that can be used in client
+        applications (to inform about the results of snooker) developed in Java.
+    </description>
+    <inceptionYear>2017</inceptionYear>
+
+    <url>http://lib.hedgecode.org/${project.artifactId}/</url>
+
+    <scm>
+        <connection>scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</connection>
+        <developerConnection>scm:svn:https://svn.hedgecode.org/lib/${project.artifactId}/trunk/</developerConnection>
+        <url>http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</url>
+    </scm>
+
+    <issueManagement>
+        <system>JIRA</system>
+        <url>http://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId}</url>
+    </issueManagement>
+
+    <distributionManagement>
+        <site>
+            <id>hedgecode.website</id>
+            <name>Hedgecode Libs Website</name>
+            <url>dav:https://hedgecode.org/libs/${project.artifactId}/</url>
+        </site>
+    </distributionManagement>
+
+    <properties>
+        <javaVersion>8</javaVersion>
+        <maven.compiler.source>1.${javaVersion}</maven.compiler.source>
+        <maven.compiler.target>1.${javaVersion}</maven.compiler.target>
+        <gsonVersion>2.8.0</gsonVersion>
+        <junitVersion>4.8.2</junitVersion>
+        <mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
+        <mavenJarPluginVersion>2.5</mavenJarPluginVersion>
+        <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
+        <mavenReleasePluginVersion>2.5.3</mavenReleasePluginVersion>
+        <mavenPluginToolsVersion>3.4</mavenPluginToolsVersion>
+        <wagonWebDavVersion>2.7</wagonWebDavVersion>
+        <issueComponentId>10012</issueComponentId>
+        <issueKey>LIB</issueKey>
+        <issueNumber>2</issueNumber>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.google.code.gson</groupId>
+            <artifactId>gson</artifactId>
+            <version>${gsonVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junitVersion}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>${mavenDependencyPluginVersion}</version>
+                <executions>
+                    <execution>
+                        <id>copy-dependencies</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>copy-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
+                            <overWriteReleases>false</overWriteReleases>
+                            <overWriteSnapshots>false</overWriteSnapshots>
+                            <overWriteIfNewer>true</overWriteIfNewer>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>${mavenJarPluginVersion}</version>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <addClasspath>true</addClasspath>
+                            <classpathPrefix>lib/</classpathPrefix>
+                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+                            <mainClass>org.hedgecode.snooker.SnookerScoreApp</mainClass>
+                        </manifest>
+                        <manifestEntries>
+                            <Implementation-Title>${project.artifactId}</Implementation-Title>
+                        </manifestEntries>
+                    </archive>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-release-plugin</artifactId>
+                <version>${mavenReleasePluginVersion}</version>
+                <configuration>
+                    <tagBase>https://svn.hedgecode.org/lib/${project.artifactId}/tags</tagBase>
+                    <branchBase>https://svn.hedgecode.org/lib/${project.artifactId}/branches</branchBase>
+                    <preparationGoals>clean install</preparationGoals>
+                    <goals>deploy</goals>
+                    <releaseProfiles>release</releaseProfiles>
+                    <scmCommentPrefix xml:space="preserve">[${issueKey}-${issueNumber}] </scmCommentPrefix>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>${mavenPluginToolsVersion}</version>
+                <configuration>
+                    <locales>en,ru</locales>
+                </configuration>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.maven.wagon</groupId>
+                        <artifactId>wagon-webdav-jackrabbit</artifactId>
+                        <version>${wagonWebDavVersion}</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>jar-with-dependencies</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <version>${mavenAssemblyPluginVersion}</version>
+                        <configuration>
+                            <archive>
+                                <manifest>
+                                    <addClasspath>true</addClasspath>
+                                    <classpathPrefix>lib/</classpathPrefix>
+                                    <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+                                    <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+                                    <mainClass>org.hedgecode.snooker.SnookerScoreApp</mainClass>
+                                </manifest>
+                                <manifestEntries>
+                                    <Implementation-Title>${project.artifactId}</Implementation-Title>
+                                </manifestEntries>
+                            </archive>
+                            <descriptorRefs>
+                                <descriptorRef>jar-with-dependencies</descriptorRef>
+                            </descriptorRefs>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>make-assembly</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>single</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>