Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gdyjdao
SkyWalking
提交
c52686f8
S
SkyWalking
项目概览
gdyjdao
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c52686f8
编写于
6月 23, 2017
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add logic of shade grpc package
上级
e780e4b6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
99 addition
and
2 deletion
+99
-2
apm-network/pom.xml
apm-network/pom.xml
+93
-0
apm-sniffer/apm-agent/pom.xml
apm-sniffer/apm-agent/pom.xml
+6
-2
未找到文件。
apm-network/pom.xml
浏览文件 @
c52686f8
...
...
@@ -16,6 +16,14 @@
<grpc.version>
1.4.0
</grpc.version>
<compiler.version>
1.6
</compiler.version>
<shade.package>
org.skywalking.apm.dependencies
</shade.package>
<shade.com.google.source>
com.google
</shade.com.google.source>
<shade.com.google.target>
${shade.package}.${shade.com.google.source}
</shade.com.google.target>
<shade.io.grpc.source>
io.grpc
</shade.io.grpc.source>
<shade.io.grpc.target>
${shade.package}.${shade.io.grpc.source}
</shade.io.grpc.target>
<shade.io.netty.source>
io.netty
</shade.io.netty.source>
<shade.io.netty.target>
${shade.package}.${shade.io.netty.source}
</shade.io.netty.target>
</properties>
<dependencies>
...
...
@@ -78,6 +86,91 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-shade-plugin
</artifactId>
<version>
2.4.3
</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.com.google.source}
</pattern>
<shadedPattern>
${shade.com.google.target}
</shadedPattern>
</relocation>
<relocation>
<pattern>
${shade.io.grpc.source}
</pattern>
<shadedPattern>
${shade.io.grpc.target}
</shadedPattern>
</relocation>
<relocation>
<pattern>
${shade.io.netty.source}
</pattern>
<shadedPattern>
${shade.io.netty.target}
</shadedPattern>
</relocation>
<relocation>
<pattern>
${shade.io.netty.source}
</pattern>
<shadedPattern>
${shade.io.netty.target}
</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<includes>
<include>
io.grpc:grpc-*:jar:*
</include>
<inclued>
io.netty:netty-*:jar:*
</inclued>
<inclued>
com.google.protobuf:*:jar:*
</inclued>
<inclued>
com.google.code.gson:gson:jar:*
</inclued>
<include>
com.google.guava:guava:jar:*
</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>
com.google.protobuf:protobuf-java
</artifact>
<excludes>
<exclude>
google/
</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
/>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-antrun-plugin
</artifactId>
<version>
1.8
</version>
<executions>
<execution>
<id>
unpack
</id>
<phase>
package
</phase>
<configuration>
<target>
<unzip
src=
"${project.build.directory}/${artifactId}-${version}.jar"
dest=
"${project.build.directory}/unpacked/"
/>
<move
todir=
"${project.build.directory}/unpacked/META-INF/services"
includeemptydirs=
"false"
>
<fileset
dir=
"${project.build.directory}/unpacked/META-INF/services"
/>
<mapper
type=
"glob"
from=
"*"
to=
"${shade.package}.*"
/>
</move>
<jar
destfile=
"${project.build.directory}/${artifactId}-${version}.jar"
basedir=
"${project.build.directory}/unpacked"
/>
</target>
</configuration>
<goals>
<goal>
run
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
apm-sniffer/apm-agent/pom.xml
浏览文件 @
c52686f8
...
...
@@ -132,11 +132,11 @@
<shadeSourcesContent>
true
</shadeSourcesContent>
<transformers>
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.AppendingTransformer"
>
implementation=
"org.apache.maven.plugins.shade.resource.AppendingTransformer"
>
<resource>
skywalking-plugin.def
</resource>
</transformer>
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"
>
implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"
>
<manifestEntries>
<Premain-Class>
${premain.class}
</Premain-Class>
</manifestEntries>
...
...
@@ -149,6 +149,10 @@
<exclude>
commons-logging:*
</exclude>
<exclude>
commons-codec:*
</exclude>
<exclude>
*:gson
</exclude>
<exclude>
io.grpc:*
</exclude>
<exclude>
io.netty:*
</exclude>
<exclude>
com.google.protobuf:*
</exclude>
<exclude>
com.google.guava:guava
</exclude>
</excludes>
</artifactSet>
<relocations>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录