Release aaa
[aaa.git] / aaa-shiro / repackaged-shiro / 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.aaa</groupId>
15         <artifactId>aaa-parent</artifactId>
16         <version>0.18.4</version>
17         <relativePath>../../parent</relativePath>
18     </parent>
19
20     <artifactId>repackaged-shiro</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.aaa</groupId>
36             <artifactId>repackaged-shiro-jar</artifactId>
37             <version>${project.version}</version>
38             <scope>provided</scope>
39         </dependency>
40         <dependency>
41             <groupId>javax.servlet</groupId>
42             <artifactId>javax.servlet-api</artifactId>
43             <scope>provided</scope>
44         </dependency>
45         <dependency>
46             <groupId>commons-beanutils</groupId>
47             <artifactId>commons-beanutils</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>org.owasp.encoder</groupId>
51             <artifactId>encoder</artifactId>
52             <version>1.2.3</version>
53         </dependency>
54     </dependencies>
55
56     <build>
57         <plugins>
58             <plugin>
59                 <artifactId>maven-dependency-plugin</artifactId>
60                 <executions>
61                     <execution>
62                         <id>unpack-license</id>
63                         <configuration>
64                             <!-- Shiro is Apache-2.0 licensed -->
65                             <skip>true</skip>
66                         </configuration>
67                     </execution>
68                     <execution>
69                         <id>unpack</id>
70                         <phase>compile</phase>
71                         <goals>
72                             <goal>unpack</goal>
73                         </goals>
74                         <configuration>
75                             <artifactItems>
76                                 <artifactItem>
77                                     <groupId>org.opendaylight.aaa</groupId>
78                                     <artifactId>repackaged-shiro-jar</artifactId>
79                                     <version>${project.version}</version>
80                                 </artifactItem>
81                             </artifactItems>
82                             <overWriteReleases>false</overWriteReleases>
83                             <overWriteSnapshots>true</overWriteSnapshots>
84                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
85                         </configuration>
86                     </execution>
87                     <execution>
88                         <id>unpack-sources</id>
89                         <phase>prepare-package</phase>
90                         <goals>
91                             <goal>unpack-dependencies</goal>
92                         </goals>
93                         <configuration>
94                             <classifier>sources</classifier>
95                             <includeArtifactIds>repackaged-shiro-jar</includeArtifactIds>
96                             <outputDirectory>${project.build.directory}/shaded-sources</outputDirectory>
97                         </configuration>
98                     </execution>
99                 </executions>
100             </plugin>
101             <plugin>
102                 <groupId>org.codehaus.mojo</groupId>
103                 <artifactId>build-helper-maven-plugin</artifactId>
104                 <executions>
105                     <execution>
106                         <id>shaded-sources</id>
107                         <phase>prepare-package</phase>
108                         <goals>
109                            <goal>add-source</goal>
110                         </goals>
111                         <configuration>
112                             <sources>${project.build.directory}/shaded-sources</sources>
113                         </configuration>
114                     </execution>
115                     <execution>
116                         <id>shared-resources</id>
117                         <phase>prepare-package</phase>
118                         <goals>
119                            <goal>add-resource</goal>
120                         </goals>
121                         <configuration>
122                             <resources>
123                                 <resource>
124                                     <directory>${project.build.directory}/classes/META-INF</directory>
125                                     <targetPath>META-INF</targetPath>
126                                     <includes>
127                                         <include>DEPENDENCIES</include>
128                                         <include>LICENSE</include>
129                                         <include>NOTICE</include>
130                                         <include>shiro.tld</include>
131                                     </includes>
132                                 </resource>
133                             </resources>
134                         </configuration>
135                     </execution>
136                 </executions>
137             </plugin>
138             <plugin>
139                 <groupId>org.apache.felix</groupId>
140                 <artifactId>maven-bundle-plugin</artifactId>
141                 <extensions>true</extensions>
142                 <configuration>
143                     <instructions>
144                         <Include-Resource>
145                             {maven-resources},
146                             META-INF/git.properties=-${project.build.directory}/classes/META-INF/git.properties,
147                             META-INF/services=-${project.build.directory}/classes/META-INF/services
148                         </Include-Resource>
149                         <Import-Package>
150                             javax.servlet.jsp;resolution:=optional,
151                             javax.servlet.jsp.tagext;resolution:=optional,
152                             org.apache.commons.configuration2.interpol;resolution:=optional,
153                             *
154                         </Import-Package>
155                     </instructions>
156                 </configuration>
157             </plugin>
158         </plugins>
159     </build>
160 </project>