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