Maven 2.x Dependency Plugin

Dependency plugin looses file permissions when unpacking or copying artifact items

Details

  • Number of attachments :
    0

Description

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"/>
...

Activity

There are no comments yet on this issue.

People

Vote (11)
Watch (8)

Dates

  • Created:
    Updated: