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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]