maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Boué (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MENFORCER-260) Add requiresDependencyResolution to EnforceMojo
Date Mon, 19 Dec 2016 19:35:58 GMT

    [ https://issues.apache.org/jira/browse/MENFORCER-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15762092#comment-15762092
] 

Guillaume Boué commented on MENFORCER-260:
------------------------------------------

In this case, you can look into the {{maven-artifact-transfer}} shared component. The class
[{{ArtifactResolver}}|https://maven.apache.org/shared/maven-artifact-transfer/apidocs/org/apache/maven/shared/artifact/resolve/ArtifactResolver.html]
can resolve the file of a given artifact (or with its coordinates). Similarly, [{{DependencyResolver}}|https://maven.apache.org/shared/maven-artifact-transfer/apidocs/org/apache/maven/shared/dependencies/resolve/DependencyResolver.html]
can be used to resolve the files of all transitive dependencies of a dependency. Adding {{requiresDependencyResolution}}
to the Mojo itself would make certain existing rules not usable.

> Add requiresDependencyResolution to EnforceMojo
> -----------------------------------------------
>
>                 Key: MENFORCER-260
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-260
>             Project: Maven Enforcer Plugin
>          Issue Type: Improvement
>            Reporter: Serkan
>
> Hi,
> For a rule that I want to build I need to inspect project classpath which requires dependency
resolution. Can we have that supported?
> Regards,
> Serkan



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message