Issue Details (XML | Word | Printable)

Key: MDEP-109
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Brian Fox
Reporter: Vincent Massol
Votes: 6
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Dependency Plugin

Dependency plugin looses file permissions when unpacking or copying artifact items

Created: 04/Sep/07 04:36 AM   Updated: 04/Sep/07 04:36 AM
Return to search
Component/s: copy, copy-dependencies, unpack, unpack-dependencies
Affects Version/s: 2.0-alpha-4
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide

I have to add the following ugly config in my pom.xml to overcome this:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <!-- Dependency plugin discards file permissions so we need to set them back manually -->
                <chmod file="${project.build.directory}/dependency/bin/windres" perm="ugo+rx"/>
                <chmod file="${project.build.directory}/dependency/bin/ld" perm="ugo+rx"/>
...


There are no entries against this issue.