pom.xml 3.9 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
	<parent>
		<groupId>com.ai.cloud</groupId>
		<artifactId>skywalking</artifactId>
8
		<version>1.0b</version>
wu-sheng's avatar
wu-sheng 已提交
9 10
	</parent>

11

12 13
	<artifactId>skywalking-api</artifactId>
	<packaging>jar</packaging>
14

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

18 19
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
wu-sheng's avatar
wu-sheng 已提交
20 21 22 23 24
		<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>
25
	</properties>
26

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

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

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

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

53 54 55 56 57 58 59 60
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
wu-sheng's avatar
wu-sheng 已提交
61 62 63 64
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
wu-sheng's avatar
wu-sheng 已提交
65 66
					<source>1.7</source>
					<target>1.7</target>
wu-sheng's avatar
wu-sheng 已提交
67 68 69 70 71 72 73 74 75 76 77
					<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>
78 79 80 81 82 83 84 85 86 87 88 89 90 91
			<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 已提交
92 93 94 95 96 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
			<!-- 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 已提交
122 123
		</plugins>
	</build>
124 125 126 127 128 129 130 131

	<distributionManagement>
		<repository>
			<id>bintray-wu-sheng-sky-walking-repository</id>
			<name>wu-sheng-sky-walking-repository</name>
			<url>https://api.bintray.com/maven/wu-sheng/skywalking/com.ai.cloud.skywalking-api/;publish=1</url>
		</repository>
	</distributionManagement>
132
</project>