Plexus Components

[plexus-io] PlexusIoProxyResourceCollection ignores overriden attributes when a prefix is defined

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: plexus-compiler
  • Labels:
    None
  • Environment:
    plexus-io version 1.0-alpha-3
  • Number of attachments :
    1

Description

The net effect of this is MASSEMBLY-337: a dependency set that references an archive to be unpacked into an output directory that is not "/" will ignore the file attributes of both the archive and the <fileMode> tag of that dependency set.

Issue Links

Activity

Hide
Thomas Dudziak added a comment -

This patch when applied to plexus-io version 1.0-alpha-3, will fix the bug. However due to another bug (PLXCOMP-125), using the patched version requires exclusions in the assembly plugin configuration, e.g.:

<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-assembly-plugin</artifactId>
       <version>2.2-beta-3</version>
       <dependencies>
	    <dependency>
	      <groupId>org.codehaus.plexus</groupId>
	      <artifactId>plexus-archiver</artifactId>
	      <version>1.0-alpha-11</version>
	      <exclusions>
		    <exclusion>
		      <groupId>org.codehaus.plexus</groupId>
		      <artifactId>plexus-component-api</artifactId>
			</exclusion>
		  </exclusions>
	    </dependency>
	    <dependency>
	      <groupId>org.codehaus.plexus</groupId>
	      <artifactId>plexus-io</artifactId>
	      <version>1.0-alpha-3-PLXCOMP-124</version>
	      <exclusions>
		    <exclusion>
		      <groupId>org.codehaus.plexus</groupId>
		      <artifactId>plexus-component-api</artifactId>
			</exclusion>
		  </exclusions>
	    </dependency>
	   </dependencies>
       <configuration>
         <tarLongFileMode>gnu</tarLongFileMode>
       </configuration>
       <executions>
         <execution>
           <id>assemble</id>
           <goals>
             <goal>single</goal>
           </goals>
           <phase>package</phase>
           <configuration>
             <descriptors>
               <descriptor>assembly.xml</descriptor>
             </descriptors>
           </configuration>
         </execution>
       </executions>
     </plugin>
Show
Thomas Dudziak added a comment - This patch when applied to plexus-io version 1.0-alpha-3, will fix the bug. However due to another bug (PLXCOMP-125), using the patched version requires exclusions in the assembly plugin configuration, e.g.:
<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-assembly-plugin</artifactId>
       <version>2.2-beta-3</version>
       <dependencies>
	    <dependency>
	      <groupId>org.codehaus.plexus</groupId>
	      <artifactId>plexus-archiver</artifactId>
	      <version>1.0-alpha-11</version>
	      <exclusions>
		    <exclusion>
		      <groupId>org.codehaus.plexus</groupId>
		      <artifactId>plexus-component-api</artifactId>
			</exclusion>
		  </exclusions>
	    </dependency>
	    <dependency>
	      <groupId>org.codehaus.plexus</groupId>
	      <artifactId>plexus-io</artifactId>
	      <version>1.0-alpha-3-PLXCOMP-124</version>
	      <exclusions>
		    <exclusion>
		      <groupId>org.codehaus.plexus</groupId>
		      <artifactId>plexus-component-api</artifactId>
			</exclusion>
		  </exclusions>
	    </dependency>
	   </dependencies>
       <configuration>
         <tarLongFileMode>gnu</tarLongFileMode>
       </configuration>
       <executions>
         <execution>
           <id>assemble</id>
           <goals>
             <goal>single</goal>
           </goals>
           <phase>package</phase>
           <configuration>
             <descriptors>
               <descriptor>assembly.xml</descriptor>
             </descriptors>
           </configuration>
         </execution>
       </executions>
     </plugin>

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: