8d49a4cfca28313a140498c3ec13b556ccbb5858
[netconf.git] / netconf / shaded-exificient / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4   ~
5   ~ This program and the accompanying materials are made available under the
6   ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
7   ~ and is available at http://www.eclipse.org/legal/epl-v10.html
8   -->
9 <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">
10     <modelVersion>4.0.0</modelVersion>
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>5.0.11</version>
16         <relativePath/>
17     </parent>
18
19     <groupId>org.opendaylight.netconf</groupId>
20     <artifactId>shaded-exificient</artifactId>
21     <packaging>bundle</packaging>
22     <version>1.7.4-SNAPSHOT</version>
23     <name>${project.artifactId}</name>
24
25     <properties>
26         <!-- We do not want to generate javadoc -->
27         <maven.javadoc.skip>true</maven.javadoc.skip>
28     </properties>
29
30     <dependencies>
31         <dependency>
32             <groupId>org.opendaylight.netconf</groupId>
33             <artifactId>shaded-exificient-jar</artifactId>
34             <version>1.7.4-SNAPSHOT</version>
35             <scope>provided</scope>
36         </dependency>
37     </dependencies>
38
39     <build>
40         <plugins>
41             <plugin>
42                 <groupId>org.apache.maven.plugins</groupId>
43                 <artifactId>maven-dependency-plugin</artifactId>
44                 <executions>
45                     <execution>
46                         <id>unpack</id>
47                         <phase>compile</phase>
48                         <goals>
49                             <goal>unpack</goal>
50                         </goals>
51                         <configuration>
52                             <artifactItems>
53                                 <artifactItem>
54                                     <groupId>org.opendaylight.netconf</groupId>
55                                     <artifactId>shaded-exificient-jar</artifactId>
56                                     <version>${project.version}</version>
57                                 </artifactItem>
58                             </artifactItems>
59                             <overWriteReleases>false</overWriteReleases>
60                             <overWriteSnapshots>true</overWriteSnapshots>
61                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
62                         </configuration>
63                     </execution>
64                     <execution>
65                         <id>unpack-sources</id>
66                         <phase>generate-sources</phase>
67                         <goals>
68                             <goal>unpack-dependencies</goal>
69                         </goals>
70                         <configuration>
71                             <classifier>sources</classifier>
72                             <includeArtifactIds>shaded-exificient-jar</includeArtifactIds>
73                             <outputDirectory>${project.build.directory}/shaded-sources</outputDirectory>
74                         </configuration>
75                     </execution>
76                 </executions>
77             </plugin>
78             <plugin>
79                 <groupId>org.codehaus.mojo</groupId>
80                 <artifactId>build-helper-maven-plugin</artifactId>
81                 <executions>
82                     <execution>
83                         <phase>prepare-package</phase>
84                         <goals>
85                             <goal>add-source</goal>
86                         </goals>
87                         <configuration>
88                             <sources>
89                                 <source>${project.build.directory}/shaded-sources</source>
90                             </sources>
91                         </configuration>
92                     </execution>
93                 </executions>
94             </plugin>
95             <plugin>
96                 <groupId>org.apache.felix</groupId>
97                 <artifactId>maven-bundle-plugin</artifactId>
98                 <extensions>true</extensions>
99                 <configuration>
100                     <instructions>
101                         <Import-Package>
102                             sun.io;resolution:=optional,
103                             *
104                         </Import-Package>
105                         <Export-Package>
106                             org.opendaylight.netconf.shaded.*
107                         </Export-Package>
108                     </instructions>
109                 </configuration>
110             </plugin>
111         </plugins>
112     </build>
113 </project>