8a5ed800f6b877c891193691a90f9e832b57d769
[sdnc/core.git] / sli / features / pom.xml
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>sli</artifactId>
6                 <groupId>org.openecomp.sdnc.core</groupId>
7                 <version>1.1.2-SNAPSHOT</version>
8         </parent>
9         <artifactId>sli-features</artifactId>
10         <name>SLI - Features</name>
11
12         <packaging>jar</packaging>
13
14         <dependencies>
15                 <dependency>
16                         <groupId>org.openecomp.sdnc.core</groupId>
17                         <artifactId>sli-common</artifactId>
18                         <version>${project.version}</version>
19                 </dependency>
20
21
22                 <dependency>
23                         <groupId>org.openecomp.sdnc.core</groupId>
24                         <artifactId>sli-recording</artifactId>
25                         <version>${project.version}</version>
26                 </dependency>
27                 <dependency>
28                         <groupId>commons-lang</groupId>
29                         <artifactId>commons-lang</artifactId>
30                         <version>2.6</version>
31                         <scope>compile</scope>
32                 </dependency>
33
34                 <dependency>
35                         <groupId>org.opendaylight.mdsal</groupId>
36                         <artifactId>features-mdsal</artifactId>
37                         <version>${odl.mdsal.features.version}</version>
38                         <classifier>features</classifier>
39                         <type>xml</type>
40
41                         <scope>runtime</scope>
42                 </dependency>
43
44
45                 <!-- dependency for opendaylight-karaf-empty for use by testing
46                 <dependency>
47                         <groupId>org.opendaylight.odlparent</groupId>
48                         <artifactId>opendaylight-karaf-empty</artifactId>
49                         <version>${odl.karaf.empty.version}</version>
50                         <type>zip</type>
51                 </dependency>
52                 -->
53
54
55                 <dependency>
56                         <!-- Required for launching the feature tests -->
57                         <groupId>org.opendaylight.odlparent</groupId>
58                         <artifactId>features-test</artifactId>
59                         <version>${odl.commons.opendaylight.version}</version>
60                         <scope>test</scope>
61                 </dependency>
62
63                 <dependency>
64                         <groupId>org.opendaylight.yangtools</groupId>
65                         <artifactId>features-yangtools</artifactId>
66                         <version>${odl.yangtools.version}</version>
67                         <classifier>features</classifier>
68                         <type>xml</type>
69                         <scope>runtime</scope>
70                 </dependency>
71         </dependencies>
72
73         <build>
74                 <resources>
75                         <resource>
76                                 <filtering>true</filtering>
77                                 <directory>src/main/resources</directory>
78                         </resource>
79                 </resources>
80                 <plugins>
81                         <plugin>
82                                 <groupId>org.apache.maven.plugins</groupId>
83                                 <artifactId>maven-resources-plugin</artifactId>
84                                 <executions>
85                                         <execution>
86                                                 <id>filter</id>
87                                                 <goals>
88                                                         <goal>resources</goal>
89                                                 </goals>
90                                                 <phase>generate-resources</phase>
91                                         </execution>
92                                 </executions>
93                         </plugin>
94
95                         <!-- Comment out feature test, since it fails in Jenkins due to env issues
96                         <plugin>
97                                 <groupId>org.apache.maven.plugins</groupId>
98                                 <artifactId>maven-surefire-plugin</artifactId>
99                                 <version>2.16</version>
100                                 <configuration>
101                                         <systemPropertyVariables>
102                                                 <karaf.distro.groupId>org.opendaylight.odlparent</karaf.distro.groupId>
103                                                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
104                                                 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
105                                         </systemPropertyVariables>
106                                         <dependenciesToScan>
107                                                 <dependency>org.opendaylight.yangtools:features-test</dependency>
108                                         </dependenciesToScan>
109                                 </configuration>
110                         </plugin>
111                         -->
112
113                         <plugin>
114                                 <groupId>org.codehaus.mojo</groupId>
115                                 <artifactId>build-helper-maven-plugin</artifactId>
116                                 <executions>
117                                         <execution>
118                                                 <id>attach-artifacts</id>
119                                                 <goals>
120                                                         <goal>attach-artifact</goal>
121                                                 </goals>
122                                                 <phase>package</phase>
123                                                 <configuration>
124                                                         <artifacts>
125                                                                 <artifact>
126                                                                         <file>${project.build.directory}/classes/${features.file}</file>
127                                                                         <type>xml</type>
128                                                                         <classifier>features</classifier>
129                                                                 </artifact>
130                                                         </artifacts>
131                                                 </configuration>
132                                         </execution>
133                                 </executions>
134                         </plugin>
135                 </plugins>
136         </build>
137 </project>