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