Commit a2397dcf authored by Matija Obreza's avatar Matija Obreza

Updated maven config for deployment to repositories

- Flatten pom
- Ignore release:prepare files
parent eab9a7dd
......@@ -3,3 +3,5 @@ target
.classpath
effective.pom
.flattened-pom.xml
pom.xml.releaseBackup
release.properties
......@@ -3,7 +3,7 @@
<groupId>org.genesys-pgr</groupId>
<artifactId>glis-client-project</artifactId>
<version>1.2-SNAPSHOT</version>
<relativePath>..</relativePath>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-common</artifactId>
......
......@@ -3,7 +3,7 @@
<groupId>org.genesys-pgr</groupId>
<artifactId>glis-client-project</artifactId>
<version>1.1-SNAPSHOT</version>
<relativePath>../..</relativePath>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-csharp</artifactId>
......
......@@ -7,7 +7,6 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-jersey2</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>GLIS API client (jersey2)</name>
<description>API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with jersey2</description>
......
......@@ -7,7 +7,6 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-okhttp-gson</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>GLIS API client (okhttp-gson)</name>
<url>https://gitlab.croptrust.org/genesys-pgr/glis-client</url>
......
<?xml version="1.0" encoding="UTF-8"?>
<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.genesys-pgr</groupId>
<artifactId>glis-client-project</artifactId>
<version>1.2-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-parent</artifactId>
<packaging>pom</packaging>
<name>GLIS API client parent</name>
<description>Parent POM to build a module</description>
<properties>
<skip.deploy.artifact>true</skip.deploy.artifact>
</properties>
<build>
<plugins>
<plugin>
......@@ -75,32 +79,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.0.1</version>
<configuration>
<flattenMode>ossrh</flattenMode>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- <plugin>
<artifactId>maven-resources-plugin</artifactId>
......
......@@ -50,6 +50,7 @@
</modules>
<properties>
<skip.deploy.artifact>true</skip.deploy.artifact>
<skipTests>true</skipTests>
<java.version>1.8</java.version>
......@@ -169,8 +170,36 @@
<version>2.5.3</version>
<configuration>
<pushChanges>false</pushChanges>
<tagNameFormat>glis-client-@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.0.1</version>
<configuration>
<flattenMode>ossrh</flattenMode>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
......@@ -7,7 +7,6 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-resteasy</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>GLIS API client (resteasy)</name>
<description>API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with RESTeasy</description>
......
......@@ -7,7 +7,6 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-resttemplate</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>GLIS API client (spring-resttemplate)</name>
<description>API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with Spring REST template</description>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment