diff --git a/build.xml b/build.xml index d351165cf60..0b4fffe3fa4 100644 --- a/build.xml +++ b/build.xml @@ -878,6 +878,7 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant"> + @@ -1005,6 +1006,7 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant"> + diff --git a/pom.xml b/pom.xml index 2ec6f9f5203..0ee016fc2d5 100755 --- a/pom.xml +++ b/pom.xml @@ -62,6 +62,7 @@ zookeeper-server zookeeper-client zookeeper-recipes + zookeeper-assembly @@ -659,28 +660,6 @@ - - org.apache.maven.plugins - maven-assembly-plugin - - - source-package - package - - - single - - - - - ${project.basedir}/source-package.xml - - zookeeper-${project.version} - gnu - - - - com.github.spotbugs diff --git a/source-package.xml b/source-package.xml deleted file mode 100644 index 139f99f1374..00000000000 --- a/source-package.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - source-package - - tar.gz - zip - - false - - - ${project.basedir}/bin - bin - - - ${project.basedir}/conf - conf - - - ${project.basedir}/zookeeper-client - - **/target/** - - zookeeper-client - - - ${project.basedir}/zookeeper-contrib - - **/target/** - - zookeeper-contrib - - - ${project.basedir}/zookeeper-docs - - **/target/** - - zookeeper-docs - - - ${project.basedir}/zookeeper-it - - **/target/** - - zookeeper-it - - - ${project.basedir}/zookeeper-jute - - **/target/** - - zookeeper-jute - - - ${project.basedir}/zookeeper-recipes - - **/target/** - - zookeeper-recipes - - - ${project.basedir}/zookeeper-server - - **/target/** - - zookeeper-server - - - - - ${project.basedir}/pom.xml - - - ${project.basedir}/source-package.xml - - - ${project.basedir}/LICENSE.txt - - - ${project.basedir}/NOTICE.txt - - - ${project.basedir}/README.md - - - ${project.basedir}/README_packaging.txt - - - - \ No newline at end of file diff --git a/zookeeper-assembly/pom.xml b/zookeeper-assembly/pom.xml new file mode 100755 index 00000000000..d3be5647d11 --- /dev/null +++ b/zookeeper-assembly/pom.xml @@ -0,0 +1,105 @@ + + + + 4.0.0 + + org.apache.zookeeper + zookeeper + 3.6.0-SNAPSHOT + .. + + + org.apache.zookeeper + zookeeper-assembly + pom + Apache ZooKeeper - Assembly + ZooKeeper Assembly + + + 0644 + 0755 + + + + + org.apache.zookeeper + zookeeper-docs + 3.6.0-SNAPSHOT + + + org.apache.zookeeper + zookeeper-jute + 3.6.0-SNAPSHOT + + + org.apache.zookeeper + zookeeper-server + 3.6.0-SNAPSHOT + + + org.apache.zookeeper + zookeeper-client + 3.6.0-SNAPSHOT + pom + + + org.apache.zookeeper + zookeeper-recipes + 3.6.0-SNAPSHOT + pom + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + make-assembly + package + + single + + + + ${project.basedir}/src/main/assembly/source-package.xml + ${project.basedir}/src/main/assembly/bin-package.xml + + zookeeper-${project.version} + gnu + + + + + + + com.github.spotbugs + spotbugs-maven-plugin + + true + + + + + + \ No newline at end of file diff --git a/zookeeper-assembly/src/main/assembly/bin-package.xml b/zookeeper-assembly/src/main/assembly/bin-package.xml new file mode 100644 index 00000000000..7ce0d9acadb --- /dev/null +++ b/zookeeper-assembly/src/main/assembly/bin-package.xml @@ -0,0 +1,111 @@ + + + bin-package + + tar.gz + zip + + false + + src/main/assembly/components.xml + + + + + + true + + org.apache.zookeeper:zookeeper-server + org.apache.zookeeper:zookeeper-recipes-election + org.apache.zookeeper:zookeeper-recipes-lock + org.apache.zookeeper:zookeeper-recipes-queue + + + + lib + false + + + + org.apache.zookeeper:zookeeper-recipes + org.apache.zookeeper:zookeeper-client + org.apache.zookeeper:zookeeper-docs + + + + + + + + + + + ${project.basedir}/../zookeeper-docs/target/html + docs + ${rw.file.permission} + ${rwx.file.permission} + + + + ${project.basedir}/../zookeeper-server/src/main/resources/lib + + *.txt + + lib + ${rw.file.permission} + + + + + ${project.basedir}/../zookeeper-server/target + lib + + zookeeper-*-sources.jar + + + + ${project.basedir}/../zookeeper-jute/target + lib + + zookeeper-*-sources.jar + + + + ${project.basedir}/../zookeeper-recipes/zookeeper-recipes-election/target + lib + + zookeeper-*-sources.jar + + + + ${project.basedir}/../zookeeper-recipes/zookeeper-recipes-lock/target + lib + + zookeeper-*-sources.jar + + + + ${project.basedir}/../zookeeper-recipes/zookeeper-recipes-queue/target + lib + + zookeeper-*-sources.jar + + + + + + + ${project.basedir}/../zookeeper-server/src/main/resources/lib/cobertura/README.txt + lib/cobertura + ${rw.file.permission} + + + ${project.basedir}/../zookeeper-server/src/main/resources/lib/jdiff/zookeeper_3.1.1.xml + lib/jdiff + ${rw.file.permission} + + + + \ No newline at end of file diff --git a/zookeeper-assembly/src/main/assembly/components.xml b/zookeeper-assembly/src/main/assembly/components.xml new file mode 100644 index 00000000000..2510db1ba85 --- /dev/null +++ b/zookeeper-assembly/src/main/assembly/components.xml @@ -0,0 +1,49 @@ + + + + + + + + ${project.basedir}/.. + . + + NOTICE.txt + LICENSE.txt + README.md + README_packaging.txt + + ${rw.file.permission} + + + ${project.basedir}/../conf + conf + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../bin + bin + ${rwx.file.permission} + ${rwx.file.permission} + + + diff --git a/zookeeper-assembly/src/main/assembly/source-package.xml b/zookeeper-assembly/src/main/assembly/source-package.xml new file mode 100644 index 00000000000..0bb894589eb --- /dev/null +++ b/zookeeper-assembly/src/main/assembly/source-package.xml @@ -0,0 +1,103 @@ + + + source-package + + tar.gz + zip + + false + + src/main/assembly/components.xml + + + + + ${project.basedir}/../zookeeper-assembly + + **/target/** + + zookeeper-assembly + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../zookeeper-client + + **/target/** + + zookeeper-client + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../zookeeper-contrib + + **/target/** + + zookeeper-contrib + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../zookeeper-docs + + **/target/** + + zookeeper-docs + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../zookeeper-it + + **/target/** + + zookeeper-it + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../zookeeper-jute + + **/target/** + + zookeeper-jute + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../zookeeper-recipes + + **/target/** + + zookeeper-recipes + ${rw.file.permission} + ${rwx.file.permission} + + + ${project.basedir}/../zookeeper-server + + **/target/** + + zookeeper-server + ${rw.file.permission} + ${rwx.file.permission} + + + + + ${project.basedir}/../pom.xml + ${rw.file.permission} + + + ${project.basedir}/src/main/assembly/source-package.xml + ${rw.file.permission} + + + ${project.basedir}/src/main/assembly/bin-package.xml + ${rw.file.permission} + + + \ No newline at end of file diff --git a/zookeeper-client/pom.xml b/zookeeper-client/pom.xml index ecf166d4856..e72624e193f 100755 --- a/zookeeper-client/pom.xml +++ b/zookeeper-client/pom.xml @@ -48,25 +48,4 @@ - - - - org.apache.maven.plugins - maven-assembly-plugin - - - source-package - package - - single - - - true - - - - - - - \ No newline at end of file diff --git a/zookeeper-contrib/pom.xml b/zookeeper-contrib/pom.xml index a25f42fb55e..6d7e6f220a7 100755 --- a/zookeeper-contrib/pom.xml +++ b/zookeeper-contrib/pom.xml @@ -55,25 +55,6 @@ - - - - org.apache.maven.plugins - maven-assembly-plugin - - - source-package - package - - single - - - true - - - - - \ No newline at end of file diff --git a/zookeeper-docs/pom.xml b/zookeeper-docs/pom.xml index 403f322a9fb..33fc172492a 100644 --- a/zookeeper-docs/pom.xml +++ b/zookeeper-docs/pom.xml @@ -54,22 +54,6 @@ images,skin - - org.apache.maven.plugins - maven-assembly-plugin - - - source-package - package - - single - - - true - - - - diff --git a/zookeeper-jute/pom.xml b/zookeeper-jute/pom.xml index 9c5678bf6ff..9bb696e9a7d 100755 --- a/zookeeper-jute/pom.xml +++ b/zookeeper-jute/pom.xml @@ -145,22 +145,6 @@ - - org.apache.maven.plugins - maven-assembly-plugin - - - source-package - package - - single - - - true - - - - com.github.spotbugs diff --git a/zookeeper-recipes/pom.xml b/zookeeper-recipes/pom.xml index 104abdd0638..70513338191 100755 --- a/zookeeper-recipes/pom.xml +++ b/zookeeper-recipes/pom.xml @@ -62,25 +62,4 @@ zookeeper-recipes-queue - - - - org.apache.maven.plugins - maven-assembly-plugin - - - source-package - package - - single - - - true - - - - - - - \ No newline at end of file diff --git a/zookeeper-server/pom.xml b/zookeeper-server/pom.xml index 325bc79462e..33cf27fb966 100755 --- a/zookeeper-server/pom.xml +++ b/zookeeper-server/pom.xml @@ -260,23 +260,6 @@ - - - org.apache.maven.plugins - maven-assembly-plugin - - - source-package - package - - single - - - true - - - -