提交 6cfea15b 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Merge pull request #256 from ascrutae/zhangxin/feature/high-performance-agent

Change shade plugin version and remove duplicate relocation
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version> <version>3.0.0</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>
...@@ -135,10 +135,6 @@ ...@@ -135,10 +135,6 @@
<pattern>${shade.io.netty.source}</pattern> <pattern>${shade.io.netty.source}</pattern>
<shadedPattern>${shade.io.netty.target}</shadedPattern> <shadedPattern>${shade.io.netty.target}</shadedPattern>
</relocation> </relocation>
<relocation>
<pattern>${shade.io.netty.source}</pattern>
<shadedPattern>${shade.io.netty.target}</shadedPattern>
</relocation>
</relocations> </relocations>
<filters> <filters>
<filter> <filter>
...@@ -149,40 +145,14 @@ ...@@ -149,40 +145,14 @@
</excludes> </excludes>
</filter> </filter>
</filters> </filters>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </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">
<include name="io.grpc.*"/>
</fileset>
<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> </plugins>
</build> </build>
</project> </project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册