HBASE-18313 [hbase-thirdparty] Produce src jars/tgz
Project: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/commit/ae17e3f1 Tree: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/tree/ae17e3f1 Diff: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/diff/ae17e3f1 Branch: refs/heads/master Commit: ae17e3f1c93bbc4305108d61c09111004fe20461 Parents: 8ffaf3d Author: zhangduo <zhang...@apache.org> Authored: Tue Aug 22 14:02:02 2017 +0800 Committer: Michael Stack <st...@apache.org> Committed: Mon Aug 21 23:12:47 2017 -0700 ---------------------------------------------------------------------- .gitignore | 3 +++ hbase-shaded-miscellaneous/pom.xml | 2 ++ hbase-shaded-netty/pom.xml | 2 ++ hbase-shaded-protobuf/pom.xml | 13 +++++++++++++ 4 files changed, 20 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/blob/ae17e3f1/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..afa17c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +**/target +**/dependency-reduced-pom.xml +hbase-shaded-protobuf/src/main/java/ http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/blob/ae17e3f1/hbase-shaded-miscellaneous/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-shaded-miscellaneous/pom.xml b/hbase-shaded-miscellaneous/pom.xml index f88ec9f..5650f51 100644 --- a/hbase-shaded-miscellaneous/pom.xml +++ b/hbase-shaded-miscellaneous/pom.xml @@ -66,6 +66,8 @@ <goal>shade</goal> </goals> <configuration> + <shadeSourcesContent>true</shadeSourcesContent> + <createSourcesJar>true</createSourcesJar> <relocations> <relocation> <pattern>com.google</pattern> http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/blob/ae17e3f1/hbase-shaded-netty/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-shaded-netty/pom.xml b/hbase-shaded-netty/pom.xml index eda4dbb..7112952 100644 --- a/hbase-shaded-netty/pom.xml +++ b/hbase-shaded-netty/pom.xml @@ -65,6 +65,8 @@ <goal>shade</goal> </goals> <configuration> + <shadeSourcesContent>true</shadeSourcesContent> + <createSourcesJar>true</createSourcesJar> <relocations> <relocation> <pattern>io.netty</pattern> http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/blob/ae17e3f1/hbase-shaded-protobuf/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-shaded-protobuf/pom.xml b/hbase-shaded-protobuf/pom.xml index 1430254..38164e1 100644 --- a/hbase-shaded-protobuf/pom.xml +++ b/hbase-shaded-protobuf/pom.xml @@ -134,6 +134,19 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>3.0.1</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> <!--Above we built a jar. Now at package step, do relocation/shade--> <plugin> <groupId>org.apache.maven.plugins</groupId>