You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2019/12/14 21:15:33 UTC
[maven-assembly-plugin] branch MASSEMBLY-897 updated (4270098 ->
97d1544)
This is an automated email from the ASF dual-hosted git repository.
khmarbaise pushed a change to branch MASSEMBLY-897
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git.
discard 4270098 MASSEMBLY-897 zipentry.getSize() returns -1 for regular files in a m-a-p created zip
add ce70422 [MASSEMBLY-890] - Upgrade plexus-interpolation to 1.25
add 48252db [MASSEMBLY-892] - Upgrade maven-plugins parent to version 33
add c7d1b44 [MASSEMBLY-902] Some Integration tests fails if launched with an very large UID
add f0eb9e9 MASSEMBLY-901 Fix trivial javadocs HTML errors
add 0d60ef4 [INFRA-17514] avoid tmpWs, shouldn't be needed anymore
add a97fbb3 [MASSEMBLY-901] Fix trivial javadocs HTML errors
add 1473eb8 [maven-release-plugin] prepare release maven-assembly-plugin-3.1.1
add cffdb0c [maven-release-plugin] prepare for next development iteration
add 9293ae8 [MASSEMBLY-871] Descriptor ref "bin" causes error messages in the build log on Windows
add 0cf75e9 [MASSEMBLY-909] - Upgrade Maven Archiver 3.4.0
add f0fa09a [MASSEMBLY-910] - Upgrade plexus-utils 3.2.0
add 088dff6 [MASSEMBLY-913] - Upgrade commons-compress/commons-io for Maven Invoker Plugin
add 943f668 [MASSEMBLY-911] - Upgrade maven-artifact-transfer 0.11.0
add 35f5a00 [MASSEMBLY-912] - Upgrade maven-common-artifact-filters 3.1.0
add 1a36f70 [MASSEMBLY-914] - Add GitHub Informations
add 283e7c3 [MASSEMBLY-915] - Remove integration-test-archetype
add d5e0184 MASSEMBLY-921 make archives reproducible, reusing m-source-p PoC
add 8c09ea0 [maven-release-plugin] prepare release maven-assembly-plugin-3.2.0
add 9c60bce [maven-release-plugin] prepare for next development iteration
add 00d35d1 Added GitHub Informations.
add 293b08d [MASSEMBLY-924] - Upgrade commons-compress to 1.19
new 97d1544 MASSEMBLY-897 zipentry.getSize() returns -1 for regular files in a m-a-p created zip
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (4270098)
\
N -- N -- N refs/heads/MASSEMBLY-897 (97d1544)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.asf.yaml | 9 ++
.github/pull_request_template.md | 29 +++++++
CONTRIBUTING.md | 91 ++++++++++++++++++++
Jenkinsfile | 2 +-
README.md | 97 ++++++++++++++++++++++
integration-test-archetype/pom.xml | 50 -----------
.../META-INF/maven/archetype-metadata.xml | 55 ------------
.../main/resources/META-INF/maven/archetype.xml | 35 --------
.../archetype-resources/invoker.properties | 18 ----
.../src/main/resources/archetype-resources/pom.xml | 62 --------------
.../archetype-resources/src/java/AppTest.java | 57 -------------
.../archetype-resources/src/main/assembly/bin.xml | 37 ---------
.../archetype-resources/src/main/java/App.java | 32 -------
.../main/resources/archetype-resources/verify.bsh | 26 ------
pom.xml | 27 +++---
.../ExecutionRoot/src/assemble/src.xml | 2 +-
.../basic-features/add-classpath/assembly.xml | 2 +-
.../file-copyIntoTopDir/src/assemble/bin.xml | 2 +-
.../formats/src/assemblies/format-test.xml | 2 +-
.../src/main/assembly/myassembly.xml | 6 +-
.../bugs/massembly-375/src/main/assembly/test.xml | 2 +-
src/it/projects/bugs/massembly-732/assembly.xml | 2 +-
.../bugs/massembly-733/src/main/assembly/bin.xml | 2 +-
.../massembly-739/src/main/assembly/assembly.xml | 2 +-
.../configured-handler/src/assemble/bin.xml | 2 +-
.../assembly/src/assemble/bin.xml | 2 +-
.../src/main/assembly/src.xml | 2 +-
.../projects/file-modes/file-set-fileMode/pom.xml | 1 +
.../projects/file-modes/fileItem-fileMode/pom.xml | 1 +
.../excludes-using-regex/src/assemble/src.xml | 2 +-
.../src/main/assembly/src.xml | 2 +-
.../child/src/main/assembly/src.xml | 2 +-
.../child/src/main/assembly/src.xml | 2 +-
.../child/src/main/assembly/src.xml | 2 +-
.../fileset-to-tar-massembly-722/pom.xml | 1 +
.../src/main/assemblies/prod-assemble.xml | 2 +-
.../src/main/assembly/bin.xml | 2 +-
.../src/main/assembly/src.xml | 2 +-
.../src/main/assembly/src2.xml | 2 +-
.../massembly-291/src/main/assembly/src.xml | 2 +-
.../massembly-301/src/main/assembly/src.xml | 2 +-
.../invoker.properties | 6 +-
src/it/projects/reproducible/pom.xml | 71 ++++++++++++++++
.../bin.xml => reproducible/src/assemble/src.xml} | 24 +++---
.../src/main/resources/Uppercase.txt} | 1 -
.../src/main/resources/dir-A/A2.txt} | 1 -
.../src/main/resources/dir-A/A4.txt} | 1 -
.../src/main/resources/dir-A/a1.txt} | 18 +++-
.../src/main/resources/dir-A/a3.txt} | 1 -
.../src/main/resources/dir-C/C.txt} | 1 -
.../src/main/resources/dir-b/B2/B2.txt} | 1 -
.../src/main/resources/dir-b/B4/B4.txt} | 1 -
.../src/main/resources/dir-b/b.txt} | 1 -
.../src/main/resources/dir-b/b1/b1.txt} | 1 -
.../src/main/resources/dir-b/b3/b3.txt} | 1 -
.../src/main/resources/dir-d/d.txt} | 1 -
.../src/main/resources/executable.txt} | 1 -
.../src/main/resources/lowercase.txt} | 1 -
.../projects/reproducible/verify.groovy} | 25 ++----
.../assembly/AssemblerConfigurationSource.java | 2 +-
.../plugins/assembly/archive/AssemblyArchiver.java | 6 +-
.../assembly/archive/DefaultAssemblyArchiver.java | 13 ++-
.../archive/archiver/AssemblyProxyArchiver.java | 74 +++++++++++++++++
.../assembly/mojos/AbstractAssemblyMojo.java | 18 +++-
.../plugins/assembly/mojos/SingleAssemblyMojo.java | 2 +-
.../repository/DefaultRepositoryAssembler.java | 14 ++--
.../assembly/utils/AssemblyFormatUtils.java | 23 ++---
src/main/mdo/assembly-component.mdo | 8 +-
src/main/mdo/assembly.mdo | 8 +-
src/main/resources/assemblies/bin.xml | 4 +-
src/main/resources/assemblies/project.xml | 2 +-
src/site/apt/advanced-descriptor-topics.apt.vm | 2 +-
.../filtering-some-distribution-files.apt.vm | 10 +--
.../archive/DefaultAssemblyArchiverTest.java | 12 +--
.../archive/phase/FileItemAssemblyPhaseTest.java | 4 +-
.../assembly/utils/AssemblyFormatUtilsTest.java | 4 +-
76 files changed, 532 insertions(+), 511 deletions(-)
create mode 100644 .asf.yaml
create mode 100644 .github/pull_request_template.md
create mode 100644 CONTRIBUTING.md
create mode 100644 README.md
delete mode 100644 integration-test-archetype/pom.xml
delete mode 100644 integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
delete mode 100644 integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml
delete mode 100644 integration-test-archetype/src/main/resources/archetype-resources/invoker.properties
delete mode 100644 integration-test-archetype/src/main/resources/archetype-resources/pom.xml
delete mode 100644 integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java
delete mode 100644 integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml
delete mode 100644 integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java
delete mode 100644 integration-test-archetype/src/main/resources/archetype-resources/verify.bsh
copy src/it/projects/{basic-features/file-copyIntoTopDir => reproducible}/invoker.properties (95%)
create mode 100644 src/it/projects/reproducible/pom.xml
copy src/it/projects/{basic-features/file-sameName/src/assemble/bin.xml => reproducible/src/assemble/src.xml} (78%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/Uppercase.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-A/A2.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-A/A4.txt} (99%)
copy src/it/projects/{basic-features/file-sameName/a.properties => reproducible/src/main/resources/dir-A/a1.txt} (50%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-A/a3.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-C/C.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-b/B2/B2.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-b/B4/B4.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-b/b.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-b/b1/b1.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-b/b3/b3.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/dir-d/d.txt} (99%)
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/executable.txt} (99%)
mode change 100644 => 100755
copy src/it/projects/{file-sets/excludes-using-regex/src/main/java/org/test/target/file.properties => reproducible/src/main/resources/lowercase.txt} (99%)
copy src/{main/java/org/apache/maven/plugins/assembly/format/AssemblyFormattingException.java => it/projects/reproducible/verify.groovy} (60%)
[maven-assembly-plugin] 01/01: MASSEMBLY-897 zipentry.getSize()
returns -1 for regular files in a m-a-p created zip
Posted by kh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
khmarbaise pushed a commit to branch MASSEMBLY-897
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git
commit 97d1544c450ea826b2c4c8a1e3b369fd0741d0d6
Author: Enrico Olivelli <eo...@apache.org>
AuthorDate: Thu Dec 27 10:08:35 2018 +0100
MASSEMBLY-897 zipentry.getSize() returns -1 for regular files in a m-a-p created zip
---
src/it/projects/files/zipentrysize/pom.xml | 60 +++++++++++++++++++++++++++
src/it/projects/files/zipentrysize/verify.bsh | 56 +++++++++++++++++++++++++
2 files changed, 116 insertions(+)
diff --git a/src/it/projects/files/zipentrysize/pom.xml b/src/it/projects/files/zipentrysize/pom.xml
new file mode 100644
index 0000000..42bdf2b
--- /dev/null
+++ b/src/it/projects/files/zipentrysize/pom.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.plugin.assembly.test</groupId>
+ <artifactId>it-project-parent</artifactId>
+ <version>1</version>
+ </parent>
+
+ <groupId>test</groupId>
+ <artifactId>getSizeTest</artifactId>
+ <version>1.0</version>
+
+ <name>getSizeTest</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>3.1.0</version>
+ <executions>
+ <execution>
+ <id>assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <tarLongFileMode>posix</tarLongFileMode>
+ <descriptorRefs>
+ <descriptorRef>project</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/projects/files/zipentrysize/verify.bsh b/src/it/projects/files/zipentrysize/verify.bsh
new file mode 100644
index 0000000..97e4247
--- /dev/null
+++ b/src/it/projects/files/zipentrysize/verify.bsh
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.*;
+import java.util.zip.*;
+
+try
+{
+ boolean foundPom = false;
+ boolean allFilesOk = true;
+ File a = new File( basedir, "target/getSizeTest-1.0-project.zip" );
+ ZipInputStream zis = new ZipInputStream( new FileInputStream( a ) );
+ try {
+ ZipEntry entry = null;
+ while ((entry = zis.getNextEntry()) != null) {
+ System.out.println( "name: " + entry.getName()
+ + ", size: " + entry.getSize() + ", directory:" + entry.isDirectory() );
+ if ( entry.getSize() <= 0 && !entry.isDirectory() ) {
+ System.out.println( "ERROR: name: " + entry.getName()
+ + ", size: " + entry.getSize() + ", directory:" + entry.isDirectory() );
+ allFilesOk = false;
+ }
+ if ( entry.getName().equals( "pom.xml" ) ) {
+ // verify that we have at least one known file
+ foundPom = true;
+ }
+ }
+ }
+ finally {
+ zis.close();
+ }
+ return allFilesOk && foundPom;
+}
+catch( Exception e )
+{
+ e.printStackTrace();
+ return false;
+}
+
+