Dan Timoney | ea5bf0a | 2017-07-18 20:32:15 -0400 | [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>asdcApi</artifactId> |
| 6 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
Dan Timoney | 1027b0c | 2017-08-15 15:18:54 -0400 | [diff] [blame] | 7 | <version>0.1.0-SNAPSHOT</version> |
Dan Timoney | ea5bf0a | 2017-07-18 20:32:15 -0400 | [diff] [blame] | 8 | </parent> |
| 9 | <artifactId>asdcApi-features</artifactId> |
| 10 | |
| 11 | <packaging>jar</packaging> |
| 12 | |
| 13 | <dependencies> |
| 14 | <dependency> |
| 15 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 16 | <artifactId>asdcApi-model</artifactId> |
| 17 | <version>${project.version}</version> |
| 18 | </dependency> |
| 19 | <dependency> |
| 20 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 21 | <artifactId>asdcApi-provider</artifactId> |
| 22 | <version>${project.version}</version> |
Dan Timoney | ea5bf0a | 2017-07-18 20:32:15 -0400 | [diff] [blame] | 23 | </dependency> |
| 24 | |
| 25 | <dependency> |
| 26 | <groupId>org.opendaylight.mdsal</groupId> |
| 27 | <artifactId>features-mdsal</artifactId> |
| 28 | <version>${odl.mdsal.features.version}</version> |
| 29 | <classifier>features</classifier> |
| 30 | <type>xml</type> |
| 31 | |
| 32 | |
| 33 | <scope>runtime</scope> |
| 34 | </dependency> |
| 35 | |
| 36 | |
| 37 | |
| 38 | <!-- dependency for opendaylight-karaf-empty for use by testing --> |
| 39 | <dependency> |
| 40 | <groupId>org.opendaylight.controller</groupId> |
| 41 | <artifactId>opendaylight-karaf-empty</artifactId> |
| 42 | <version>${odl.karaf.empty.distro.version}</version> |
| 43 | <type>zip</type> |
| 44 | </dependency> |
| 45 | |
| 46 | |
| 47 | <dependency> |
| 48 | <!-- Required for launching the feature tests--> |
| 49 | <groupId>org.opendaylight.odlparent</groupId> |
| 50 | <artifactId>features-test</artifactId> |
| 51 | <scope>test</scope> |
| 52 | <version>${odl.commons.opendaylight.version}</version> |
| 53 | </dependency> |
| 54 | |
| 55 | <dependency> |
| 56 | <groupId>org.opendaylight.yangtools</groupId> |
| 57 | <artifactId>features-yangtools</artifactId> |
| 58 | <version>${odl.yangtools.version}</version> |
| 59 | <classifier>features</classifier> |
| 60 | <type>xml</type> |
| 61 | <scope>runtime</scope> |
| 62 | </dependency> |
| 63 | </dependencies> |
| 64 | |
| 65 | <build> |
| 66 | <resources> |
| 67 | <resource> |
| 68 | <filtering>true</filtering> |
| 69 | <directory>src/main/resources</directory> |
| 70 | </resource> |
| 71 | </resources> |
| 72 | <plugins> |
| 73 | <plugin> |
| 74 | <groupId>org.apache.maven.plugins</groupId> |
| 75 | <artifactId>maven-resources-plugin</artifactId> |
| 76 | <executions> |
| 77 | <execution> |
| 78 | <id>filter</id> |
| 79 | <goals> |
| 80 | <goal>resources</goal> |
| 81 | </goals> |
| 82 | <phase>generate-resources</phase> |
| 83 | </execution> |
| 84 | </executions> |
| 85 | </plugin> |
| 86 | <!-- launches the feature test, which validates that your karaf feature can |
| 87 | be installed inside of a karaf container. It doesn't validate that your |
| 88 | functionality works correctly, just that you have all of the dependent |
| 89 | bundles defined correctly. |
| 90 | <plugin> |
| 91 | |
| 92 | <groupId>org.apache.maven.plugins</groupId> |
| 93 | <artifactId>maven-surefire-plugin</artifactId> |
| 94 | <version>2.16</version> |
| 95 | <configuration> |
| 96 | <systemPropertyVariables> |
| 97 | <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId> |
| 98 | <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId> |
| 99 | <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version> |
| 100 | </systemPropertyVariables> |
| 101 | <dependenciesToScan> |
| 102 | <dependency>org.opendaylight.yangtools:features-test</dependency> |
| 103 | </dependenciesToScan> |
| 104 | </configuration> |
| 105 | </plugin> |
| 106 | --> |
| 107 | <plugin> |
| 108 | <groupId>org.codehaus.mojo</groupId> |
| 109 | <artifactId>build-helper-maven-plugin</artifactId> |
| 110 | <executions> |
| 111 | <execution> |
| 112 | <id>attach-artifacts</id> |
| 113 | <goals> |
| 114 | <goal>attach-artifact</goal> |
| 115 | </goals> |
| 116 | <phase>package</phase> |
| 117 | <configuration> |
| 118 | <artifacts> |
| 119 | <artifact> |
| 120 | <file>${project.build.directory}/classes/${features.file}</file> |
| 121 | <type>xml</type> |
| 122 | <classifier>features</classifier> |
| 123 | </artifact> |
| 124 | </artifacts> |
| 125 | </configuration> |
| 126 | </execution> |
| 127 | </executions> |
| 128 | </plugin> |
| 129 | </plugins> |
| 130 | </build> |
| 131 | </project> |