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-dg-util</artifactId> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame^] | 6 | <groupId>org.onap.appc</groupId> |
Jessica Wagantall | 6536799 | 2017-11-16 17:22:13 -0800 | [diff] [blame] | 7 | <version>1.3.0-SNAPSHOT</version> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 8 | </parent> |
| 9 | <name>appc-dg-util-features</name> |
| 10 | <artifactId>appc-dg-util-features</artifactId> |
| 11 | |
| 12 | <packaging>jar</packaging> |
| 13 | |
| 14 | <dependencies> |
| 15 | <dependency> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame^] | 16 | <groupId>org.onap.appc</groupId> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 17 | <artifactId>appc-dg-util-bundle</artifactId> |
| 18 | <version>${project.version}</version> |
| 19 | </dependency> |
| 20 | |
| 21 | <dependency> |
Patrick Brady | 7670600 | 2017-09-04 21:37:25 -0700 | [diff] [blame] | 22 | <groupId>org.opendaylight.mdsal</groupId> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 23 | <artifactId>features-mdsal</artifactId> |
| 24 | <classifier>features</classifier> |
| 25 | <type>xml</type> |
| 26 | |
| 27 | <scope>runtime</scope> |
| 28 | </dependency> |
| 29 | |
| 30 | |
| 31 | |
| 32 | <!-- dependency for opendaylight-karaf-empty for use by testing --> |
| 33 | <!-- <dependency> --> |
| 34 | <!-- <groupId>org.opendaylight.controller</groupId> --> |
| 35 | <!-- <artifactId>opendaylight-karaf-empty</artifactId> --> |
| 36 | <!-- <type>zip</type> --> |
| 37 | <!-- </dependency> --> |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | <dependency> |
| 43 | <groupId>org.opendaylight.yangtools</groupId> |
| 44 | <artifactId>features-yangtools</artifactId> |
| 45 | <classifier>features</classifier> |
| 46 | <type>xml</type> |
| 47 | <scope>runtime</scope> |
| 48 | </dependency> |
| 49 | </dependencies> |
| 50 | |
| 51 | <build> |
| 52 | <resources> |
| 53 | <resource> |
| 54 | <filtering>true</filtering> |
| 55 | <directory>src/main/resources</directory> |
| 56 | </resource> |
| 57 | </resources> |
| 58 | <plugins> |
| 59 | <plugin> |
| 60 | <groupId>org.apache.maven.plugins</groupId> |
| 61 | <artifactId>maven-resources-plugin</artifactId> |
| 62 | <executions> |
| 63 | <execution> |
| 64 | <id>filter</id> |
| 65 | <goals> |
| 66 | <goal>resources</goal> |
| 67 | </goals> |
| 68 | <phase>generate-resources</phase> |
| 69 | </execution> |
| 70 | </executions> |
| 71 | </plugin> |
| 72 | <plugin> |
| 73 | <!-- launches the feature test, which validates that your karaf feature |
| 74 | can be installed inside of a karaf container. It doesn't validate that your |
| 75 | functionality works correctly, just that you have all of the dependent bundles |
| 76 | defined correctly. --> |
| 77 | <!-- Skipping ODL feature test --> |
| 78 | <groupId>org.apache.maven.plugins</groupId> |
| 79 | <artifactId>maven-surefire-plugin</artifactId> |
| 80 | <configuration> |
| 81 | <systemPropertyVariables> |
| 82 | <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId> |
| 83 | <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId> |
| 84 | <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version> |
| 85 | </systemPropertyVariables> |
| 86 | <dependenciesToScan> |
| 87 | <dependency>org.opendaylight.yangtools:features-test</dependency> |
| 88 | </dependenciesToScan> |
| 89 | <classpathDependencyExcludes> |
| 90 | <!-- The dependencies which bring in AbstractDataBrokerTest class |
| 91 | brings in a second PaxExam container which results in the feature tests failing |
| 92 | with a message similar to: "ERROR o.ops4j.pax.exam.spi.PaxExamRuntime - Ambiguous |
| 93 | TestContainer ..." This excludes the container we don't want to use. --> |
| 94 | <classpathDependencyExcludes>org.ops4j.pax.exam:pax-exam-container-native</classpathDependencyExcludes> |
| 95 | </classpathDependencyExcludes> |
| 96 | <skipTests>true</skipTests> |
| 97 | </configuration> |
| 98 | </plugin> |
| 99 | <plugin> |
| 100 | <groupId>org.codehaus.mojo</groupId> |
| 101 | <artifactId>build-helper-maven-plugin</artifactId> |
| 102 | <executions> |
| 103 | <execution> |
| 104 | <id>attach-artifacts</id> |
| 105 | <goals> |
| 106 | <goal>attach-artifact</goal> |
| 107 | </goals> |
| 108 | <phase>package</phase> |
| 109 | <configuration> |
| 110 | <artifacts> |
| 111 | <artifact> |
| 112 | <file>${project.build.directory}/classes/${features.file}</file> |
| 113 | <type>xml</type> |
| 114 | <classifier>features</classifier> |
| 115 | </artifact> |
| 116 | </artifacts> |
| 117 | </configuration> |
| 118 | </execution> |
| 119 | </executions> |
| 120 | </plugin> |
| 121 | |
| 122 | </plugins> |
| 123 | </build> |
| 124 | </project> |