-->
<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">
+ 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">
<parent>
<groupId>org.onap.holmes.rule-management</groupId>
<artifactId>holmes-rulemgt-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.1.0-SNAPSHOT</version>
</parent>
<artifactId>holmes-rulemgt-standalone</artifactId>
<name>holmes-rulemgt/holmes-rulemgt-standalone</name>
<packaging>pom</packaging>
+ <properties>
+ <holmes.rule.project.version>${project.version}</holmes.rule.project.version>
+ <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
+ <build.number>${maven.build.timestamp}</build.number>
+ </properties>
+
<build>
<plugins>
<plugin>
<exclude>Dockerfile</exclude>
</excludes>
</resource>
+ <resource>
+ <directory>../rulemgt/src/main/resources</directory>
+ <filtering>false</filtering>
+ </resource>
</resources>
<overwrite>true</overwrite>
</configuration>
<exclude>Dockerfile</exclude>
</excludes>
</resource>
+ <resource>
+ <directory>../rulemgt/src/main/resources</directory>
+ <filtering>false</filtering>
+ </resource>
</resources>
<overwrite>true</overwrite>
</configuration>
<overwrite>true</overwrite>
</configuration>
</execution>
+ <execution>
+ <id>copy-nginx-conf-file</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/version</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/assembly/</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>nginx.conf</include>
+ </includes>
+ </resource>
+ </resources>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
- <id>copy-jar-${linux64id}</id>
+ <id>copy-artifacts-${linux64id}</id>
<goals>
<goal>copy</goal>
</goals>
<outputDirectory>${linux64outputdir}</outputDirectory>
<destFileName>holmes-rulemgt.jar</destFileName>
</artifactItem>
+ <artifactItem>
+ <groupId>org.onap.holmes.rule-management</groupId>
+ <artifactId>holmes-rulemgt-frontend</artifactId>
+ <type>tar.gz</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>target/version</outputDirectory>
+ <destFileName>holmes-rulemgt-frontend-${project.version}.tar.gz</destFileName>
+ </artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
- <id>copy-jar-${win64id}</id>
+ <id>copy-artifacts-${win64id}</id>
<goals>
<goal>copy</goal>
</goals>
<outputDirectory>${win64outputdir}</outputDirectory>
<destFileName>holmes-rulemgt.jar</destFileName>
</artifactItem>
+ <artifactItem>
+ <groupId>org.onap.holmes.rule-management</groupId>
+ <artifactId>holmes-rulemgt-frontend</artifactId>
+ <type>tar.gz</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>target/version</outputDirectory>
+ <destFileName>holmes-rulemgt-frontend-${project.version}.tar.gz</destFileName>
+ </artifactItem>
</artifactItems>
</configuration>
</execution>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ println project.properties['holmes.rule.project.version'];
+ def versionArray;
+ if (project.properties['holmes.rule.project.version'] != null) {
+ versionArray = project.properties['holmes.rule.project.version'].split('-');
+ }
+
+ project.properties['project.docker.latesttag.version'] = versionArray[0] + "-STAGING-latest";
+
+ println 'New Tag for docker:' +
+ project.properties['project.docker.latesttag.version'];
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<dockerFileDir>${basedir}/target/version/</dockerFileDir>
<dockerFile>${basedir}/target/version/Dockerfile</dockerFile>
<tags>
- <tag>${project.version}-STAGING-latest</tag>
+ <tag>${project.version}</tag>
+ <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
+ <tag>${project.docker.latesttag.version}</tag>
</tags>
</build>
</image>
<artifactId>holmes-rulemgt</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.onap.holmes.rule-management</groupId>
+ <artifactId>holmes-rulemgt-frontend</artifactId>
+ <version>${project.version}</version>
+ <type>tar.gz</type>
+ </dependency>
</dependencies>
</project>