We do have a simple maven pom like
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>org.xy.project.z</groupId>
<artifactId>client</artifactId>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<groupId>org.xy.maven</groupId>
<artifactId>own-maven-plugin</artifactId>
<version>1.19.0</version>
<executions>...</executions>
</plugin>
</plugins>
</build>
</project>
As you may guess the own-maven-plugin
is our own maven plugin created in another project and with an independent version. So far no problem. But out of nowhere (at least for me) the provided pom didn't run anymore. And it stopped with the message:
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.xy.projcect:a:bundle:1.0.7-SNAPSHOT in http://repo.local:8081/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of internal-repository has elapsed or updates are forced
What happened. We have created a new version of own-maven-plugin
this plugin was always a fat-jar containing all necessary dependencies. Now all we did we added just another dependency.
So there are two things I don't understand.
Why does maven try to resolve all dependencies of an already created jar, that is used within the
build-plugins
.And why is the problem fixed after I have deleted
.m2/org/xy/maven/own-maven-plugin/own-maven-plugin-1.19.0.pom
This is reproducible, adding the deleted pom fails the build. I didn't find any indication for my problem at the maven plugin description site.
So if someone has an explanation. Please let me know.
UPDATE-1: Updated error message