Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <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"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | <parent> |
| 5 | <artifactId>appc-dispatcher</artifactId> |
| 6 | <groupId>org.openecomp.appc</groupId> |
Patrick Brady | 03682da | 2017-03-10 13:07:19 -0800 | [diff] [blame] | 7 | <version>1.1.0-SNAPSHOT</version> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 8 | </parent> |
| 9 | |
| 10 | <artifactId>appc-dispatcher-installer</artifactId> |
| 11 | <name>APPC Dispatcher - Karaf Installer</name> |
| 12 | <packaging>pom</packaging> |
| 13 | |
| 14 | <properties> |
| 15 | <application.name>appc-dispatcher</application.name> |
| 16 | <features.boot>appc-dispatcher</features.boot> |
| 17 | <features.boot.licenseManager>appc-license-manager</features.boot.licenseManager> |
| 18 | <!--<features.repositories>mvn:org.openecomp.appc/appc-dispatcher-features/${project.version}/xml/features,mvn:org.openecomp.appc/appc-request-handler-features/${project.version}/xml/features,mvn:org.openecomp.appc/appc-command-executor-features/${project.version}/xml/features,mvn:org.openecomp.appc/appc-lifecycle-management-features/${project.version}/xml/features,mvn:org.openecomp.appc/appc-license-manager-features/${project.version}/xml/features,mvn:org.openecomp.appc/appc-workflow-management-features/${project.version}/xml/features,mvn:org.openecomp.appc/lock-manager-features/${project.version}/xml/features</features.repositories>--> |
| 19 | |
| 20 | <!-- SEPARATING FEATURE INSTALLS --> |
| 21 | <features.repo.dispatcher>mvn:org.openecomp.appc/appc-dispatcher-features/${project.version}/xml/features</features.repo.dispatcher> |
| 22 | <features.repo.requestHandler>mvn:org.openecomp.appc/appc-request-handler-features/${project.version}/xml/features</features.repo.requestHandler> |
| 23 | <features.repo.commandExecutor>mvn:org.openecomp.appc/appc-command-executor-features/${project.version}/xml/features</features.repo.commandExecutor> |
| 24 | <features.repo.lifecycleManagement>mvn:org.openecomp.appc/appc-lifecycle-management-features/${project.version}/xml/features</features.repo.lifecycleManagement> |
| 25 | <features.repo.licenseManager>mvn:org.openecomp.appc/appc-license-manager-features/${project.version}/xml/features</features.repo.licenseManager> |
| 26 | <features.repo.workflowManagement>mvn:org.openecomp.appc/appc-workflow-management-features/${project.version}/xml/features</features.repo.workflowManagement> |
| 27 | <features.repo.lockManager>mvn:org.openecomp.appc/lock-manager-features/${project.version}/xml/features</features.repo.lockManager> |
| 28 | |
| 29 | <include.transitive.dependencies>false</include.transitive.dependencies> |
| 30 | </properties> |
| 31 | |
| 32 | <dependencies> |
| 33 | |
| 34 | <dependency> |
| 35 | <groupId>org.openecomp.appc</groupId> |
| 36 | <artifactId>appc-dispatcher-features</artifactId> |
| 37 | <version>${project.version}</version> |
| 38 | <classifier>features</classifier> |
| 39 | <type>xml</type> |
| 40 | <!-- <exclusions> |
| 41 | <exclusion> |
| 42 | <groupId>*</groupId> |
| 43 | <artifactId>*</artifactId> |
| 44 | </exclusion> |
| 45 | </exclusions> --> |
| 46 | </dependency> |
| 47 | |
| 48 | <dependency> |
| 49 | <groupId>org.openecomp.appc</groupId> |
| 50 | <artifactId>appc-request-handler-features</artifactId> |
| 51 | <version>${project.version}</version> |
| 52 | <classifier>features</classifier> |
| 53 | <type>xml</type> |
| 54 | <!-- <exclusions> |
| 55 | <exclusion> |
| 56 | <groupId>*</groupId> |
| 57 | <artifactId>*</artifactId> |
| 58 | </exclusion> |
| 59 | </exclusions> --> |
| 60 | </dependency> |
| 61 | |
| 62 | <dependency> |
| 63 | <groupId>org.openecomp.appc</groupId> |
| 64 | <artifactId>appc-command-executor-features</artifactId> |
| 65 | <version>${project.version}</version> |
| 66 | <classifier>features</classifier> |
| 67 | <type>xml</type> |
| 68 | <!-- <exclusions> |
| 69 | <exclusion> |
| 70 | <groupId>*</groupId> |
| 71 | <artifactId>*</artifactId> |
| 72 | </exclusion> |
| 73 | </exclusions> --> |
| 74 | </dependency> |
| 75 | |
| 76 | <dependency> |
| 77 | <groupId>org.openecomp.appc</groupId> |
| 78 | <artifactId>appc-lifecycle-management-features</artifactId> |
| 79 | <version>${project.version}</version> |
| 80 | <classifier>features</classifier> |
| 81 | <type>xml</type> |
| 82 | <!-- <exclusions> |
| 83 | <exclusion> |
| 84 | <groupId>*</groupId> |
| 85 | <artifactId>*</artifactId> |
| 86 | </exclusion> |
| 87 | </exclusions> --> |
| 88 | </dependency> |
| 89 | |
| 90 | <dependency> |
| 91 | <groupId>org.openecomp.appc</groupId> |
| 92 | <artifactId>appc-workflow-management-features</artifactId> |
| 93 | <version>${project.version}</version> |
| 94 | <classifier>features</classifier> |
| 95 | <type>xml</type> |
| 96 | <!-- <exclusions> |
| 97 | <exclusion> |
| 98 | <groupId>*</groupId> |
| 99 | <artifactId>*</artifactId> |
| 100 | </exclusion> |
| 101 | </exclusions> --> |
| 102 | </dependency> |
| 103 | |
| 104 | <dependency> |
| 105 | <groupId>org.openecomp.appc</groupId> |
| 106 | <artifactId>appc-license-manager-features</artifactId> |
| 107 | <version>${project.version}</version> |
| 108 | <classifier>features</classifier> |
| 109 | <type>xml</type> |
| 110 | <!-- <exclusions> |
| 111 | <exclusion> |
| 112 | <groupId>*</groupId> |
| 113 | <artifactId>*</artifactId> |
| 114 | </exclusion> |
| 115 | </exclusions> --> |
| 116 | </dependency> |
| 117 | |
| 118 | <dependency> |
| 119 | <groupId>org.openecomp.appc</groupId> |
| 120 | <artifactId>lock-manager-features</artifactId> |
| 121 | <version>${project.version}</version> |
| 122 | <classifier>features</classifier> |
| 123 | <type>xml</type> |
| 124 | <!-- <exclusions> |
| 125 | <exclusion> |
| 126 | <groupId>*</groupId> |
| 127 | <artifactId>*</artifactId> |
| 128 | </exclusion> |
| 129 | </exclusions> --> |
| 130 | </dependency> |
| 131 | </dependencies> |
| 132 | |
| 133 | <build> |
| 134 | <plugins> |
| 135 | <plugin> |
| 136 | <artifactId>maven-assembly-plugin</artifactId> |
| 137 | <executions> |
| 138 | <execution> |
| 139 | <id>maven-repo-zip</id> |
| 140 | <goals> |
| 141 | <goal>single</goal> |
| 142 | </goals> |
| 143 | <phase>package</phase> |
| 144 | <configuration> |
| 145 | <appendAssemblyId>false</appendAssemblyId> |
| 146 | <attach>false</attach> |
| 147 | <finalName>stage/${application.name}-${project.version}</finalName> |
| 148 | <descriptors> |
| 149 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor> |
| 150 | </descriptors> |
| 151 | </configuration> |
| 152 | </execution> |
| 153 | <execution> |
| 154 | <id>installer-zip</id> |
| 155 | <goals> |
| 156 | <goal>single</goal> |
| 157 | </goals> |
| 158 | <phase>package</phase> |
| 159 | <configuration> |
| 160 | <appendAssemblyId>false</appendAssemblyId> |
| 161 | <attach>true</attach> |
| 162 | <finalName>${application.name}-${project.version}</finalName> |
| 163 | <descriptors> |
| 164 | <descriptor>src/assembly/assemble_installer_zip.xml</descriptor> |
| 165 | </descriptors> |
| 166 | </configuration> |
| 167 | </execution> |
| 168 | </executions> |
| 169 | </plugin> |
| 170 | <plugin> |
| 171 | <groupId>org.apache.maven.plugins</groupId> |
| 172 | <artifactId>maven-dependency-plugin</artifactId> |
| 173 | <executions> |
| 174 | <execution> |
| 175 | <id>copy-dependencies</id> |
| 176 | <goals> |
| 177 | <goal>copy-dependencies</goal> |
| 178 | </goals> |
| 179 | <phase>prepare-package</phase> |
| 180 | <configuration> |
| 181 | <transitive>false</transitive> |
| 182 | <outputDirectory>${project.build.directory}/assembly/system</outputDirectory> |
| 183 | <overWriteReleases>false</overWriteReleases> |
| 184 | <overWriteSnapshots>true</overWriteSnapshots> |
| 185 | <overWriteIfNewer>true</overWriteIfNewer> |
| 186 | <useRepositoryLayout>true</useRepositoryLayout> |
| 187 | <addParentPoms>false</addParentPoms> |
| 188 | <copyPom>false</copyPom> |
| 189 | <excludeGroupIds>org.opendaylight</excludeGroupIds> |
| 190 | <scope>provided</scope> |
| 191 | </configuration> |
| 192 | </execution> |
| 193 | </executions> |
| 194 | </plugin> |
| 195 | <plugin> |
| 196 | <artifactId>maven-resources-plugin</artifactId> |
| 197 | <executions> |
| 198 | <execution> |
| 199 | <id>copy-version</id> |
| 200 | <goals> |
| 201 | <goal>copy-resources</goal> |
| 202 | </goals> |
| 203 | <!-- here the phase you need --> |
| 204 | <phase>validate</phase> |
| 205 | <configuration> |
| 206 | <outputDirectory>${basedir}/target/stage</outputDirectory> |
| 207 | <resources> |
| 208 | <resource> |
| 209 | <directory>src/main/resources/scripts</directory> |
| 210 | <includes> |
| 211 | <include>install-feature.sh</include> |
| 212 | </includes> |
| 213 | <filtering>true</filtering> |
| 214 | </resource> |
| 215 | </resources> |
| 216 | </configuration> |
| 217 | </execution> |
| 218 | </executions> |
| 219 | </plugin> |
| 220 | </plugins> |
| 221 | </build> |
| 222 | |
| 223 | </project> |