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

   ### Affected version
   
   3.11.0
   
   ### Bug description
   
   Old GlassFish version 5.1.0 has a documentation artifact with a snapshot 
parent in Maven Central. While Maven Dependency Plugin 3.10.0 was able to 
download and unpack it without any issues, 3.11.0 tries to resolve the parent 
and crashes the build, because the parent is not available anywhere.
   
   (minor note - I use local mirror, but that is not important for the failure, 
we noticed it on CI first)
   ```
   mvn clean install -f docs/publish
   [INFO] Scanning for projects...
   [INFO] 
   [INFO] -------------< org.glassfish.main.docs:website-publisher 
>--------------
   [INFO] Building Publish the Eclipse GlassFish Website 8.0.4-SNAPSHOT
   [INFO]   from pom.xml
   [INFO] --------------------------------[ jar 
]---------------------------------
   [INFO] 
   [INFO] --- clean:3.5.0:clean (default-clean) @ website-publisher ---
   [INFO] Deleting /home/dmatej/work/repo/git/glassfish-new/docs/publish/target
   [INFO] 
   [INFO] --- enforcer:3.6.3:enforce (enforce-maven) @ website-publisher ---
   [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
   [INFO] 
   [INFO] --- dependency:3.11.0:unpack (get-website) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.11.0:unpack (get-current) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.11.0:unpack (get-8x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.11.0:unpack (get-71x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.11.0:unpack (get-7x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.11.0:unpack (get-6x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.11.0:unpack (get-5x) @ website-publisher ---
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  1.672 s
   [INFO] Finished at: 2026-06-09T22:54:00+02:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-dependency-plugin:3.11.0:unpack (get-5x) on 
project website-publisher: 
   Unable to find/resolve artifact.: 
   Failed to read artifact descriptor for 
org.glassfish.docs:distribution:jar:5.1.0: 
   The following artifacts could not be resolved: 
org.glassfish.main:nucleus-parent:pom:5.1.0-SNAPSHOT (absent): 
org.glassfish.main:nucleus-parent:pom:5.1.0-SNAPSHOT was not found in 
http://localhost:8888/repository/cache during a previous attempt. This failure 
was cached in the local repository and resolution is not reattempted until the 
update interval of nexus-cache has elapsed or updates are forced -> [Help 1]
   ```
   
   With 3.10.0 build passed:
   ```
   mvn clean install -f docs/publish
   [INFO] Scanning for projects...
   [INFO] 
   [INFO] -------------< org.glassfish.main.docs:website-publisher 
>--------------
   [INFO] Building Publish the Eclipse GlassFish Website 8.0.4-SNAPSHOT
   [INFO]   from pom.xml
   [INFO] --------------------------------[ jar 
]---------------------------------
   [INFO] 
   [INFO] --- clean:3.5.0:clean (default-clean) @ website-publisher ---
   [INFO] Deleting /home/dmatej/work/repo/git/glassfish-new/docs/publish/target
   [INFO] 
   [INFO] --- enforcer:3.6.3:enforce (enforce-maven) @ website-publisher ---
   [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
   [INFO] 
   [INFO] --- dependency:3.10.0:unpack (get-website) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.10.0:unpack (get-current) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.10.0:unpack (get-8x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.10.0:unpack (get-71x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.10.0:unpack (get-7x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.10.0:unpack (get-6x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.10.0:unpack (get-5x) @ website-publisher ---
   [INFO] 
   [INFO] --- dependency:3.10.0:copy (hello-war) @ website-publisher ---
   [INFO] 
   [INFO] --- build-helper:3.6.1:add-resource (add-resource) @ 
website-publisher ---
   [INFO] 
   [INFO] --- build-helper:3.6.1:add-resource (add-legal-resource) @ 
website-publisher ---
   [INFO] 
   [INFO] --- resources:3.5.0:resources (default-resources) @ website-publisher 
---
   ...
   ```


-- 
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]

Reply via email to