You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "PayBas (via GitHub)" <gi...@apache.org> on 2025/10/22 17:24:35 UTC

[I] `go-offline` goal ignores `excludeReactor` flag for plugin dependencies since 3.9.0 [maven-dependency-plugin]

PayBas opened a new issue, #1543:
URL: https://github.com/apache/maven-dependency-plugin/issues/1543

   ### Affected version
   
   3.9.0
   
   ### Bug description
   
   Since 3.9.0 the following doesn't work anymore when both `mega.corp:foo` and `mega.corp:bar` are part of the same reactor build.
   ```xml
   <project>
       <groupId>mega.corp</groupId>
       <artifactId>foo</artifactId>
       <version>${revision}</version>
   
       <build>
           <pluginManagement>
               <plugins>
                   <plugin>
                       <groupId>org.codehaus.mojo</groupId>
                       <artifactId>jaxb2-maven-plugin</artifactId>
                       <dependencies>
                           <dependency>
                               <groupId>mega.corp</groupId>
                               <artifactId>bar</artifactId>
                               <version>${project.version}</version>
                           </dependency>
                       </dependencies>
                   </plugin>
               </plugins>
           </pluginManagement>
           <plugins>
               <plugin>
                   <groupId>org.codehaus.mojo</groupId>
                   <artifactId>jaxb2-maven-plugin</artifactId>
                   <executions>
                       ...
                   </executions>
               </plugin>
           </plugins>
       </build>
   </project>
   ```
   Running `mvn dependency:go-offline` results in:
   ```
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.9.0:go-offline (default-cli) on project bar: The following artifacts could not be resolved: mega.corp:bar:jar:0.0.0-local-SNAPSHOT (absent)
   Could not transfer artifact mega.corp:bar:jar:0.0.0-local-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [ossrh-snapshots (http://oss.sonatype.org/content/repositories/snapshots, default, snapshots)] -> [Help 1]
   ```
   This was not an issue prior to 3.9.0. Probably because older versions didn't try to resolve plugin-dependencies at all.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `go-offline` goal ignores `excludeReactor` flag for plugin dependencies since 3.9.0 [maven-dependency-plugin]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski closed issue #1543: `go-offline` goal ignores `excludeReactor` flag for plugin dependencies since 3.9.0
URL: https://github.com/apache/maven-dependency-plugin/issues/1543


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org