fb09ce29587fc9e6c1f55c893539293905447712
[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>11.0.0</version>
16         <relativePath/>
17     </parent>
18
19     <groupId>org.opendaylight.netconf</groupId>
20     <artifactId>shaded-exificient</artifactId>
21     <packaging>bundle</packaging>
22     <version>4.0.0-SNAPSHOT</version>
23     <name>${project.artifactId}</name>
24
25     <properties>
26         <!-- We are just juggling classes here -->
27         <odlparent.modernizer.skip>true</odlparent.modernizer.skip>
28         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
29
30         <!-- We do not want to generate javadoc -->
31         <maven.javadoc.skip>true</maven.javadoc.skip>
32     </properties>
33
34     <dependencies>
35         <dependency>
36             <groupId>org.opendaylight.netconf</groupId>
37             <artifactId>shaded-exificient-jar</artifactId>
38             <version>4.0.0-SNAPSHOT</version>
39             <scope>provided</scope>
40         </dependency>
41     </dependencies>
42
43     <build>
44         <plugins>
45             <plugin>
46                 <groupId>org.apache.maven.plugins</groupId>
47                 <artifactId>maven-dependency-plugin</artifactId>
48                 <executions>
49                     <execution>
50                         <id>unpack</id>
51                         <phase>compile</phase>
52                         <goals>
53                             <goal>unpack</goal>
54                         </goals>
55                         <configuration>
56                             <artifactItems>
57                                 <artifactItem>
58                                     <groupId>org.opendaylight.netconf</groupId>
59                                     <artifactId>shaded-exificient-jar</artifactId>
60                                     <version>${project.version}</version>
61                                 </artifactItem>
62                             </artifactItems>
63                             <overWriteReleases>false</overWriteReleases>
64                             <overWriteSnapshots>true</overWriteSnapshots>
65                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
66                         </configuration>
67                     </execution>
68                     <execution>
69                         <id>unpack-sources</id>
70                         <phase>generate-sources</phase>
71                         <goals>
72                             <goal>unpack-dependencies</goal>
73                         </goals>
74                         <configuration>
75                             <classifier>sources</classifier>
76                             <includeArtifactIds>shaded-exificient-jar</includeArtifactIds>
77                             <outputDirectory>${project.build.directory}/shaded-sources</outputDirectory>
78                         </configuration>
79                     </execution>
80                 </executions>
81             </plugin>
82             <plugin>
83                 <groupId>org.codehaus.mojo</groupId>
84                 <artifactId>build-helper-maven-plugin</artifactId>
85                 <executions>
86                     <execution>
87                         <phase>prepare-package</phase>
88                         <goals>
89                             <goal>add-source</goal>
90                         </goals>
91                         <configuration>
92                             <sources>
93                                 <source>${project.build.directory}/shaded-sources</source>
94                             </sources>
95                         </configuration>
96                     </execution>
97                 </executions>
98             </plugin>
99             <plugin>
100                 <groupId>org.apache.felix</groupId>
101                 <artifactId>maven-bundle-plugin</artifactId>
102                 <extensions>true</extensions>
103                 <configuration>
104                     <instructions>
105                         <Import-Package>
106                             sun.io;resolution:=optional,
107                             *
108                         </Import-Package>
109                         <Export-Package>
110                             org.opendaylight.netconf.shaded.*
111                         </Export-Package>
112                     </instructions>
113                 </configuration>
114             </plugin>
115         </plugins>
116     </build>
117 </project>