You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2021/01/10 21:55:54 UTC

[maven-help-plugin] branch MPH-171 created (now da51c2f)

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a change to branch MPH-171
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git.


      at da51c2f  [MPH-171] Preserve plugin repositories from project pom

This branch includes the following new commits:

     new da51c2f  [MPH-171] Preserve plugin repositories from project pom

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-help-plugin] 01/01: [MPH-171] Preserve plugin repositories from project pom

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MPH-171
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git

commit da51c2fb7d15559b389a3f1d2d1227fae3e37494
Author: Thomas Weißschuh <th...@amadeus.com>
AuthorDate: Wed Jan 6 14:31:49 2021 +0100

    [MPH-171] Preserve plugin repositories from project pom
---
 .../java/org/apache/maven/plugins/help/AbstractHelpMojo.java     | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/help/AbstractHelpMojo.java b/src/main/java/org/apache/maven/plugins/help/AbstractHelpMojo.java
index 4349428..4344974 100644
--- a/src/main/java/org/apache/maven/plugins/help/AbstractHelpMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/AbstractHelpMojo.java
@@ -75,7 +75,13 @@ public abstract class AbstractHelpMojo
      */
     @Parameter( defaultValue = "${project.remoteArtifactRepositories}", required = true, readonly = true )
     protected List<ArtifactRepository> remoteRepositories;
-    
+
+    /**
+     * Plugin repositories used for the project.
+     */
+    @Parameter( defaultValue = "${project.pluginArtifactRepositories}", required = true, readonly = true )
+    protected List<ArtifactRepository> pluginArtifactRepositories;
+
     /**
      * Local Repository.
      */
@@ -211,6 +217,7 @@ public abstract class AbstractHelpMojo
         {
             ProjectBuildingRequest pbr = new DefaultProjectBuildingRequest( session.getProjectBuildingRequest() );
             pbr.setRemoteRepositories( remoteRepositories );
+            pbr.setPluginArtifactRepositories( pluginArtifactRepositories );
             pbr.setProject( null );
             pbr.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL );
             pbr.setResolveDependencies( true );