Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ECOMP Policy Engine |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 20 | |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | |
| 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | |
| 26 | <parent> |
| 27 | <groupId>org.openecomp.policy.engine</groupId> |
| 28 | <artifactId>packages</artifactId> |
| 29 | <version>1.0.0-SNAPSHOT</version> |
| 30 | </parent> |
| 31 | |
| 32 | <groupId>org.openecomp.policy.engine</groupId> |
| 33 | <artifactId>base</artifactId> |
| 34 | <packaging>pom</packaging> |
| 35 | |
| 36 | <name>Base Package</name> |
| 37 | <description>D2 ECOMP Policy Base Packaging</description> |
| 38 | |
| 39 | <build> |
| 40 | <plugins> |
| 41 | <plugin> |
| 42 | <groupId>org.apache.maven.plugins</groupId> |
| 43 | <artifactId>maven-dependency-plugin</artifactId> |
| 44 | <executions> |
| 45 | <execution> |
| 46 | <id>copy-pypdp</id> |
| 47 | <phase>prepare-package</phase> |
| 48 | <goals> |
| 49 | <goal>copy</goal> |
| 50 | </goals> |
| 51 | <configuration> |
| 52 | <outputDirectory>${project.build.directory}/pypdp/webapps</outputDirectory> |
| 53 | <overWriteReleases>false</overWriteReleases> |
| 54 | <overWriteSnapshots>true</overWriteSnapshots> |
| 55 | <artifactItems> |
| 56 | <artifactItem> |
| 57 | <groupId>org.openecomp.policy.engine</groupId> |
| 58 | <artifactId>PyPDPServer</artifactId> |
| 59 | <version>${project.version}</version> |
| 60 | <type>war</type> |
| 61 | <destFileName>PyPDPServer.war</destFileName> |
| 62 | </artifactItem> |
| 63 | </artifactItems> |
| 64 | </configuration> |
| 65 | </execution> |
| 66 | <execution> |
| 67 | <id>copy-pdp</id> |
| 68 | <phase>prepare-package</phase> |
| 69 | <goals> |
| 70 | <goal>copy</goal> |
| 71 | </goals> |
| 72 | <configuration> |
| 73 | <outputDirectory>${project.build.directory}/pdp/webapps</outputDirectory> |
| 74 | <overWriteReleases>false</overWriteReleases> |
| 75 | <overWriteSnapshots>true</overWriteSnapshots> |
| 76 | <artifactItems> |
| 77 | <artifactItem> |
| 78 | <groupId>org.openecomp.policy.engine</groupId> |
| 79 | <artifactId>ECOMP-PDP-REST</artifactId> |
| 80 | <version>${project.version}</version> |
| 81 | <type>war</type> |
| 82 | <destFileName>pdp.war</destFileName> |
| 83 | </artifactItem> |
| 84 | </artifactItems> |
| 85 | </configuration> |
| 86 | </execution> |
| 87 | <execution> |
| 88 | <id>copy-pap</id> |
| 89 | <phase>prepare-package</phase> |
| 90 | <goals> |
| 91 | <goal>copy</goal> |
| 92 | </goals> |
| 93 | <configuration> |
| 94 | <outputDirectory>${project.build.directory}/pap/webapps</outputDirectory> |
| 95 | <overWriteReleases>false</overWriteReleases> |
| 96 | <overWriteSnapshots>true</overWriteSnapshots> |
| 97 | <artifactItems> |
| 98 | <artifactItem> |
| 99 | <groupId>org.openecomp.policy.engine</groupId> |
| 100 | <artifactId>ECOMP-PAP-REST</artifactId> |
| 101 | <version>${project.version}</version> |
| 102 | <type>war</type> |
| 103 | <destFileName>pap.war</destFileName> |
| 104 | </artifactItem> |
| 105 | </artifactItems> |
| 106 | </configuration> |
| 107 | </execution> |
| 108 | <execution> |
| 109 | <id>copy-ecomp</id> |
| 110 | <phase>prepare-package</phase> |
| 111 | <goals> |
| 112 | <goal>copy</goal> |
| 113 | </goals> |
| 114 | <configuration> |
| 115 | <outputDirectory>${project.build.directory}/console/webapps</outputDirectory> |
| 116 | <overWriteReleases>false</overWriteReleases> |
| 117 | <overWriteSnapshots>true</overWriteSnapshots> |
| 118 | <artifactItems> |
| 119 | <artifactItem> |
| 120 | <groupId>org.openecomp.policy.engine</groupId> |
| 121 | <artifactId>ecomp-sdk-app</artifactId> |
| 122 | <version>${project.version}</version> |
| 123 | <type>war</type> |
| 124 | <destFileName>ecomp.war</destFileName> |
| 125 | </artifactItem> |
| 126 | </artifactItems> |
| 127 | </configuration> |
| 128 | </execution> |
| 129 | <execution> |
| 130 | <id>copy-tomcat-binary</id> |
| 131 | <phase>prepare-package</phase> |
| 132 | <goals> |
| 133 | <goal>copy</goal> |
| 134 | </goals> |
| 135 | <configuration> |
| 136 | <outputDirectory>${project.build.directory}/install/3rdparty/</outputDirectory> |
| 137 | <overWriteReleases>false</overWriteReleases> |
| 138 | <overWriteSnapshots>true</overWriteSnapshots> |
| 139 | <artifactItems> |
| 140 | <artifactItem> |
| 141 | <groupId>org.apache.tomcat</groupId> |
| 142 | <artifactId>tomcat</artifactId> |
| 143 | <version>8.0.23</version> |
| 144 | <type>tar.gz</type> |
| 145 | <destFileName>apache-tomcat-8.0.23.tar.gz</destFileName> |
| 146 | </artifactItem> |
| 147 | </artifactItems> |
| 148 | </configuration> |
| 149 | </execution> |
| 150 | <execution> |
| 151 | <id>copy-brmsgw</id> |
| 152 | <phase>prepare-package</phase> |
| 153 | <goals> |
| 154 | <goal>copy</goal> |
| 155 | </goals> |
| 156 | <configuration> |
| 157 | <outputDirectory>${project.build.directory}/brmsgw</outputDirectory> |
| 158 | <overWriteReleases>false</overWriteReleases> |
| 159 | <overWriteSnapshots>true</overWriteSnapshots> |
| 160 | <artifactItems> |
| 161 | <artifactItem> |
| 162 | <groupId>org.openecomp.policy.engine</groupId> |
| 163 | <artifactId>BRMSGateway</artifactId> |
| 164 | <version>${project.version}</version> |
| 165 | <type>jar</type> |
| 166 | <classifier>jar-with-dependencies</classifier> |
| 167 | <destFileName>BRMSGateway.jar</destFileName> |
| 168 | </artifactItem> |
| 169 | </artifactItems> |
| 170 | </configuration> |
| 171 | </execution> |
| 172 | <execution> |
| 173 | <id>copy-logparser</id> |
| 174 | <phase>prepare-package</phase> |
| 175 | <goals> |
| 176 | <goal>copy</goal> |
| 177 | </goals> |
| 178 | <configuration> |
| 179 | <outputDirectory>${project.build.directory}/logparser</outputDirectory> |
| 180 | <overWriteReleases>false</overWriteReleases> |
| 181 | <overWriteSnapshots>true</overWriteSnapshots> |
| 182 | <artifactItems> |
| 183 | <artifactItem> |
| 184 | <groupId>org.openecomp.policy.engine</groupId> |
| 185 | <artifactId>LogParser</artifactId> |
| 186 | <version>${project.version}</version> |
| 187 | <type>jar</type> |
| 188 | <classifier>jar-with-dependencies</classifier> |
| 189 | <destFileName>logparser.jar</destFileName> |
| 190 | </artifactItem> |
| 191 | </artifactItems> |
| 192 | </configuration> |
| 193 | </execution> |
| 194 | </executions> |
| 195 | </plugin> |
| 196 | <plugin> |
| 197 | <artifactId>maven-assembly-plugin</artifactId> |
| 198 | <executions> |
| 199 | <execution> |
| 200 | <goals> |
| 201 | <goal>single</goal> |
| 202 | </goals> |
| 203 | <phase>package</phase> |
| 204 | <configuration> |
| 205 | <descriptors> |
| 206 | <descriptor>src/assembly/zip.xml</descriptor> |
| 207 | </descriptors> |
| 208 | <appendAssemblyId>false</appendAssemblyId> |
| 209 | </configuration> |
| 210 | </execution> |
| 211 | </executions> |
| 212 | </plugin> |
| 213 | </plugins> |
| 214 | </build> |
| 215 | |
| 216 | <profiles> |
| 217 | <profile> |
| 218 | <id>unix_pe_version</id> |
| 219 | <activation> |
| 220 | <os> |
| 221 | <family>!windows</family> |
| 222 | </os> |
| 223 | </activation> |
| 224 | <build> |
| 225 | <plugins> |
| 226 | <plugin> |
| 227 | <groupId>org.codehaus.mojo</groupId> |
| 228 | <artifactId>exec-maven-plugin</artifactId> |
| 229 | <executions> |
| 230 | <execution> |
| 231 | <id>create-version-file</id> |
| 232 | <goals> |
| 233 | <goal>exec</goal> |
| 234 | </goals> |
| 235 | <phase>prepare-package</phase> |
| 236 | <configuration> |
| 237 | <executable>/bin/bash</executable> |
| 238 | <arguments> |
| 239 | <argument>-c</argument> |
| 240 | <argument>mkdir -p target ; echo -e 'version="${project.version}"\ndescription="Open ECOMP Policy Engine"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' >target/build.info</argument> |
| 241 | </arguments> |
| 242 | </configuration> |
| 243 | </execution> |
| 244 | </executions> |
| 245 | </plugin> |
| 246 | </plugins> |
| 247 | </build> |
| 248 | </profile> |
| 249 | </profiles> |
| 250 | |
| 251 | </project> |