Commit 82558546 authored by Holger Witsch's avatar Holger Witsch

retrieve pom.xml file from last version

parent f0f6d435
<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>fr.esrf.icat</groupId>
<artifactId>icat-super-pom</artifactId>
<version>1.8-SNAPSHOT</version>
</parent>
<artifactId>MetadataManager</artifactId>
<version>3.10</version>
<packaging>pom</packaging>
<name>Tango MetadataManager</name>
<scm>
<developerConnection>scm:git:git@gitlab.esrf.fr:icat/tango-metadata.git</developerConnection>
<connection>scm:git:http://gitlab.esrf.fr/icat/tango-metadata.git</connection>
<url>http://gitlab.esrf.fr/icat/tango-metadata.git</url>
<tag>HEAD</tag>
</scm>
<properties>
<python.root.folder>${project.build.directory}/python-archiver</python.root.folder>
<python.shade.folder>${project.build.directory}/python-shader</python.shade.folder>
<metadata.artifact>icat-ingest-metadata</metadata.artifact>
<metadata.version>1.6</metadata.version>
<stomp.package>stompest-2.1.4</stomp.package>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>prepare-package</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${python.root.folder}</outputDirectory>
<escapeString>\</escapeString>
<resources>
<resource>
<directory>src/main/python</directory>
<filtering>false</filtering>
<excludes><exclude>setup.py</exclude></excludes>
</resource>
<resource>
<directory>src/main/python</directory>
<filtering>true</filtering>
<includes><include>setup.py</include></includes>
</resource>
<resource>
<directory>${python.shade.folder}/${python.metadata.artifact}-${python.metadata.version}/${python.metadata.artifact}</directory>
<filtering>false</filtering>
<includes><include>*.py</include></includes>
<targetPath>${python.root.folder}/${python.package.name}/${python.metadata.artifact}</targetPath>
</resource>
<resource>
<directory>${python.shade.folder}/${stomp.package}/stompest</directory>
<filtering>false</filtering>
<includes><include>**</include></includes>
<targetPath>${python.root.folder}/${python.package.name}/stompest</targetPath>
</resource>
<resource>
<directory>${project.basedir}/src/main/scripts</directory>
<filtering>true</filtering>
<includes><include>**</include></includes>
<targetPath>${python.shade.folder}/scripts</targetPath>
</resource>
<resource>
<directory>${project.basedir}/src/main/scripts</directory>
<filtering>false</filtering>
<includes><include>**</include></includes>
<targetPath>scripts/</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>prepare</id>
<phase>compile</phase>
<configuration>
<target>
<untar src="${project.basedir}/src/assembly/${stomp.package}.tar.gz" dest="${python.shade.folder}" compression="gzip" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-python</id>
<phase>compile</phase>
<goals><goal>unpack</goal></goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>fr.esrf.icat</groupId>
<artifactId>${metadata.artifact}</artifactId>
<version>${metadata.version}</version>
<type>zip</type>
<classifier>python</classifier>
<overWrite>true</overWrite>
<outputDirectory>${python.shade.folder}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>${basedir}/src/assembly/distrib.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-python-distrib</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>pythonVersion</id>
<goals><goal>regex-property</goal></goals>
<phase>validate</phase>
<configuration>
<name>python.version</name>
<regex>-SNAPSHOT</regex>
<value>${project.version}</value>
<replacement>\.preview</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
<execution>
<id>pythonMetadataVersion</id>
<goals><goal>regex-property</goal></goals>
<phase>validate</phase>
<configuration>
<name>python.metadata.version</name>
<regex>-SNAPSHOT</regex>
<value>${metadata.version}</value>
<replacement>\.preview</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
<execution>
<id>pythonPackageName</id>
<goals><goal>regex-property</goal></goals>
<phase>validate</phase>
<configuration>
<name>python.package.name</name>
<regex>-</regex>
<value>${project.artifactId}</value>
<replacement>_</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
<execution>
<id>pythonMetadataArtifact</id>
<goals><goal>regex-property</goal></goals>
<phase>validate</phase>
<configuration>
<name>python.metadata.artifact</name>
<regex>-</regex>
<value>${metadata.artifact}</value>
<replacement>_</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
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