blob: d2ec8f00eafc147786312f1442d36d107d2f1314 [file] [log] [blame]
Jonathan Hart335ef462014-10-16 08:20:46 -07001<?xml version="1.0" encoding="UTF-8"?>
Thomas Vachuska24c849c2014-10-27 09:53:05 -07002<!--
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07003 ~ Copyright 2014 Open Networking Laboratory
Thomas Vachuska24c849c2014-10-27 09:53:05 -07004 ~
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07005 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
Thomas Vachuska24c849c2014-10-27 09:53:05 -07008 ~
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07009 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
Thomas Vachuska24c849c2014-10-27 09:53:05 -070016 -->
Jonathan Hart335ef462014-10-16 08:20:46 -070017<project xmlns="http://maven.apache.org/POM/4.0.0"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21
22 <parent>
Brian O'Connorabafb502014-12-02 22:26:20 -080023 <groupId>org.onosproject</groupId>
Jonathan Hart335ef462014-10-16 08:20:46 -070024 <artifactId>onlab-utils</artifactId>
Brian O'Connor880dc20d2015-12-16 22:53:14 -080025 <version>1.5.0-SNAPSHOT</version>
Jonathan Hart335ef462014-10-16 08:20:46 -070026 <relativePath>../pom.xml</relativePath>
27 </parent>
28
29 <artifactId>onlab-thirdparty</artifactId>
30 <packaging>bundle</packaging>
31
32 <description>ONLab third-party dependencies</description>
33
34 <dependencies>
35 <dependency>
36 <groupId>com.googlecode.concurrent-trees</groupId>
37 <artifactId>concurrent-trees</artifactId>
Jonathan Hart335ef462014-10-16 08:20:46 -070038 </dependency>
Yuta HIGUCHI0c1c1002014-11-05 13:47:25 -080039
Brian O'Connore79b0252015-09-04 15:55:03 -070040 <dependency>
Madan Jampani3289fbf2016-01-13 14:14:27 -080041 <groupId>commons-io</groupId>
42 <artifactId>commons-io</artifactId>
43 <version>${commons.io.version}</version>
44 </dependency>
45
46 <dependency>
47 <groupId>io.atomix</groupId>
48 <artifactId>atomix</artifactId>
49 <version>${atomix.version}</version>
50 </dependency>
51
52 <dependency>
Brian O'Connore79b0252015-09-04 15:55:03 -070053 <!-- FIXME once fixes get merged to upstream -->
54 <groupId>org.onosproject</groupId>
55 <artifactId>copycat-api</artifactId>
56 <version>${copycat.version}</version>
57 </dependency>
Madan Jampani9b37d572014-11-12 11:53:24 -080058
Brian O'Connore79b0252015-09-04 15:55:03 -070059 <dependency>
60 <!-- FIXME once fixes get merged to upstream -->
61 <groupId>org.onosproject</groupId>
62 <artifactId>copycat-core</artifactId>
63 <version>${copycat.version}</version>
64 </dependency>
Jonathan Hart335ef462014-10-16 08:20:46 -070065 </dependencies>
66
67 <build>
68 <plugins>
69 <plugin>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-shade-plugin</artifactId>
Madan Jampani3289fbf2016-01-13 14:14:27 -080072 <version>2.4.1</version>
Jonathan Hart335ef462014-10-16 08:20:46 -070073 <configuration>
HIGUCHI Yuta41ed8542015-04-20 14:17:02 -070074 <createSourcesJar>true</createSourcesJar>
75
76 <artifactSet>
77 <excludes>
78 <!-- exclude OSGi-ready transitive dependencies -->
79 <exclude>com.google.guava:guava</exclude>
80 <exclude>com.esotericsoftware:*</exclude>
81 <exclude>org.ow2.asm:asm</exclude>
82 <exclude>org.objenesis:objenesis</exclude>
83 <exclude>io.netty:*</exclude>
84 </excludes>
85 </artifactSet>
86
Jonathan Hart335ef462014-10-16 08:20:46 -070087 <filters>
Yuta HIGUCHI0c1c1002014-11-05 13:47:25 -080088
Jonathan Hart335ef462014-10-16 08:20:46 -070089 <filter>
90 <artifact>com.googlecode.concurrent-trees:concurrent-trees</artifact>
91 <includes>
92 <include>com/googlecode/**</include>
93 </includes>
Jonathan Hart335ef462014-10-16 08:20:46 -070094 </filter>
Yuta HIGUCHI0c1c1002014-11-05 13:47:25 -080095
Jonathan Hart335ef462014-10-16 08:20:46 -070096 <filter>
Madan Jampani3289fbf2016-01-13 14:14:27 -080097 <artifact>commons-io:commons-io</artifact>
98 <includes>
99 <include>org/apache/commons/io/**</include>
100 </includes>
101 </filter>
102
103 <filter>
Madan Jampanicb7ab082015-02-06 15:33:03 -0800104 <artifact>org.onosproject:copycat*</artifact>
Yuta HIGUCHI0c1c1002014-11-05 13:47:25 -0800105 <includes>
Madan Jampani09342702015-02-05 23:32:40 -0800106 <include>**</include>
Yuta HIGUCHI0c1c1002014-11-05 13:47:25 -0800107 </includes>
108 </filter>
Yuta HIGUCHI0c1c1002014-11-05 13:47:25 -0800109
Madan Jampani3289fbf2016-01-13 14:14:27 -0800110 <filter>
111 <artifact>io.atomix:atomix-all</artifact>
112 <includes>
113 <include>**</include>
114 </includes>
115 </filter>
116
Jonathan Hart335ef462014-10-16 08:20:46 -0700117 </filters>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800118 <transformers>
119 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
120 <resource>META-INF/services/io.atomix.catalyst.serializer.CatalystSerializable</resource>
121 </transformer>
122 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
123 <resource>META-INF/services/io.atomix.resource.Resource</resource>
124 </transformer>
125 </transformers>
Jonathan Hart335ef462014-10-16 08:20:46 -0700126 </configuration>
127 <executions>
128 <execution>
129 <phase>package</phase>
130 <goals>
131 <goal>shade</goal>
132 </goals>
133 </execution>
134 </executions>
Yuta HIGUCHI0c1c1002014-11-05 13:47:25 -0800135 </plugin>
Jonathan Hart335ef462014-10-16 08:20:46 -0700136 <plugin>
137 <groupId>org.apache.felix</groupId>
138 <artifactId>maven-bundle-plugin</artifactId>
139 <configuration>
140 <instructions>
141 <Export-Package>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800142 com.googlecode.concurrenttrees.*;net.kuujo.copycat.*;io.atomix.*
Jonathan Hart335ef462014-10-16 08:20:46 -0700143 </Export-Package>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800144 <Import-Package>
145 !sun.nio.ch,!sun.misc,*
146 </Import-Package>
Jonathan Hart335ef462014-10-16 08:20:46 -0700147 </instructions>
148 </configuration>
149 </plugin>
150 </plugins>
151 </build>
152
153</project>