Conform ccsdk/sli/plugins to ONAP Style
[ccsdk/sli/plugins.git] / properties-node / features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
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">\r
3     <modelVersion>4.0.0</modelVersion>\r
4     <parent>\r
5         <artifactId>properties-node</artifactId>\r
6         <groupId>org.onap.ccsdk.sli.plugins</groupId>\r
7         <version>0.1.0-SNAPSHOT</version>\r
8     </parent>\r
9     <groupId>org.onap.ccsdk.sli.plugins</groupId>\r
10     <version>0.1.0-SNAPSHOT</version>\r
11     <artifactId>properties-node-features</artifactId>\r
12     <name>Properties Node - Features</name>\r
13 \r
14     <packaging>jar</packaging>\r
15 \r
16     <dependencies>\r
17 \r
18         <dependency>\r
19             <groupId>org.onap.ccsdk.sli.plugins</groupId>\r
20             <artifactId>properties-node-provider</artifactId>\r
21             <version>${project.version}</version>\r
22         </dependency>\r
23 \r
24         <dependency>\r
25             <groupId>commons-lang</groupId>\r
26             <artifactId>commons-lang</artifactId>\r
27             <version>2.6</version>\r
28             <scope>compile</scope>\r
29         </dependency>\r
30 \r
31         <dependency>\r
32             <groupId>org.opendaylight.mdsal</groupId>\r
33             <artifactId>features-mdsal</artifactId>\r
34             <version>${odl.mdsal.features.version}</version>\r
35             <classifier>features</classifier>\r
36             <type>xml</type>\r
37 \r
38             <scope>runtime</scope>\r
39         </dependency>\r
40 \r
41 \r
42         <!-- dependency for opendaylight-karaf-empty for use by testing -->\r
43         <dependency>\r
44             <groupId>org.opendaylight.controller</groupId>\r
45             <artifactId>opendaylight-karaf-empty</artifactId>\r
46             <version>${odl.karaf.empty.distro.version}</version>\r
47             <type>zip</type>\r
48         </dependency>\r
49 \r
50 \r
51         <dependency>\r
52             <!-- Required for launching the feature tests -->\r
53             <groupId>org.opendaylight.odlparent</groupId>\r
54             <artifactId>features-test</artifactId>\r
55             <version>${odl.commons.opendaylight.version}</version>\r
56             <scope>test</scope>\r
57         </dependency>\r
58 \r
59         <dependency>\r
60             <groupId>org.opendaylight.yangtools</groupId>\r
61             <artifactId>features-yangtools</artifactId>\r
62             <version>${odl.yangtools.version}</version>\r
63             <classifier>features</classifier>\r
64             <type>xml</type>\r
65             <scope>runtime</scope>\r
66         </dependency>\r
67     </dependencies>\r
68 \r
69     <build>\r
70         <resources>\r
71             <resource>\r
72                 <filtering>true</filtering>\r
73                 <directory>src/main/resources</directory>\r
74             </resource>\r
75         </resources>\r
76         <plugins>\r
77             <plugin>\r
78                 <groupId>org.apache.maven.plugins</groupId>\r
79                 <artifactId>maven-resources-plugin</artifactId>\r
80                 <executions>\r
81                     <execution>\r
82                         <id>filter</id>\r
83                         <goals>\r
84                             <goal>resources</goal>\r
85                         </goals>\r
86                         <phase>generate-resources</phase>\r
87                     </execution>\r
88                 </executions>\r
89             </plugin>\r
90                     <!-- launches the feature test, which validates that your karaf feature\r
91                     can be installed inside of a karaf container. It doesn't validate that your\r
92                     functionality works correctly, just that you have all of the dependent bundles\r
93                     defined correctly.\r
94             <plugin>\r
95 \r
96                 <groupId>org.apache.maven.plugins</groupId>\r
97                 <artifactId>maven-surefire-plugin</artifactId>\r
98                 <version>2.16</version>\r
99                 <configuration>\r
100                     <systemPropertyVariables>\r
101                         <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>\r
102                         <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>\r
103                         <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>\r
104                     </systemPropertyVariables>\r
105                     <dependenciesToScan>\r
106                         <dependency>org.opendaylight.yangtools:features-test</dependency>\r
107                     </dependenciesToScan>\r
108                 </configuration>\r
109             </plugin>\r
110             -->\r
111             <plugin>\r
112                 <groupId>org.codehaus.mojo</groupId>\r
113                 <artifactId>build-helper-maven-plugin</artifactId>\r
114                 <executions>\r
115                     <execution>\r
116                         <id>attach-artifacts</id>\r
117                         <goals>\r
118                             <goal>attach-artifact</goal>\r
119                         </goals>\r
120                         <phase>package</phase>\r
121                         <configuration>\r
122                             <artifacts>\r
123                                 <artifact>\r
124                                     <file>${project.build.directory}/classes/${features.file}</file>\r
125                                     <type>xml</type>\r
126                                     <classifier>features</classifier>\r
127                                 </artifact>\r
128                             </artifacts>\r
129                         </configuration>\r
130                     </execution>\r
131                 </executions>\r
132             </plugin>\r
133         </plugins>\r
134     </build>\r
135 </project>\r