You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2021/06/18 18:55:00 UTC
[jira] [Commented] (MDEP-730) unpack - parameter markersDirectory
always gives an exception, while setting it
[ https://issues.apache.org/jira/browse/MDEP-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17365665#comment-17365665 ]
Elliotte Rusty Harold commented on MDEP-730:
--------------------------------------------
I suspect this is a configuration error. markersDirectory does not belong as a child of artifactItem. Instead it should be a sibling of it. Both markersDirectory and artifactItem are parameters of UnpackMojo.
> unpack - parameter markersDirectory always gives an exception, while setting it
> -------------------------------------------------------------------------------
>
> Key: MDEP-730
> URL: https://issues.apache.org/jira/browse/MDEP-730
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack
> Affects Versions: 3.1.2
> Environment: Maven 3.6.3
> Reporter: Jochen Stiepel
> Priority: Blocker
> Attachments: maven-dependency-plugin-MDEP-730.zip
>
>
> If you try to set the 'markersDirectory' with any value it fails with an exception
> [https://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html#markersDirectory]
>
> here an example with the default value:
> <plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpackServerHome</id> <phase>validate</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>test</groupId> <artifactId>test</artifactId> <version>1.0</version> <type>zip</type> <markersDirectory>${project.build.directory}/dependency-maven-plugin-markers</markersDirectory> <outputDirectory>${project.basedir}/../../buildServerHome</outputDirectory> </artifactItem> </configuration> </execution> </executions> </plugin>
> Exception that is thrown:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:unpack (unpackbuildServerHome) on project test: Unable to parse configuration of mojo org.apache.maven.plugins:maven-dependency-plugin:3.1.2:unpack for parameter markersDirectory: Cannot find 'markersDirectory' in class org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem -> [Help 1]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)