|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 |
| 3 | + http://maven.apache.org/maven-v4_0_0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <parent> |
| 7 | + <groupId>io.github.outscale</groupId> |
| 8 | + <artifactId>osc-sdk-java-parent</artifactId> |
| 9 | + <version>0.9.0</version> |
| 10 | + <relativePath>../pom.xml</relativePath> |
| 11 | + </parent> |
| 12 | + |
| 13 | + <artifactId>osc-sdk-java-bundle</artifactId> |
| 14 | + <packaging>jar</packaging> |
| 15 | + <name>osc-sdk-java Bundle (uber-jar)</name> |
| 16 | + |
| 17 | + <dependencies> |
| 18 | + <dependency> |
| 19 | + <groupId>io.github.outscale</groupId> |
| 20 | + <artifactId>osc-sdk-java</artifactId> |
| 21 | + <version>${project.version}</version> |
| 22 | + </dependency> |
| 23 | + </dependencies> |
| 24 | + |
| 25 | + <build> |
| 26 | + <plugins> |
| 27 | + <!-- Unpack sources and javadoc of dependencies --> |
| 28 | + <plugin> |
| 29 | + <groupId>org.apache.maven.plugins</groupId> |
| 30 | + <artifactId>maven-dependency-plugin</artifactId> |
| 31 | + <version>3.6.1</version> |
| 32 | + <executions> |
| 33 | + <execution> |
| 34 | + <id>unpack-dependency-sources</id> |
| 35 | + <phase>process-resources</phase> |
| 36 | + <goals> |
| 37 | + <goal>unpack-dependencies</goal> |
| 38 | + </goals> |
| 39 | + <configuration> |
| 40 | + <classifier>sources</classifier> |
| 41 | + <includeScope>compile</includeScope> |
| 42 | + <outputDirectory>${project.build.directory}/bundle-sources</outputDirectory> |
| 43 | + <excludeTransitive>false</excludeTransitive> |
| 44 | + </configuration> |
| 45 | + </execution> |
| 46 | + <execution> |
| 47 | + <id>unpack-dependency-javadocs</id> |
| 48 | + <phase>process-resources</phase> |
| 49 | + <goals> |
| 50 | + <goal>unpack-dependencies</goal> |
| 51 | + </goals> |
| 52 | + <configuration> |
| 53 | + <classifier>javadoc</classifier> |
| 54 | + <includeScope>compile</includeScope> |
| 55 | + <outputDirectory>${project.build.directory}/bundle-javadoc</outputDirectory> |
| 56 | + <excludeTransitive>false</excludeTransitive> |
| 57 | + </configuration> |
| 58 | + </execution> |
| 59 | + </executions> |
| 60 | + </plugin> |
| 61 | + |
| 62 | + <!-- Create aggregated sources and javadoc jars --> |
| 63 | + <plugin> |
| 64 | + <groupId>org.apache.maven.plugins</groupId> |
| 65 | + <artifactId>maven-jar-plugin</artifactId> |
| 66 | + <version>3.3.0</version> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <id>bundle-aggregated-sources</id> |
| 70 | + <phase>package</phase> |
| 71 | + <goals> |
| 72 | + <goal>jar</goal> |
| 73 | + </goals> |
| 74 | + <configuration> |
| 75 | + <classifier>sources</classifier> |
| 76 | + <classesDirectory>${project.build.directory}/bundle-sources</classesDirectory> |
| 77 | + <archive> |
| 78 | + <manifest> |
| 79 | + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 80 | + </manifest> |
| 81 | + </archive> |
| 82 | + </configuration> |
| 83 | + </execution> |
| 84 | + <execution> |
| 85 | + <id>bundle-aggregated-javadoc</id> |
| 86 | + <phase>package</phase> |
| 87 | + <goals> |
| 88 | + <goal>jar</goal> |
| 89 | + </goals> |
| 90 | + <configuration> |
| 91 | + <classifier>javadoc</classifier> |
| 92 | + <classesDirectory>${project.build.directory}/bundle-javadoc</classesDirectory> |
| 93 | + <archive> |
| 94 | + <manifest> |
| 95 | + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 96 | + </manifest> |
| 97 | + </archive> |
| 98 | + </configuration> |
| 99 | + </execution> |
| 100 | + </executions> |
| 101 | + </plugin> |
| 102 | + |
| 103 | + <plugin> |
| 104 | + <groupId>org.apache.maven.plugins</groupId> |
| 105 | + <artifactId>maven-shade-plugin</artifactId> |
| 106 | + <version>3.6.1</version> |
| 107 | + <configuration> |
| 108 | + <relocations> |
| 109 | + <relocation> |
| 110 | + <pattern>com.squareup.okhttp3</pattern> |
| 111 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.com.squareup.okhttp3</shadedPattern> |
| 112 | + </relocation> |
| 113 | + <relocation> |
| 114 | + <pattern>com.google.code.gson</pattern> |
| 115 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.com.google.code.gson</shadedPattern> |
| 116 | + </relocation> |
| 117 | + <relocation> |
| 118 | + <pattern>io.gsonfire</pattern> |
| 119 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.io.gsonfire</shadedPattern> |
| 120 | + </relocation> |
| 121 | + <relocation> |
| 122 | + <pattern>org.apache</pattern> |
| 123 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.org.apache</shadedPattern> |
| 124 | + </relocation> |
| 125 | + <relocation> |
| 126 | + <pattern>jakarta</pattern> |
| 127 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.jakarta</shadedPattern> |
| 128 | + </relocation> |
| 129 | + <relocation> |
| 130 | + <pattern>org.openapitools</pattern> |
| 131 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.org.openapitools</shadedPattern> |
| 132 | + </relocation> |
| 133 | + <relocation> |
| 134 | + <pattern>javax.ws.rs</pattern> |
| 135 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.javax.ws.rs</shadedPattern> |
| 136 | + </relocation> |
| 137 | + <relocation> |
| 138 | + <pattern>javax.annotation</pattern> |
| 139 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.javax.annotation</shadedPattern> |
| 140 | + </relocation> |
| 141 | + <relocation> |
| 142 | + <pattern>software.amazon.awssdk.auth</pattern> |
| 143 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.software.amazon.awssdk.auth</shadedPattern> |
| 144 | + </relocation> |
| 145 | + <relocation> |
| 146 | + <pattern>dev.failsafe</pattern> |
| 147 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.dev.failsae</shadedPattern> |
| 148 | + </relocation> |
| 149 | + <relocation> |
| 150 | + <pattern>org.junit</pattern> |
| 151 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.org.junit</shadedPattern> |
| 152 | + </relocation> |
| 153 | + <relocation> |
| 154 | + <pattern>org.mockito</pattern> |
| 155 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.org.mockito</shadedPattern> |
| 156 | + </relocation> |
| 157 | + <relocation> |
| 158 | + <pattern>org.bouncycastle</pattern> |
| 159 | + <shadedPattern>io.github.outscale.osc-sdk-java.thirdparty.org.bouncycastle</shadedPattern> |
| 160 | + </relocation> |
| 161 | + </relocations> |
| 162 | + <filters> |
| 163 | + <filter> |
| 164 | + <artifact>*:*</artifact> |
| 165 | + <excludes> |
| 166 | + <exclude>META-INF/*.SF</exclude> |
| 167 | + <exclude>META-INF/*.DSA</exclude> |
| 168 | + <exclude>META-INF/*.RSA</exclude> |
| 169 | + <exclude>META-INF/NOTICE.txt</exclude> |
| 170 | + <exclude>META-INF/NOTICE</exclude> |
| 171 | + <exclude>META-INF/LICENSE</exclude> |
| 172 | + <exclude>META-INF/LICENSE.txt</exclude> |
| 173 | + <exclude>META-INF/FastDoubleParser-LICENSE</exclude> |
| 174 | + <exclude>META-INF/FastDoubleParser-NOTICE</exclude> |
| 175 | + <exclude>module-info.class</exclude> |
| 176 | + <exclude>META-INF/versions/*/module-info.class</exclude> |
| 177 | + </excludes> |
| 178 | + </filter> |
| 179 | + </filters> |
| 180 | + </configuration> |
| 181 | + <executions> |
| 182 | + <execution> |
| 183 | + <phase>package</phase> |
| 184 | + <goals> |
| 185 | + <goal>shade</goal> |
| 186 | + </goals> |
| 187 | + </execution> |
| 188 | + </executions> |
| 189 | + </plugin> |
| 190 | + </plugins> |
| 191 | + </build> |
| 192 | +</project> |
0 commit comments