Commit a2397dcf authored by Matija Obreza's avatar Matija Obreza
Browse files

Updated maven config for deployment to repositories

- Flatten pom
- Ignore release:prepare files
parent eab9a7dd
...@@ -3,3 +3,5 @@ target ...@@ -3,3 +3,5 @@ target
.classpath .classpath
effective.pom effective.pom
.flattened-pom.xml .flattened-pom.xml
pom.xml.releaseBackup
release.properties
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<groupId>org.genesys-pgr</groupId> <groupId>org.genesys-pgr</groupId>
<artifactId>glis-client-project</artifactId> <artifactId>glis-client-project</artifactId>
<version>1.2-SNAPSHOT</version> <version>1.2-SNAPSHOT</version>
<relativePath>..</relativePath> <relativePath>../</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-common</artifactId> <artifactId>glis-client-common</artifactId>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<groupId>org.genesys-pgr</groupId> <groupId>org.genesys-pgr</groupId>
<artifactId>glis-client-project</artifactId> <artifactId>glis-client-project</artifactId>
<version>1.1-SNAPSHOT</version> <version>1.1-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../parent</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-csharp</artifactId> <artifactId>glis-client-csharp</artifactId>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-jersey2</artifactId> <artifactId>glis-client-jersey2</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GLIS API client (jersey2)</name> <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> <description>API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with jersey2</description>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-okhttp-gson</artifactId> <artifactId>glis-client-okhttp-gson</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GLIS API client (okhttp-gson)</name> <name>GLIS API client (okhttp-gson)</name>
<url>https://gitlab.croptrust.org/genesys-pgr/glis-client</url> <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"> <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> <parent>
<groupId>org.genesys-pgr</groupId> <groupId>org.genesys-pgr</groupId>
<artifactId>glis-client-project</artifactId> <artifactId>glis-client-project</artifactId>
<version>1.2-SNAPSHOT</version> <version>1.2-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-parent</artifactId> <artifactId>glis-client-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>GLIS API client parent</name> <name>GLIS API client parent</name>
<description>Parent POM to build a module</description> <description>Parent POM to build a module</description>
<properties>
<skip.deploy.artifact>true</skip.deploy.artifact>
</properties>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
...@@ -75,32 +79,6 @@ ...@@ -75,32 +79,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </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> <!-- <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
</modules> </modules>
<properties> <properties>
<skip.deploy.artifact>true</skip.deploy.artifact>
<skipTests>true</skipTests> <skipTests>true</skipTests>
<java.version>1.8</java.version> <java.version>1.8</java.version>
...@@ -169,8 +170,36 @@ ...@@ -169,8 +170,36 @@
<version>2.5.3</version> <version>2.5.3</version>
<configuration> <configuration>
<pushChanges>false</pushChanges> <pushChanges>false</pushChanges>
<tagNameFormat>glis-client-@{project.version}</tagNameFormat>
</configuration> </configuration>
</plugin> </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> </plugins>
</build> </build>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-resteasy</artifactId> <artifactId>glis-client-resteasy</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GLIS API client (resteasy)</name> <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> <description>API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with RESTeasy</description>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-resttemplate</artifactId> <artifactId>glis-client-resttemplate</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GLIS API client (spring-resttemplate)</name> <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> <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