Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 1 | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | |
| 5 | <name>openecomp-sdc-docker-backend</name> |
| 6 | <groupId>org.openecomp.sdc</groupId> |
| 7 | <artifactId>openecomp-sdc-docker-backend</artifactId> |
| 8 | <packaging>pom</packaging> |
| 9 | |
| 10 | <url>http://maven.apache.org</url> |
| 11 | |
| 12 | <parent> |
| 13 | <groupId>org.openecomp.sdc</groupId> |
| 14 | <artifactId>openecomp-sdc-docker-dist</artifactId> |
Ofir Sonsino | 610ff24 | 2019-07-28 15:44:36 +0300 | [diff] [blame] | 15 | <version>1.5.1-SNAPSHOT</version> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 16 | </parent> |
| 17 | |
| 18 | |
| 19 | <properties> |
| 20 | <docker.image.name>sdc-onboard-backend</docker.image.name> |
| 21 | </properties> |
| 22 | <build> |
| 23 | <plugins> |
| 24 | <plugin> |
Michael Lando | 5c9769c | 2018-08-20 01:27:45 +0300 | [diff] [blame] | 25 | <groupId>org.apache.maven.plugins</groupId> |
| 26 | <artifactId>maven-clean-plugin</artifactId> |
| 27 | <executions> |
| 28 | <execution> |
| 29 | <id>clean files</id> |
| 30 | <phase>clean</phase> |
| 31 | <goals> |
| 32 | <goal>clean</goal> |
| 33 | </goals> |
| 34 | <configuration> |
| 35 | <filesets> |
| 36 | <fileset> |
| 37 | <directory>${project.basedir}/artifacts/</directory> |
| 38 | <followSymlinks>false</followSymlinks> |
| 39 | <includes> |
| 40 | <include>*.war</include> |
| 41 | <include>onboarding_configuration.yaml</include> |
| 42 | <include>logback.xml</include> |
| 43 | </includes> |
| 44 | </fileset> |
| 45 | </filesets> |
| 46 | </configuration> |
| 47 | </execution> |
| 48 | </executions> |
| 49 | </plugin> |
| 50 | |
| 51 | <plugin> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 52 | <artifactId>maven-resources-plugin</artifactId> |
| 53 | <version>3.0.2</version> |
| 54 | <executions> |
| 55 | <execution> |
| 56 | <id>copy-resources-war</id> |
| 57 | <phase>verify</phase> |
| 58 | <goals> |
| 59 | <goal>copy-resources</goal> |
| 60 | </goals> |
| 61 | <configuration> |
| 62 | <outputDirectory>${project.basedir}/artifacts</outputDirectory> |
| 63 | <resources> |
| 64 | <resource> |
| 65 | <directory> |
Areli, Fuss (af732p) | c033cdc | 2018-04-24 13:59:00 +0300 | [diff] [blame] | 66 | ${project.parent.basedir}/../../openecomp-be/tools/swagger-ui/target/api-docs |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 67 | </directory> |
| 68 | <includes> |
| 69 | <include>api-docs.war</include> |
| 70 | </includes> |
| 71 | </resource> |
| 72 | <resource> |
| 73 | <directory> |
| 74 | ${project.parent.basedir}/../../openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target |
| 75 | </directory> |
| 76 | <includes> |
| 77 | <include>onboarding-be-${project.version}.war</include> |
| 78 | </includes> |
| 79 | </resource> |
| 80 | <resource> |
| 81 | <directory> |
| 82 | ${project.parent.basedir}/../../openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/resources |
| 83 | </directory> |
| 84 | <includes> |
| 85 | <include>onboarding_configuration.yaml</include> |
| 86 | </includes> |
| 87 | </resource> |
| 88 | <resource> |
| 89 | <directory> |
| 90 | ${project.parent.basedir}/../../catalog-be/src/main/resources/config |
| 91 | </directory> |
| 92 | <includes> |
| 93 | <include>logback.xml</include> |
| 94 | </includes> |
| 95 | </resource> |
| 96 | </resources> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | </executions> |
| 100 | </plugin> |
| 101 | <plugin> |
| 102 | <groupId>io.fabric8</groupId> |
| 103 | <artifactId>docker-maven-plugin</artifactId> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 104 | <configuration> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 105 | <apiVersion>1.23</apiVersion> |
| 106 | <registry>nexus3.onap.org:10001</registry> |
| 107 | <authConfig> |
| 108 | <pull> |
| 109 | <username>docker</username> |
| 110 | <password>docker</password> |
| 111 | </pull> |
| 112 | </authConfig> |
| 113 | <images> |
| 114 | |
| 115 | <!-- Build backend image --> |
| 116 | <image> |
| 117 | <name>onap/${docker.image.name}</name> |
| 118 | <alias>${docker.image.name}</alias> |
| 119 | <build> |
| 120 | <cleanup>try</cleanup> |
| 121 | <dockerFileDir>${project.basedir}/artifacts</dockerFileDir> |
| 122 | <tags> |
| 123 | <tag>${docker.tag}</tag> |
| 124 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 125 | </tags> |
| 126 | </build> |
| 127 | </image> |
| 128 | </images> |
| 129 | </configuration> |
| 130 | <executions> |
| 131 | <execution> |
| 132 | <id>clean-images</id> |
| 133 | <phase>pre-clean</phase> |
| 134 | <goals> |
| 135 | <goal>remove</goal> |
| 136 | </goals> |
| 137 | <configuration> |
| 138 | <removeAll>true</removeAll> |
| 139 | <image>onap/${docker.image.name}</image> |
| 140 | </configuration> |
| 141 | </execution> |
| 142 | |
| 143 | <execution> |
| 144 | <id>generate-images</id> |
| 145 | <phase>install</phase> |
| 146 | <goals> |
| 147 | <goal>build</goal> |
| 148 | </goals> |
| 149 | </execution> |
| 150 | |
| 151 | <execution> |
| 152 | <id>push-images</id> |
| 153 | <phase>deploy</phase> |
| 154 | <goals> |
| 155 | <goal>push</goal> |
| 156 | </goals> |
| 157 | <configuration> |
| 158 | <image>onap/${docker.image.name}</image> |
| 159 | </configuration> |
| 160 | </execution> |
| 161 | </executions> |
| 162 | </plugin> |
| 163 | </plugins> |
| 164 | </build> |
| 165 | </project> |