You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Julien CORON (Jira)" <ji...@apache.org> on 2021/01/25 12:58:00 UTC

[jira] [Updated] (MDEP-736) classifier applyed to other artifactItem

     [ https://issues.apache.org/jira/browse/MDEP-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien CORON updated MDEP-736:
------------------------------
    Description: 
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>fr.thales.openscc,com.thalesaleniaspace.openscc,com.thalesaleniaspace.openscc.engine</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.

 

  was:
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".

 


> classifier applyed to other artifactItem
> ----------------------------------------
>
>                 Key: MDEP-736
>                 URL: https://issues.apache.org/jira/browse/MDEP-736
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: unpack
>    Affects Versions: 3.0.0
>            Reporter: Julien CORON
>            Priority: Major
>
> 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>fr.thales.openscc,com.thalesaleniaspace.openscc,com.thalesaleniaspace.openscc.engine</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.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)