Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
Ganesh Chandrasekaran | f8ebec6 | 2018-07-18 15:27:52 +0900 | [diff] [blame] | 4 | ONAP : CCSDK |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 5 | ================================================================================ |
Ganesh Chandrasekaran | f8ebec6 | 2018-07-18 15:27:52 +0900 | [diff] [blame] | 6 | Copyright (C) 2018 Samsung Electronics. All rights reserved. |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 7 | ================================================================================ |
Ganesh Chandrasekaran | f8ebec6 | 2018-07-18 15:27:52 +0900 | [diff] [blame] | 8 | |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 9 | ============================================================================= |
| 10 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 11 | you may not use this file except in compliance with the License. |
| 12 | You may obtain a copy of the License at |
| 13 | |
| 14 | http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | |
| 16 | Unless required by applicable law or agreed to in writing, software |
| 17 | distributed under the License is distributed on an "AS IS" BASIS, |
| 18 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 | See the License for the specific language governing permissions and |
| 20 | limitations under the License. |
| 21 | |
Ganesh Chandrasekaran | f8ebec6 | 2018-07-18 15:27:52 +0900 | [diff] [blame] | 22 | |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 23 | ============LICENSE_END========================================================= |
| 24 | --> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 25 | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 26 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 27 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 28 | <modelVersion>4.0.0</modelVersion> |
| 29 | <parent> |
| 30 | <groupId>org.onap.ccsdk.parent</groupId> |
| 31 | <artifactId>odlparent-lite</artifactId> |
| 32 | <version>1.1.0-SNAPSHOT</version> |
| 33 | <relativePath/> |
| 34 | </parent> |
| 35 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 36 | <artifactId>saltstack-adapter-installer</artifactId> |
| 37 | <version>0.3.0-SNAPSHOT</version> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 38 | <name>ccsdk-sli-adaptors :: saltstack-adapter :: ${project.artifactId} |
| 39 | </name> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 40 | <packaging>pom</packaging> |
| 41 | <properties> |
| 42 | <application.name>ccsdk-saltstack-adapter</application.name> |
| 43 | <features.boot>${application.name}</features.boot> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 44 | <features.repositories> |
| 45 | mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features |
| 46 | </features.repositories> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 47 | <include.transitive.dependencies>false</include.transitive.dependencies> |
| 48 | </properties> |
| 49 | <dependencies> |
| 50 | <dependency> |
| 51 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 52 | <artifactId>${application.name}</artifactId> |
| 53 | <version>${project.version}</version> |
| 54 | <classifier>features</classifier> |
| 55 | <type>xml</type> |
| 56 | <exclusions> |
| 57 | <exclusion> |
| 58 | <groupId>*</groupId> |
| 59 | <artifactId>*</artifactId> |
| 60 | </exclusion> |
| 61 | </exclusions> |
| 62 | </dependency> |
| 63 | <dependency> |
| 64 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 65 | <artifactId>saltstack-adapter-provider</artifactId> |
| 66 | <version>${project.version}</version> |
| 67 | </dependency> |
| 68 | |
| 69 | <dependency> |
| 70 | <groupId>javax</groupId> |
| 71 | <artifactId>javaee-api</artifactId> |
| 72 | <version>7.0</version> |
| 73 | </dependency> |
| 74 | </dependencies> |
| 75 | <build> |
| 76 | <plugins> |
| 77 | <plugin> |
| 78 | <artifactId>maven-assembly-plugin</artifactId> |
| 79 | <executions> |
| 80 | <execution> |
| 81 | <id>maven-repo-zip</id> |
| 82 | <goals> |
| 83 | <goal>single</goal> |
| 84 | </goals> |
| 85 | <phase>package</phase> |
| 86 | <configuration> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 87 | <appendAssemblyId>true</appendAssemblyId> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 88 | <attach>false</attach> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 89 | <finalName> |
| 90 | stage/${application.name}-${project.version} |
| 91 | </finalName> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 92 | <descriptors> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 93 | <descriptor> |
| 94 | src/assembly/assemble_mvnrepo_zip.xml |
| 95 | </descriptor> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 96 | </descriptors> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | <execution> |
| 100 | <id>installer-zip</id> |
| 101 | <goals> |
| 102 | <goal>single</goal> |
| 103 | </goals> |
| 104 | <phase>package</phase> |
| 105 | <configuration> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 106 | <appendAssemblyId>false</appendAssemblyId> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 107 | <attach>true</attach> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 108 | <finalName>${application.name}-${project.version} |
| 109 | </finalName> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 110 | <descriptors> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 111 | <descriptor> |
| 112 | src/assembly/assemble_installer_zip.xml |
| 113 | </descriptor> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 114 | </descriptors> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | <plugin> |
| 120 | <groupId>org.apache.maven.plugins</groupId> |
| 121 | <artifactId>maven-dependency-plugin</artifactId> |
| 122 | <executions> |
| 123 | <execution> |
| 124 | <id>copy-dependencies</id> |
| 125 | <goals> |
| 126 | <goal>copy-dependencies</goal> |
| 127 | </goals> |
| 128 | <phase>prepare-package</phase> |
| 129 | <configuration> |
| 130 | <transitive>false</transitive> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 131 | <outputDirectory> |
| 132 | ${project.build.directory}/assembly/system |
| 133 | </outputDirectory> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 134 | <overWriteReleases>false</overWriteReleases> |
| 135 | <overWriteSnapshots>true</overWriteSnapshots> |
| 136 | <overWriteIfNewer>true</overWriteIfNewer> |
| 137 | <useRepositoryLayout>true</useRepositoryLayout> |
| 138 | <addParentPoms>false</addParentPoms> |
| 139 | <copyPom>false</copyPom> |
| 140 | <excludeGroupIds>org.opendaylight</excludeGroupIds> |
| 141 | <scope>provided</scope> |
| 142 | </configuration> |
| 143 | </execution> |
| 144 | </executions> |
| 145 | </plugin> |
| 146 | <plugin> |
| 147 | <artifactId>maven-resources-plugin</artifactId> |
| 148 | <executions> |
| 149 | <execution> |
| 150 | <id>copy-version</id> |
| 151 | <goals> |
| 152 | <goal>copy-resources</goal> |
| 153 | </goals> |
| 154 | <!-- here the phase you need --> |
| 155 | <phase>validate</phase> |
| 156 | <configuration> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 157 | <outputDirectory>${basedir}/target/stage |
| 158 | </outputDirectory> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 159 | <resources> |
| 160 | <resource> |
Ganesh Chandrasekaran | 021cae4 | 2018-07-23 14:27:22 +0900 | [diff] [blame^] | 161 | <directory>src/main/resources/scripts |
| 162 | </directory> |
Ganesh Chandrasekaran | 8fe9122 | 2018-06-28 17:39:09 +0900 | [diff] [blame] | 163 | <includes> |
| 164 | <include>install-feature.sh</include> |
| 165 | </includes> |
| 166 | <filtering>true</filtering> |
| 167 | </resource> |
| 168 | </resources> |
| 169 | </configuration> |
| 170 | </execution> |
| 171 | </executions> |
| 172 | </plugin> |
| 173 | </plugins> |
| 174 | </build> |
| 175 | </project> |