Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [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-rest-healthcheck-adapter</artifactId> |
| 6 | <groupId>org.openecomp.appc</groupId> |
Jessica Wagantall | 6536799 | 2017-11-16 17:22:13 -0800 | [diff] [blame] | 7 | <version>1.3.0-SNAPSHOT</version> |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 8 | </parent> |
| 9 | <artifactId>appc-rest-healthcheck-adapter-installer</artifactId> |
Patrick Brady | 3871320 | 2017-07-28 11:29:23 -0700 | [diff] [blame] | 10 | <name>Rest Health Check Adapter - Karaf Installer</name> |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 11 | <packaging>pom</packaging> |
| 12 | <properties> |
| 13 | <application.name>appc-rest-healthcheck-adapter</application.name> |
| 14 | <features.boot>appc-rest-healthcheck-adapter</features.boot> |
| 15 | <features.repositories>mvn:org.openecomp.appc/appc-rest-healthcheck-adapter-features/${project.version}/xml/features</features.repositories> |
| 16 | <include.transitive.dependencies>false</include.transitive.dependencies> |
| 17 | </properties> |
| 18 | <dependencies> |
| 19 | <dependency> |
| 20 | <groupId>org.openecomp.appc</groupId> |
| 21 | <artifactId>appc-rest-healthcheck-adapter-features</artifactId> |
| 22 | <classifier>features</classifier> |
| 23 | <type>xml</type> |
| 24 | <exclusions> |
| 25 | <exclusion> |
| 26 | <groupId>*</groupId> |
| 27 | <artifactId>*</artifactId> |
| 28 | </exclusion> |
| 29 | </exclusions> |
| 30 | </dependency> |
| 31 | <dependency> |
| 32 | <groupId>org.openecomp.appc</groupId> |
| 33 | <artifactId>appc-rest-healthcheck-adapter-bundle</artifactId> |
| 34 | <version>${project.version}</version> |
| 35 | </dependency> |
| 36 | </dependencies> |
| 37 | <build> |
| 38 | <plugins> |
| 39 | <plugin> |
| 40 | <artifactId>maven-assembly-plugin</artifactId> |
| 41 | <executions> |
| 42 | <execution> |
| 43 | <id>maven-repo-zip</id> |
| 44 | <goals> |
| 45 | <goal>single</goal> |
| 46 | </goals> |
| 47 | <phase>package</phase> |
| 48 | <configuration> |
| 49 | <appendAssemblyId>false</appendAssemblyId> |
| 50 | <attach>false</attach> |
| 51 | <finalName>stage/${application.name}-${project.version}</finalName> |
| 52 | <descriptors> |
| 53 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor> |
| 54 | </descriptors> |
| 55 | </configuration> |
| 56 | </execution> |
| 57 | <execution> |
| 58 | <id>installer-zip</id> |
| 59 | <goals> |
| 60 | <goal>single</goal> |
| 61 | </goals> |
| 62 | <phase>package</phase> |
| 63 | <configuration> |
| 64 | <appendAssemblyId>false</appendAssemblyId> |
| 65 | <attach>true</attach> |
| 66 | <finalName>${application.name}-${project.version}</finalName> |
| 67 | <descriptors> |
| 68 | <descriptor>src/assembly/assemble_installer_zip.xml</descriptor> |
| 69 | </descriptors> |
| 70 | </configuration> |
| 71 | </execution> |
| 72 | </executions> |
| 73 | </plugin> |
| 74 | <plugin> |
| 75 | <groupId>org.apache.maven.plugins</groupId> |
| 76 | <artifactId>maven-dependency-plugin</artifactId> |
| 77 | <executions> |
| 78 | <execution> |
| 79 | <id>copy-dependencies</id> |
| 80 | <goals> |
| 81 | <goal>copy-dependencies</goal> |
| 82 | </goals> |
| 83 | <phase>prepare-package</phase> |
| 84 | <configuration> |
| 85 | <transitive>false</transitive> |
| 86 | <outputDirectory>${project.build.directory}/assembly/system</outputDirectory> |
| 87 | <overWriteReleases>false</overWriteReleases> |
| 88 | <overWriteSnapshots>true</overWriteSnapshots> |
| 89 | <overWriteIfNewer>true</overWriteIfNewer> |
| 90 | <useRepositoryLayout>true</useRepositoryLayout> |
| 91 | <addParentPoms>false</addParentPoms> |
| 92 | <copyPom>false</copyPom> |
| 93 | <excludeGroupIds>org.opendaylight</excludeGroupIds> |
| 94 | <scope>provided</scope> |
| 95 | </configuration> |
| 96 | </execution> |
| 97 | </executions> |
| 98 | </plugin> |
| 99 | <plugin> |
| 100 | <artifactId>maven-resources-plugin</artifactId> |
| 101 | <executions> |
| 102 | <execution> |
| 103 | <id>copy-version</id> |
| 104 | <goals> |
| 105 | <goal>copy-resources</goal> |
| 106 | </goals> |
| 107 | <!-- here the phase you need --> |
| 108 | <phase>validate</phase> |
| 109 | <configuration> |
| 110 | <outputDirectory>${basedir}/target/stage</outputDirectory> |
| 111 | <resources> |
| 112 | <resource> |
| 113 | <directory>src/main/resources/scripts</directory> |
| 114 | <includes> |
| 115 | <include>install-feature.sh</include> |
| 116 | </includes> |
| 117 | <filtering>true</filtering> |
| 118 | </resource> |
| 119 | </resources> |
| 120 | </configuration> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | </plugin> |
| 124 | </plugins> |
| 125 | </build> |
| 126 | </project> |