Jörg Delker created MDEP-629:
--------------------------------
Summary: 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
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)