Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-109

Dependency plugin loses file permissions when unpacking or copying artifact items

    XMLWordPrintableJSON

    Details

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

        Attachments

          Activity

            People

            • Assignee:
              krosenvold Kristian Rosenvold
              Reporter:
              vmassol Vincent Massol
            • Votes:
              13 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: