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