Bump versions to 3.0.5-SNAPSHOT
[controller.git] / akka / repackaged-akka / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11     <modelVersion>4.0.0</modelVersion>
12
13     <parent>
14         <groupId>org.opendaylight.controller</groupId>
15         <artifactId>bundle-parent</artifactId>
16         <version>3.0.5-SNAPSHOT</version>
17         <relativePath>../../bundle-parent</relativePath>
18     </parent>
19
20     <artifactId>repackaged-akka</artifactId>
21     <packaging>bundle</packaging>
22     <name>${project.artifactId}</name>
23
24     <properties>
25         <!-- We are just juggling classes here -->
26         <odlparent.modernizer.skip>true</odlparent.modernizer.skip>
27         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
28
29         <!-- We do not want to generate javadoc -->
30         <maven.javadoc.skip>true</maven.javadoc.skip>
31     </properties>
32
33     <dependencies>
34         <dependency>
35             <groupId>org.opendaylight.controller</groupId>
36             <artifactId>repackaged-akka-jar</artifactId>
37             <version>${project.version}</version>
38             <scope>provided</scope>
39         </dependency>
40
41         <dependency>
42             <groupId>com.typesafe</groupId>
43             <artifactId>config</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>com.typesafe</groupId>
47             <artifactId>ssl-config-core_2.13</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>io.aeron</groupId>
51             <artifactId>aeron-client</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>io.aeron</groupId>
55             <artifactId>aeron-driver</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>io.netty</groupId>
59             <artifactId>netty</artifactId>
60             <version>3.10.6.Final</version>
61         </dependency>
62         <dependency>
63             <groupId>org.agrona</groupId>
64             <artifactId>agrona</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.reactivestreams</groupId>
68             <artifactId>reactive-streams</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>org.scala-lang</groupId>
72             <artifactId>scala-library</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.scala-lang</groupId>
76             <artifactId>scala-reflect</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.scala-lang.modules</groupId>
80             <artifactId>scala-java8-compat_2.13</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.scala-lang.modules</groupId>
84             <artifactId>scala-parser-combinators_2.13</artifactId>
85         </dependency>
86     </dependencies>
87
88     <build>
89         <plugins>
90             <plugin>
91                 <artifactId>maven-dependency-plugin</artifactId>
92                 <executions>
93                     <execution>
94                         <id>unpack-license</id>
95                         <configuration>
96                             <!-- Akka is Apache-2.0 licensed -->
97                             <skip>true</skip>
98                         </configuration>
99                     </execution>
100                     <execution>
101                         <id>unpack</id>
102                         <phase>compile</phase>
103                         <goals>
104                             <goal>unpack</goal>
105                         </goals>
106                         <configuration>
107                             <artifactItems>
108                                 <artifactItem>
109                                     <groupId>org.opendaylight.controller</groupId>
110                                     <artifactId>repackaged-akka-jar</artifactId>
111                                     <version>${project.version}</version>
112                                 </artifactItem>
113                             </artifactItems>
114                             <overWriteReleases>false</overWriteReleases>
115                             <overWriteSnapshots>true</overWriteSnapshots>
116                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
117                         </configuration>
118                     </execution>
119                     <execution>
120                         <id>unpack-sources</id>
121                         <phase>prepare-package</phase>
122                         <goals>
123                             <goal>unpack-dependencies</goal>
124                         </goals>
125                         <configuration>
126                             <classifier>sources</classifier>
127                             <includeArtifactIds>repackaged-akka-jar</includeArtifactIds>
128                             <outputDirectory>${project.build.directory}/shaded-sources</outputDirectory>
129                         </configuration>
130                     </execution>
131                 </executions>
132             </plugin>
133             <plugin>
134                 <artifactId>maven-antrun-plugin</artifactId>
135                 <executions>
136                     <execution>
137                         <id>move-resources</id>
138                         <phase>prepare-package</phase>
139                         <goals>
140                             <goal>run</goal>
141                         </goals>
142                         <configuration>
143                             <target>
144                                 <move todir="${project.build.directory}/resources">
145                                     <fileset dir="${project.build.directory}/classes">
146                                         <include name="*.conf"/>
147                                     </fileset>
148                                 </move>
149                             </target>
150                         </configuration>
151                     </execution>
152                 </executions>
153             </plugin>
154             <plugin>
155                 <groupId>org.codehaus.mojo</groupId>
156                 <artifactId>build-helper-maven-plugin</artifactId>
157                 <executions>
158                     <execution>
159                         <id>shaded-sources</id>
160                         <phase>prepare-package</phase>
161                         <goals>
162                            <goal>add-source</goal>
163                         </goals>
164                         <configuration>
165                             <sources>${project.build.directory}/shaded-sources</sources>
166                         </configuration>
167                     </execution>
168                     <execution>
169                         <id>shaded-resources</id>
170                         <phase>prepare-package</phase>
171                         <goals>
172                            <goal>add-resource</goal>
173                         </goals>
174                         <configuration>
175                             <resources>
176                                 <resource>
177                                     <directory>${project.build.directory}/resources</directory>
178                                 </resource>
179                             </resources>
180                         </configuration>
181                     </execution>
182                 </executions>
183             </plugin>
184             <plugin>
185                 <groupId>org.apache.felix</groupId>
186                 <artifactId>maven-bundle-plugin</artifactId>
187                 <extensions>true</extensions>
188                 <configuration>
189                     <instructions>
190                         <Export-Package>
191                             akka.*,
192                             com.typesafe.sslconfig.akka.*,
193                         </Export-Package>
194                         <Import-Package>
195                             sun.misc;resolution:=optional,
196                             sun.reflect;resolution:=optional,
197                             org.fusesource.leveldbjni;resolution:=optional,
198                             org.iq80.leveldb;resolution:=optional,
199                             org.iq80.leveldb.impl;resolution:=optional,
200                             *
201                         </Import-Package>
202                     </instructions>
203                 </configuration>
204             </plugin>
205         </plugins>
206     </build>
207 </project>