blob: 2c2b6c766d3d597218f4619e4a24f83ad7a5095a [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<?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>
6 <groupId>org.openecomp.appc</groupId>
7 <version>1.0.0</version>
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>
16 <groupId>org.openecomp.appc</groupId>
17 <artifactId>appc-dg-util-bundle</artifactId>
18 <version>${project.version}</version>
19 </dependency>
20
21 <dependency>
22 <groupId>org.opendaylight.controller</groupId>
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>