Merge changes If4efc2c9,I8debbf74,Ied5296d8
[aaa.git] / aaa-shiro / repackaged-shiro-jar / 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.odlparent</groupId>
15         <artifactId>odlparent</artifactId>
16         <version>13.0.1</version>
17         <relativePath/>
18     </parent>
19
20     <groupId>org.opendaylight.aaa</groupId>
21     <artifactId>repackaged-shiro-jar</artifactId>
22     <packaging>jar</packaging>
23     <version>0.18.0-SNAPSHOT</version>
24     <name>${project.artifactId}</name>
25
26     <properties>
27         <!-- We do not want to leak this artifact -->
28         <maven.deploy.skip>true</maven.deploy.skip>
29     </properties>
30
31     <dependencies>
32         <dependency>
33             <groupId>org.apache.shiro</groupId>
34             <artifactId>shiro-core</artifactId>
35             <version>1.11.0</version>
36         </dependency>
37         <dependency>
38             <groupId>org.apache.shiro</groupId>
39             <artifactId>shiro-web</artifactId>
40             <version>1.11.0</version>
41         </dependency>
42     </dependencies>
43
44     <build>
45         <plugins>
46             <plugin>
47                 <artifactId>maven-dependency-plugin</artifactId>
48                 <executions>
49                     <execution>
50                         <id>unpack-license</id>
51                         <configuration>
52                             <!-- Shiro is Apache-2.0 licensed -->
53                             <skip>true</skip>
54                         </configuration>
55                     </execution>
56                 </executions>
57             </plugin>
58             <plugin>
59                 <artifactId>maven-shade-plugin</artifactId>
60                 <executions>
61                     <execution>
62                         <phase>package</phase>
63                         <goals>
64                             <goal>shade</goal>
65                         </goals>
66                         <configuration>
67                             <createDependencyReducedPom>false</createDependencyReducedPom>
68                             <shadeSourcesContent>true</shadeSourcesContent>
69                             <createSourcesJar>true</createSourcesJar>
70                             <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
71                             <artifactSet>
72                                 <includes>
73                                     <include>org.apache.shiro:shiro-core</include>
74                                     <include>org.apache.shiro:shiro-web</include>
75                                 </includes>
76                             </artifactSet>
77                             <filters>
78                                 <filter>
79                                     <artifact>org.apache.shiro:shiro-core</artifact>
80                                     <excludes>
81                                         <exclude>META-INF/DEPENDENCIES</exclude>
82                                         <exclude>META-INF/MANIFEST.MF</exclude>
83                                         <exclude>META-INF/LICENSE</exclude>
84                                         <exclude>META-INF/NOTICE</exclude>
85                                     </excludes>
86                                 </filter>
87                                 <filter>
88                                     <artifact>org.apache.shiro:shiro-web</artifact>
89                                     <excludes>
90                                         <exclude>META-INF/MANIFEST.MF</exclude>
91                                     </excludes>
92                                 </filter>
93                             </filters>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98         </plugins>
99     </build>
100 </project>