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