mabrarov commented on code in PR #148:
URL: 
https://github.com/apache/maven-assembly-plugin/pull/148#discussion_r1255894077


##########
src/it/projects/bugs/massembly-791/pom.xml:
##########
@@ -0,0 +1,64 @@
+<?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/xsd/maven-4.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>org.apache.maven.its</groupId>
+  <artifactId>massembly-791</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0</version>
+
+  <properties>
+    
<project.build.outputTimestamp>2023-06-07T10:18:31Z</project.build.outputTimestamp>

Review Comment:
   > I'm not sure "override" means the same thing in both cases. If I'm 
following this, in the other cases the override replaces the existing GIDs, 
UIDs, etc. set on the files being added to the assembly. In this case it's not 
doing that. Rather it's changing the behavior of the plugin.
   
   I meant the following Assembly plugin configuration options:
   
   * `overrideUid`
   * `overrideUserName`
   * `overrideGid`
   * `overrideGroupName`
   
   are similar to this pull request, because instead of setting these values in 
Assembly plugin configuration, they had to be a part of respective sections of 
assembly descriptor - just like `fileMode` and `directoryMode` are part of 
`fileSet` section of assembly descriptor. Unfortunately, that change was more 
complex and required changes in API of Plexus Archiver (which I was working 
on). It seems that maintainers of Assembly plugin decided to chose simpler (but 
less generic / agile) path, which is the same as this pull request suggests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to