|
159 | 159 | <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
|
160 | 160 | <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
|
161 | 161 | <plugins>
|
162 |
| - <plugin> |
163 |
| - <groupId>org.apache.maven.plugins</groupId> |
164 |
| - <artifactId>maven-shade-plugin</artifactId> |
165 |
| - <configuration> |
166 |
| - <shadedArtifactAttached>false</shadedArtifactAttached> |
167 |
| - <artifactSet> |
168 |
| - <includes> |
169 |
| - <include>org.scala-lang:scala-library</include> |
170 |
| - <include>com.fasterxml.jackson.core:jackson-annotations</include> |
171 |
| - <include>com.fasterxml.jackson.core:jackson-core</include> |
172 |
| - <include>com.fasterxml.jackson.core:jackson-databind</include> |
173 |
| - <include>com.fasterxml.jackson.module:jackson-module-scala_2.12</include> |
174 |
| - <include>org.apache.kyuubi:kyuubi-common_${scala.binary.version}</include> |
175 |
| - <include>org.apache.kyuubi:kyuubi-events_${scala.binary.version}</include> |
176 |
| - <include>org.apache.kyuubi:kyuubi-ha_${scala.binary.version}</include> |
177 |
| - <include>org.apache.curator:curator-client</include> |
178 |
| - <include>org.apache.curator:curator-framework</include> |
179 |
| - <include>org.apache.curator:curator-recipes</include> |
180 |
| - </includes> |
181 |
| - </artifactSet> |
182 |
| - <filters> |
183 |
| - <filter> |
184 |
| - <artifact>*:*</artifact> |
185 |
| - <excludes> |
186 |
| - <exclude>META-INF/*.SF</exclude> |
187 |
| - <exclude>META-INF/*.DSA</exclude> |
188 |
| - <exclude>META-INF/*.RSA</exclude> |
189 |
| - <exclude>META-INF/DEPENDENCIES</exclude> |
190 |
| - <exclude>META-INF/LICENSE.txt</exclude> |
191 |
| - <exclude>META-INF/NOTICE.txt</exclude> |
192 |
| - <exclude>META-INF/maven/**</exclude> |
193 |
| - <exclude>LICENSE.txt</exclude> |
194 |
| - <exclude>NOTICE.txt</exclude> |
195 |
| - <exclude>mozilla/**</exclude> |
196 |
| - <exclude>**/module-info.class</exclude> |
197 |
| - </excludes> |
198 |
| - </filter> |
199 |
| - </filters> |
200 |
| - <relocations> |
201 |
| - <relocation> |
202 |
| - <pattern>org.apache.curator</pattern> |
203 |
| - <shadedPattern>${kyuubi.shade.packageName}.org.apache.curator</shadedPattern> |
| 162 | + <plugin> |
| 163 | + <groupId>org.apache.maven.plugins</groupId> |
| 164 | + <artifactId>maven-shade-plugin</artifactId> |
| 165 | + <configuration> |
| 166 | + <shadedArtifactAttached>false</shadedArtifactAttached> |
| 167 | + <artifactSet> |
204 | 168 | <includes>
|
205 |
| - <include>org.apache.curator.**</include> |
| 169 | + <include>org.scala-lang:scala-library</include> |
| 170 | + <include>com.fasterxml.jackson.core:jackson-annotations</include> |
| 171 | + <include>com.fasterxml.jackson.core:jackson-core</include> |
| 172 | + <include>com.fasterxml.jackson.core:jackson-databind</include> |
| 173 | + <include>com.fasterxml.jackson.module:jackson-module-scala_${scala.binary.version}</include> |
| 174 | + <include>org.apache.kyuubi:kyuubi-common_${scala.binary.version}</include> |
| 175 | + <include>org.apache.kyuubi:kyuubi-events_${scala.binary.version}</include> |
| 176 | + <include>org.apache.kyuubi:kyuubi-ha_${scala.binary.version}</include> |
| 177 | + <include>org.apache.curator:curator-client</include> |
| 178 | + <include>org.apache.curator:curator-framework</include> |
| 179 | + <include>org.apache.curator:curator-recipes</include> |
206 | 180 | </includes>
|
207 |
| - </relocation> |
208 |
| - </relocations> |
209 |
| - </configuration> |
210 |
| - <executions> |
211 |
| - <execution> |
212 |
| - <phase>package</phase> |
213 |
| - <goals> |
214 |
| - <goal>shade</goal> |
215 |
| - </goals> |
216 |
| - </execution> |
217 |
| - </executions> |
218 |
| - </plugin> |
| 181 | + </artifactSet> |
| 182 | + <filters> |
| 183 | + <filter> |
| 184 | + <artifact>*:*</artifact> |
| 185 | + <excludes> |
| 186 | + <exclude>META-INF/*.SF</exclude> |
| 187 | + <exclude>META-INF/*.DSA</exclude> |
| 188 | + <exclude>META-INF/*.RSA</exclude> |
| 189 | + <exclude>META-INF/DEPENDENCIES</exclude> |
| 190 | + <exclude>META-INF/LICENSE.txt</exclude> |
| 191 | + <exclude>META-INF/NOTICE.txt</exclude> |
| 192 | + <exclude>META-INF/maven/**</exclude> |
| 193 | + <exclude>LICENSE.txt</exclude> |
| 194 | + <exclude>NOTICE.txt</exclude> |
| 195 | + <exclude>mozilla/**</exclude> |
| 196 | + <exclude>**/module-info.class</exclude> |
| 197 | + </excludes> |
| 198 | + </filter> |
| 199 | + </filters> |
| 200 | + <relocations> |
| 201 | + <relocation> |
| 202 | + <pattern>org.apache.curator</pattern> |
| 203 | + <shadedPattern>${kyuubi.shade.packageName}.org.apache.curator</shadedPattern> |
| 204 | + <includes> |
| 205 | + <include>org.apache.curator.**</include> |
| 206 | + </includes> |
| 207 | + </relocation> |
| 208 | + </relocations> |
| 209 | + </configuration> |
| 210 | + <executions> |
| 211 | + <execution> |
| 212 | + <phase>package</phase> |
| 213 | + <goals> |
| 214 | + <goal>shade</goal> |
| 215 | + </goals> |
| 216 | + </execution> |
| 217 | + </executions> |
| 218 | + </plugin> |
219 | 219 | </plugins>
|
220 | 220 | </build>
|
221 | 221 |
|
|
0 commit comments