[
https://issues.apache.org/jira/browse/MDEP-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16633847#comment-16633847
]
Jörg Delker commented on MDEP-629:
----------------------------------
So, the final cause seems to be the ordering in
UnpackMojo:getProcessedArtifactItems.
The implicit check for the marker file is performed *before* the
includes/excludes are applied to the artifactItem.
> Unpack goal with includes/excludes doer not honor marker files
> --------------------------------------------------------------
>
> Key: MDEP-629
> URL: https://issues.apache.org/jira/browse/MDEP-629
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack, unpack-dependencies
> Affects Versions: 3.1.1
> Reporter: Jörg Delker
> Priority: Major
>
> When using the unpack goal to extract an artifact dependency, that action is
> performed regardless of any previous run which already created a marker file.
> Consider this pom extract:
> {noformat}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>3.1.1</version>
> <executions>
> <execution>
> <id>unpack</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>unpack</goal>
> </goals>
> <configuration>
> <excludes>${my.excludes}</excludes>
> <artifactItems>
> <artifactItem>
> <groupId>groupid</groupId>
> <artifactId>artifactid</artifactId>
> <type>war</type>
> <overWrite>false</overWrite>
> </artifactItem>
> </artifactItems>
> </configuration>
> </execution>
> </executions>
> </plugin>{noformat}
> After executing "mvn generate-sources", the following marker file has been
> created:
> {{target/dependency-maven-plugin-markers/myartifactfile-1.01480985089}}
> Obviously, this file is not checked when this run is repeated.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)