Skip to content

Commit

Permalink
ZOOKEEPER-3695: Source release tarball does not match repository in 3…
Browse files Browse the repository at this point in the history
….6.0

- use the same configuration as in Apache Parent Pom to generate the source tarball
- drop the custom made configuration for the source tarball

Author: Enrico Olivelli <enrico.olivelli@diennea.com>

Reviewers: andor@apache.org

Closes apache#1226 from eolivelli/fix/ZOOKEEPER-3695-source-tarball and squashes the following commits:

781d95e [Enrico Olivelli] Fix typo
21eac30 [Enrico Olivelli] Fix formatting and add comment
7eca978 [Enrico Olivelli] ZOOKEEPER-3695 Source release tarball does not match repository in 3.6.0 - use the same configuration as in Apache Parent Pom to generate the source tarball - drop the custom made configuration for the source tarball
  • Loading branch information
Enrico Olivelli authored and anmolnar committed Jan 17, 2020
1 parent f530ab9 commit 9053f7c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 135 deletions.
40 changes: 39 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,45 @@
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>apache-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.apache.resources</groupId>
<artifactId>apache-source-release-assembly-descriptor</artifactId>
<version>1.0.6</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>source-release-assembly-tar-gz</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
<descriptorRefs>
<!-- defined in Apache Parent Pom -->
<descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
</descriptorRefs>
<finalName>apache-zookeeper-${project.version}</finalName>
<formats>
<format>tar.gz</format>
</formats>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<properties>
Expand Down Expand Up @@ -681,7 +720,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down
17 changes: 1 addition & 16 deletions zookeeper-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>source-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${project.basedir}/src/main/assembly/source-package.xml</descriptor>
</descriptors>
<finalName>apache-zookeeper-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</execution>
<execution>
<id>bin-assembly</id>
<phase>package</phase>
Expand Down Expand Up @@ -190,4 +175,4 @@
</plugins>
</build>

</project>
</project>
118 changes: 0 additions & 118 deletions zookeeper-assembly/src/main/assembly/source-package.xml

This file was deleted.

0 comments on commit 9053f7c

Please sign in to comment.