pom.xml 3.8 KB
Newer Older
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 3
	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>
4

wu-sheng's avatar
wu-sheng 已提交
5 6 7 8 9 10
	<parent>
		<groupId>com.ai.cloud</groupId>
		<artifactId>skywalking</artifactId>
		<version>1.0-SNAPSHOT</version>
	</parent>

11 12 13 14
	<groupId>com.ai.cloud</groupId>
	<artifactId>skywalking-api</artifactId>
	<version>1.0-SNAPSHOT</version>
	<packaging>jar</packaging>
15

16 17
	<name>skywalking-api</name>
	<url>http://maven.apache.org</url>
18

19 20
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
wu-sheng's avatar
wu-sheng 已提交
21 22 23 24 25
		<version.plugin.shade>2.4.1</version.plugin.shade>
		<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
		<shade.net.bytebuddy.target>com.ai.cloud.skywalking.api.dependencies.net.bytebuddy</shade.net.bytebuddy.target>
		<shade.io.netty.source>io.netty</shade.io.netty.source>
		<shade.io.netty.target>com.ai.cloud.skywalking.api.dependencies.io.netty</shade.io.netty.target>
26
	</properties>
27

28 29 30 31 32 33 34 35
	<dependencies>
		<dependency>
			<groupId>com.ai.cloud</groupId>
			<artifactId>skywalking-protocol</artifactId>
			<version>1.0-SNAPSHOT</version>
		</dependency>

		<dependency>
wu-sheng's avatar
wu-sheng 已提交
36 37 38
			<groupId>net.bytebuddy</groupId>
			<artifactId>byte-buddy</artifactId>
			<version>1.3.0</version>
39 40 41
		</dependency>

		<dependency>
wu-sheng's avatar
wu-sheng 已提交
42 43 44
			<groupId>io.netty</groupId>
			<artifactId>netty-all</artifactId>
			<version>4.0.33.Final</version>
45 46 47
		</dependency>

		<dependency>
wu-sheng's avatar
wu-sheng 已提交
48 49 50
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>2.4.1</version>
wu-sheng's avatar
wu-sheng 已提交
51 52 53
			<scope>provided</scope>
		</dependency>

54 55 56 57 58 59 60 61
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
wu-sheng's avatar
wu-sheng 已提交
62 63 64 65
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
wu-sheng's avatar
wu-sheng 已提交
66 67
					<source>1.7</source>
					<target>1.7</target>
wu-sheng's avatar
wu-sheng 已提交
68 69 70 71 72 73 74 75 76 77 78
					<encoding>${project.build.sourceEncoding}</encoding>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.4.3</version>
				<configuration>
					<encoding>${project.build.sourceEncoding}</encoding>
				</configuration>
			</plugin>
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
			</plugin>
			<plugin>
				<!-- 源码插件 -->
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<!-- 发布时自动将源码同时发布的配置 -->
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
wu-sheng's avatar
wu-sheng 已提交
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
			<!-- Shade the net.bytebuddy/io.netty dependency. -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<version>${version.plugin.shade}</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<shadedArtifactAttached>false</shadedArtifactAttached>
							<createDependencyReducedPom>true</createDependencyReducedPom>
							<createSourcesJar>true</createSourcesJar>
							<shadeSourcesContent>true</shadeSourcesContent>
							<relocations>
								<relocation>
									<pattern>${shade.net.bytebuddy.source}</pattern>
									<shadedPattern>${shade.net.bytebuddy.target}</shadedPattern>
								</relocation>
								<relocation>
									<pattern>${shade.io.netty.source}</pattern>
									<shadedPattern>${shade.io.netty.target}</shadedPattern>
								</relocation>
							</relocations>
						</configuration>
					</execution>
				</executions>
			</plugin>
wu-sheng's avatar
wu-sheng 已提交
127 128
		</plugins>
	</build>
129
</project>