Skip to content

[MDEP-736] classifier applyed to other artifactItem #1231

Description

@jira-importer

Julien CORON opened MDEP-736 and commented

When I use the plugin in the phase "package" and the goal "copy",  with the artifactItem having the classifier "agent", then the other instance of the plugin with the phase "prepare-package" and the goal "copy-dependencies" on the first artifactItem has the same classifier "agent".

 

Example:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>unpack-jolokia</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-jvm</artifactId>
<version>1.6.0</version>
<type>jar</type>
<classifier>agent</classifier>
<outputDirectory>${project.build.directory}/tmp</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/tmp</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<includeGroupIds>yyyyyyyy</includeGroupIds>
</configuration>
</execution>
<execution>
<id>unpack-help</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>aa.bbb.cccc</groupId>
<artifactId>xxxxx</artifactId>
<version>${xxxxxx.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes/xxxxxxx</outputDirectory>
<includes>**/*</includes>
</artifactItem>

 

--> This artifactItem will inherit the "classifier" = "agent" property, and should not.

 


Affects: 3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions