[ https://issues.apache.org/jira/browse/MDEP-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Heinz Marbaise updated MDEP-515: ------------------------------------- Description: I had the following plugin configuration for maven-dependency-plugin: {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-content</id> <phase>generate-sources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>groupId</groupId> <artifactId>artifactId</artifactId> <version>${project.version}</version> <type>war</type> <overWrite>true</overWrite> <outputDirectory>${project.build.directory}/../src/main/webapp</outputDirectory> <includes>WEB-INF/*.xml</includes> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> {code} Linux Debug output: {code} [DEBUG] -- end configuration -- [INFO] Configured Artifact: groupId:artifactId:1.2.3-SNAPSHOT:war [INFO] Unpacking /home/jenkins/workspace/BUILD/module/webgui.war to /home/jenkins/workspace/BUILD/other-module/target/../src/main/webapp with includes "WEB-INF/*.xml" and excludes "" [DEBUG] Found unArchiver by type: org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus2@37a65ac9 [DEBUG] Expanding: /home/jenkins/workspace/BUILD/module/webgui.war into null [DEBUG] expand complete {code} Windows Debug output: {code} [DEBUG] -- end configuration -- [INFO] Configured Artifact: groupId:artifactId:1.2.3-SNAPSHOT:war [INFO] Unpacking C:\ws\BUILD\module\webgui.war to C:\ws\BUILD\other-module\target\..\src\main\webapp with includes "WEB-INF/*.xml" and excludes "" [DEBUG] Found unArchiver by type: org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus2@7d6c3feb [DEBUG] Expanding: C:\ws\BUILD\module\webgui.war into C:\ws\BUILD\other-module\target\..\src\main\webapp [DEBUG] expand complete [INFO] {code} Apart from the configuration which should be done differently, for example using different phase like {{prepare-package}} and of course differerent {{outputDirectory}} like {{$\{project.build.outputDirectory\}}} it should work which is not the case. The problem seemed to be related based on the markersDirectory which is used by maven-dependency-plugin which looks like it is not created during the running of maven-dependency-plugin which seemed to be related to the early life cycle phase. I have changed the binding to a later life cycle phase which means the {{target/classes}} folder will be created by previous phases. was: I had the following plugin configuration for maven-dependency-plugin: {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-content</id> <phase>generate-sources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>groupId</groupId> <artifactId>artifactId</artifactId> <version>${project.version}</version> <type>war</type> <overWrite>true</overWrite> <outputDirectory>${project.build.directory}/../src/main/webapp</outputDirectory> <includes>WEB-INF/*.xml</includes> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> {code} Linux Debug output: {code} [DEBUG] -- end configuration -- [INFO] Configured Artifact: groupId:artifactId:1.2.3-SNAPSHOT:war [INFO] Unpacking /home/jenkins/workspace/BUILD/module/webgui.war to /home/jenkins/workspace/BUILD/other-module/target/../src/main/webapp with includes "WEB-INF/*.xml" and excludes "" [DEBUG] Found unArchiver by type: org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus2@37a65ac9 [DEBUG] Expanding: /home/jenkins/workspace/BUILD/module/webgui.war into null [DEBUG] expand complete {code} Windows Debug output: {code} [DEBUG] -- end configuration -- [INFO] Configured Artifact: groupId:artifactId:1.2.3-SNAPSHOT:war [INFO] Unpacking C:\ws\BUILD\module\webgui.war to C:\ws\BUILD\other-module\target\..\src\main\webapp with includes "WEB-INF/*.xml" and excludes "" [DEBUG] Found unArchiver by type: org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus2@7d6c3feb [DEBUG] Expanding: C:\ws\BUILD\module\webgui.war into C:\ws\BUILD\other-module\target\..\src\main\webapp [DEBUG] expand complete [INFO] {code} Apart from the configuration which should be done differently, for example using different phase like {{prepare-package}} and of course differerent {{outputDirectory}} like {{${project.build.outputDirectory}}} it should work which is not the case. The problem seemed to be located based on the markersDirectory which is used by maven-dependency-plugin which looks like it is not created during the running of maven-dependency-plugin which seemed to be related to the early life cycle phase. I have changed the binding to a later life cycle phase which means the {{target/classes}} folder will be created by previous phases. > Unpack does not work on Linux > ----------------------------- > > Key: MDEP-515 > URL: https://issues.apache.org/jira/browse/MDEP-515 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: unpack > Affects Versions: 2.8, 2.10 > Reporter: Karl Heinz Marbaise > > I had the following plugin configuration for maven-dependency-plugin: > {code:xml} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-dependency-plugin</artifactId> > <executions> > <execution> > <id>unpack-content</id> > <phase>generate-sources</phase> > <goals> > <goal>unpack</goal> > </goals> > <configuration> > <artifactItems> > <artifactItem> > <groupId>groupId</groupId> > <artifactId>artifactId</artifactId> > <version>${project.version}</version> > <type>war</type> > <overWrite>true</overWrite> > > <outputDirectory>${project.build.directory}/../src/main/webapp</outputDirectory> > <includes>WEB-INF/*.xml</includes> > </artifactItem> > </artifactItems> > </configuration> > </execution> > </executions> > </plugin> > {code} > Linux Debug output: > {code} > [DEBUG] -- end configuration -- > [INFO] Configured Artifact: groupId:artifactId:1.2.3-SNAPSHOT:war > [INFO] Unpacking /home/jenkins/workspace/BUILD/module/webgui.war to > /home/jenkins/workspace/BUILD/other-module/target/../src/main/webapp with > includes "WEB-INF/*.xml" and excludes "" > [DEBUG] Found unArchiver by type: > org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus2@37a65ac9 > [DEBUG] Expanding: /home/jenkins/workspace/BUILD/module/webgui.war into null > [DEBUG] expand complete > {code} > Windows Debug output: > {code} > [DEBUG] -- end configuration -- > [INFO] Configured Artifact: groupId:artifactId:1.2.3-SNAPSHOT:war > [INFO] Unpacking C:\ws\BUILD\module\webgui.war to > C:\ws\BUILD\other-module\target\..\src\main\webapp with includes > "WEB-INF/*.xml" and excludes "" > [DEBUG] Found unArchiver by type: > org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus2@7d6c3feb > [DEBUG] Expanding: C:\ws\BUILD\module\webgui.war into > C:\ws\BUILD\other-module\target\..\src\main\webapp > [DEBUG] expand complete > [INFO] > {code} > Apart from the configuration which should be done differently, for example > using different phase like {{prepare-package}} and of course differerent > {{outputDirectory}} like {{$\{project.build.outputDirectory\}}} it should > work which is not the case. > The problem seemed to be related based on the markersDirectory which is used > by maven-dependency-plugin which looks like it is not created during the > running of maven-dependency-plugin which seemed to be related to the early > life cycle phase. > I have changed the binding to a later life cycle phase which means the > {{target/classes}} folder will be created by previous phases. -- This message was sent by Atlassian JIRA (v6.3.4#6332)