update maven source tarball generation
Project: http://git-wip-us.apache.org/repos/asf/flume/repo Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/517ef269 Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/517ef269 Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/517ef269 Branch: refs/heads/flume-1.9 Commit: 517ef269ea58b8d1e7766f3984332985c716575c Parents: 854a1f5 Author: Ferenc Szabo <[email protected]> Authored: Mon Dec 10 03:13:32 2018 +0100 Committer: Ferenc Szabo <[email protected]> Committed: Mon Dec 10 03:13:32 2018 +0100 ---------------------------------------------------------------------- dev-docs/HowToRelease.md | 3 +++ flume-ng-dist/src/main/assembly/src.xml | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flume/blob/517ef269/dev-docs/HowToRelease.md ---------------------------------------------------------------------- diff --git a/dev-docs/HowToRelease.md b/dev-docs/HowToRelease.md index 8110885..eb4da06 100644 --- a/dev-docs/HowToRelease.md +++ b/dev-docs/HowToRelease.md @@ -254,6 +254,9 @@ Signing is done by the maven-gpg-plugin using the `sign` profile in the verify p Checksum generation for the source and binary artifacts is done by checksum-maven-plugin in the verify phase, an SHA512 checksum is generated +To avoid unwanted files in the source artifact, create a fresh working copy or +run `git clean -xdf` to remove any extra files (this will remove git ignored files like the .idea folder). + mvn clean package -Psign -DskipTests The generated artifacts can be found in the `flume-ng-dist/target` directory http://git-wip-us.apache.org/repos/asf/flume/blob/517ef269/flume-ng-dist/src/main/assembly/src.xml ---------------------------------------------------------------------- diff --git a/flume-ng-dist/src/main/assembly/src.xml b/flume-ng-dist/src/main/assembly/src.xml index 8c4e90e..de238f5 100644 --- a/flume-ng-dist/src/main/assembly/src.xml +++ b/flume-ng-dist/src/main/assembly/src.xml @@ -18,9 +18,9 @@ --> <assembly - xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" + xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> <id>src</id> @@ -32,8 +32,10 @@ <baseDirectory>apache-flume-${project.version}-src</baseDirectory> <fileSets> + <fileSet> <directory>../</directory> + <useDefaultExcludes>false</useDefaultExcludes> <excludes> <exclude>**/target/**</exclude> @@ -44,7 +46,7 @@ <exclude>**/.settings/**</exclude> <exclude>lib/**</exclude> <exclude>**/.DS_Store</exclude> - <exclude>./mvn/wrapper/maven-wrapper.jar</exclude> + <exclude>**/./mvn/wrapper/maven-wrapper.jar</exclude> </excludes> </fileSet> </fileSets>
