<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">
	<modelVersion>4.0.0</modelVersion>
	<artifactId>infra-common-shade</artifactId>
	<packaging>jar</packaging>
	<name>Infra Common (Shade)</name>
	<url>http://infra.wl4g.com</url>
	<description>A Infra Common(shade).</description>
	<organization>
		<name>wl4g</name>
		<url>https://infra.wl4g.com</url>
	</organization>
	<licenses>
		<license>
			<name>Apache License Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<scm>
		<connection>scm:git:git@github.com:wl4g/infra.git</connection>
		<developerConnection>scm:git:git@github.com:wl4g/infra.git</developerConnection>
		<url>https://github.com/wl4g/dopass-infra</url>
		<tag>HEAD</tag>
	</scm>
	<issueManagement>
		<system>github</system>
		<url>https://github.com/wl4g/dopass-infra/issues</url>
	</issueManagement>
	<developers>
		<developer>
			<id>James Wong</id>
			<name>James Wong</name>
			<email>jameswong1376@gmail.com</email>
			<roles>
				<role>owner</role>
				<role>maintainer</role>
				<role>developer</role>
			</roles>
			<timezone>+8</timezone>
		</developer>
		<developer>
			<id>xburnerair00</id>
			<name>xburnerair00</name>
			<email>xburnerair00@163.com</email>
			<roles>
				<role>maintainer</role>
				<role>developer</role>
			</roles>
			<timezone>+8</timezone>
		</developer>
	</developers>
	<parent>
		<groupId>com.wl4g</groupId>
		<artifactId>infra-parent</artifactId>
		<version>3.1.5</version>
		<relativePath>../pom.xml</relativePath>
	</parent>
	<properties>
		<java.version>1.8</java.version>
		<maven-source-plugin.version>2.4</maven-source-plugin.version>
	</properties>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.wl4g</groupId>
				<artifactId>infra-bom</artifactId>
				<version>${project.parent.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>com.wl4g</groupId>
			<artifactId>infra-common</artifactId>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<phase>verify</phase>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<!-- @see https://www.jianshu.com/p/7a0e20b30401 -->
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<minimizeJar>false</minimizeJar>
							<shadedArtifactAttached>true</shadedArtifactAttached>
							<shadedClassifierName>shade</shadedClassifierName>
							<filters>
								<filter>
									<artifact>*:*</artifact>
									<excludes>
										<!-- Exclusion for classes in shade-jar -->
										<exclude>javax/**</exclude>
										<exclude>org/slf4j/**</exclude>
										<exclude>org/xerial/snappy/**</exclude>
										<exclude>io/netty/**</exclude>
										<!-- Exclusion lombok in shade-jar -->
										<exclude>lombok/**</exclude>
										<exclude>djb/**</exclude>
										<exclude>secondaryLoading/**</exclude>
										<exclude>Class50/lombok/**</exclude>
										<exclude>assets/**</exclude>
										<!-- Exclusion unimportant resources in shade-jar -->
										<exclude>META-INF/*.SF</exclude>
										<exclude>META-INF/*.DSA</exclude>
										<exclude>META-INF/*.RSA</exclude>
										<exclude>CHANGELOG.*</exclude>
										<exclude>changelog.*</exclude>
										<exclude>README.*</exclude>
										<exclude>readme.*</exclude>
										<exclude>HISTORY.*</exclude>
										<exclude>history.*</exclude>
										<!-- Copy the relocated dependent resource exclusion to the META-INF/ 
											directory. -->
										<exclude>META-INF/maven/ch.ethz.ganymed/ganymed-ssh2/*</exclude>
										<exclude>META-INF/maven/com.fasterxml.jackson.core/**</exclude>
										<exclude>META-INF/maven/com.google.guava/guava/*</exclude>
										<exclude>META-INF/maven/com.hierynomus/sshj/*</exclude>
										<exclude>META-INF/maven/com.jcraft/**</exclude>
										<exclude>META-INF/maven/commons-beanutils/commons-beanutils/*</exclude>
										<exclude>META-INF/maven/commons-cli/commons-cli/*</exclude>
										<exclude>META-INF/maven/commons-codec/commons-codec/*</exclude>
										<exclude>META-INF/maven/commons-collections/commons-collections/*</exclude>
										<exclude>META-INF/maven/commons-fileupload/commons-fileupload/*</exclude>
										<exclude>META-INF/maven/commons-io/commons-io/*</exclude>
										<exclude>META-INF/maven/commons-logging/commons-logging/*</exclude>
										<exclude>META-INF/maven/io.protostuff/**</exclude>
										<exclude>META-INF/maven/joda-time/joda-time/*</exclude>
										<exclude>META-INF/maven/net.i2p.crypto/eddsa/*</exclude>
										<exclude>META-INF/maven/nl.bitwalker/UserAgentUtils/*</exclude>
										<exclude>META-INF/maven/org.apache.commons/**</exclude>
										<exclude>META-INF/maven/org.apache.sshd/**</exclude>
										<exclude>META-INF/maven/org.quartz-scheduler/quartz/*</exclude>
										<!-- Exclusion netty native copy to META-INF/ directory. -->
										<exclude>META-INF/native/libnetty_**</exclude>
										<exclude>META-INF/native-image/**</exclude>
										<exclude>META-INF/io.netty.versions.properties</exclude>
									</excludes>
								</filter>
							</filters>
							<relocations>
								<relocation>
									<pattern>org</pattern>
									<shadedPattern>com.wl4g.shade.org</shadedPattern>
									<excludes>
										<exclude>org.slf4j.**</exclude>
										<exclude>org.xerial.snappy.**</exclude>
									</excludes>
								</relocation>
								<relocation>
									<pattern>ch</pattern>
									<shadedPattern>com.wl4g.shade.ch</shadedPattern>
								</relocation>
								<relocation>
									<pattern>io</pattern>
									<shadedPattern>com.wl4g.shade.io</shadedPattern>
									<excludes>
										<exclude>io.netty.**</exclude>
									</excludes>
								</relocation>
								<relocation>
									<pattern>net</pattern>
									<shadedPattern>com.wl4g.shade.net</shadedPattern>
								</relocation>
								<relocation>
									<pattern>nl</pattern>
									<shadedPattern>com.wl4g.shade.nl</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.fasterxml</pattern>
									<shadedPattern>com.wl4g.shade.com.fasterxml</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.google</pattern>
									<shadedPattern>com.wl4g.shade.com.google</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.jcraft</pattern>
									<shadedPattern>com.wl4g.shade.com.jcraft</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.sun</pattern>
									<shadedPattern>com.wl4g.shade.com.sun</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.typesafe</pattern>
									<shadedPattern>com.wl4g.shade.com.typesafe</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.hierynomus</pattern>
									<shadedPattern>com.wl4g.shade.com.hierynomus</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.zwitserloot</pattern>
									<shadedPattern>com.wl4g.shade.com.zwitserloot</shadedPattern>
								</relocation>
							</relocations>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
