blob: f9f4229782195de02b5b4503863065b906f60963 [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-metric</artifactId>
6 <groupId>org.openecomp.appc</groupId>
Patrick Bradyed9fd622017-11-07 11:59:14 -08007 <version>1.2.0-SNAPSHOT</version>
Patrick Brady57b5eef2017-02-10 15:00:49 -08008 </parent>
9 <name>appc-metric-features</name>
10 <artifactId>appc-metric-features</artifactId>
11
12 <packaging>jar</packaging>
13
14 <dependencies>
15 <dependency>
16 <groupId>org.openecomp.appc</groupId>
17 <artifactId>appc-metric-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 <version>2.16</version>
81 <configuration>
82 <systemPropertyVariables>
83 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
84 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
85 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
86 </systemPropertyVariables>
87 <dependenciesToScan>
88 <dependency>org.opendaylight.yangtools:features-test</dependency>
89 </dependenciesToScan>
90 <classpathDependencyExcludes>
91 <!-- The dependencies which bring in AbstractDataBrokerTest class
92 brings in a second PaxExam container which results in the feature tests failing
93 with a message similar to: "ERROR o.ops4j.pax.exam.spi.PaxExamRuntime - Ambiguous
94 TestContainer ..." This excludes the container we don't want to use. -->
95 <classpathDependencyExcludes>org.ops4j.pax.exam:pax-exam-container-native</classpathDependencyExcludes>
96 </classpathDependencyExcludes>
97 <skipTests>true</skipTests>
98 </configuration>
99 </plugin>
100 <plugin>
101 <groupId>org.codehaus.mojo</groupId>
102 <artifactId>build-helper-maven-plugin</artifactId>
103 <executions>
104 <execution>
105 <id>attach-artifacts</id>
106 <goals>
107 <goal>attach-artifact</goal>
108 </goals>
109 <phase>package</phase>
110 <configuration>
111 <artifacts>
112 <artifact>
113 <file>${project.build.directory}/classes/${features.file}</file>
114 <type>xml</type>
115 <classifier>features</classifier>
116 </artifact>
117 </artifacts>
118 </configuration>
119 </execution>
120 </executions>
121 </plugin>
122
123 </plugins>
124 </build>
125</project>