|
12 | 12 | <properties>
|
13 | 13 | <air.main.basedir>${project.parent.basedir}</air.main.basedir>
|
14 | 14 | <dep.slf4j.version>2.0.16</dep.slf4j.version>
|
| 15 | + <shadeBase>resolver.shaded</shadeBase> |
15 | 16 | </properties>
|
16 | 17 |
|
17 | 18 | <dependencies>
|
|
120 | 121 | <scope>test</scope>
|
121 | 122 | </dependency>
|
122 | 123 | </dependencies>
|
| 124 | + <build> |
| 125 | + <plugins> |
| 126 | + <plugin> |
| 127 | + <groupId>org.apache.maven.plugins</groupId> |
| 128 | + <artifactId>maven-shade-plugin</artifactId> |
| 129 | + <version>3.6.0</version> |
| 130 | + <executions> |
| 131 | + <execution> |
| 132 | + <phase>package</phase> |
| 133 | + <goals> |
| 134 | + <goal>shade</goal> |
| 135 | + </goals> |
| 136 | + <configuration> |
| 137 | + <shadeSourcesContent>true</shadeSourcesContent> |
| 138 | + <dependencyReducedPomLocation>${project.build.directory}/pom.xml</dependencyReducedPomLocation> |
| 139 | + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 140 | + <artifactSet> |
| 141 | + <excludes> |
| 142 | + <exclude>org.testng:testng</exclude> |
| 143 | + </excludes> |
| 144 | + </artifactSet> |
| 145 | + <relocations> |
| 146 | + <relocation> |
| 147 | + <pattern>com.google</pattern> |
| 148 | + <shadedPattern>${shadeBase}.com.google</shadedPattern> |
| 149 | + </relocation> |
| 150 | + <relocation> |
| 151 | + <pattern>javax.annotation</pattern> |
| 152 | + <shadedPattern>${shadeBase}.javax.annotation</shadedPattern> |
| 153 | + </relocation> |
| 154 | + <relocation> |
| 155 | + <pattern>javax.inject</pattern> |
| 156 | + <shadedPattern>${shadeBase}.javax.inject</shadedPattern> |
| 157 | + </relocation> |
| 158 | + <relocation> |
| 159 | + <pattern>javax.decorator</pattern> |
| 160 | + <shadedPattern>${shadeBase}.javax.decorator</shadedPattern> |
| 161 | + </relocation> |
| 162 | + <relocation> |
| 163 | + <pattern>javax.enterprise</pattern> |
| 164 | + <shadedPattern>${shadeBase}.javax.enterprise</shadedPattern> |
| 165 | + </relocation> |
| 166 | + <relocation> |
| 167 | + <pattern>org.aopalliance</pattern> |
| 168 | + <shadedPattern>${shadeBase}.org.aopalliance</shadedPattern> |
| 169 | + </relocation> |
| 170 | + <relocation> |
| 171 | + <pattern>org.apache.commons.codec</pattern> |
| 172 | + <shadedPattern>${shadeBase}.org.apache.commons.codec</shadedPattern> |
| 173 | + </relocation> |
| 174 | + <relocation> |
| 175 | + <pattern>org.apache.commons.lang3</pattern> |
| 176 | + <shadedPattern>${shadeBase}.org.apache.commons.lang3</shadedPattern> |
| 177 | + </relocation> |
| 178 | + <relocation> |
| 179 | + <pattern>org.apache.maven</pattern> |
| 180 | + <shadedPattern>${shadeBase}.org.apache.maven</shadedPattern> |
| 181 | + </relocation> |
| 182 | + <relocation> |
| 183 | + <pattern>org.apache.http</pattern> |
| 184 | + <shadedPattern>${shadeBase}.org.apache.http</shadedPattern> |
| 185 | + </relocation> |
| 186 | + <relocation> |
| 187 | + <pattern>org.checkerframework</pattern> |
| 188 | + <shadedPattern>${shadeBase}.org.checkerframework</shadedPattern> |
| 189 | + </relocation> |
| 190 | + <relocation> |
| 191 | + <pattern>org.codehaus.classworlds</pattern> |
| 192 | + <shadedPattern>${shadeBase}.org.codehaus.classworlds</shadedPattern> |
| 193 | + </relocation> |
| 194 | + <relocation> |
| 195 | + <pattern>org.codehaus.plexus</pattern> |
| 196 | + <shadedPattern>${shadeBase}.org.codehaus.plexus</shadedPattern> |
| 197 | + </relocation> |
| 198 | + <relocation> |
| 199 | + <pattern>org.eclipse.sisu</pattern> |
| 200 | + <shadedPattern>${shadeBase}.org.eclipse.sisu</shadedPattern> |
| 201 | + </relocation> |
| 202 | + <relocation> |
| 203 | + <pattern>org.slf4j</pattern> |
| 204 | + <shadedPattern>${shadeBase}.org.slf4j</shadedPattern> |
| 205 | + </relocation> |
| 206 | + </relocations> |
| 207 | + <filters> |
| 208 | + <filter> |
| 209 | + <artifact>*:*</artifact> |
| 210 | + <excludes> |
| 211 | + <exclude>META-INF/maven/**</exclude> |
| 212 | + <exclude>META-INF/*.SF</exclude> |
| 213 | + <exclude>META-INF/*.DSA</exclude> |
| 214 | + <exclude>META-INF/*.RSA</exclude> |
| 215 | + <exclude>META-INF/services/**</exclude> |
| 216 | + </excludes> |
| 217 | + </filter> |
| 218 | + <filter> |
| 219 | + <artifact>org.apache.httpcomponents:httpclient</artifact> |
| 220 | + <excludes> |
| 221 | + <exclude>mozilla/**</exclude> |
| 222 | + </excludes> |
| 223 | + </filter> |
| 224 | + <filter> |
| 225 | + <artifact>org.codehaus.plexus:plexus-utils</artifact> |
| 226 | + <excludes> |
| 227 | + <exclude>META-INF/versions/**</exclude> |
| 228 | + <exclude>licenses/**</exclude> |
| 229 | + </excludes> |
| 230 | + </filter> |
| 231 | + <filter> |
| 232 | + <artifact>org.eclipse.sisu:org.eclipse.sisu.inject</artifact> |
| 233 | + <excludes> |
| 234 | + <exclude>about.html</exclude> |
| 235 | + <exclude>plugin.xml</exclude> |
| 236 | + </excludes> |
| 237 | + </filter> |
| 238 | + <filter> |
| 239 | + <artifact>org.eclipse.sisu:org.eclipse.sisu.plexus</artifact> |
| 240 | + <excludes> |
| 241 | + <exclude>about.html</exclude> |
| 242 | + </excludes> |
| 243 | + </filter> |
| 244 | + <filter> |
| 245 | + <artifact>javax.enterprise:cdi-api</artifact> |
| 246 | + <excludes> |
| 247 | + <exclude>beans_1_0.xsd</exclude> |
| 248 | + <exclude>beans_1_1.xsd</exclude> |
| 249 | + </excludes> |
| 250 | + </filter> |
| 251 | + </filters> |
| 252 | + </configuration> |
| 253 | + </execution> |
| 254 | + </executions> |
| 255 | + </plugin> |
| 256 | + </plugins> |
| 257 | + </build> |
123 | 258 | </project>
|
0 commit comments