michael-o commented on PR #1563:
URL: https://github.com/apache/maven/pull/1563#issuecomment-2157527964

   I have done some further testing. Good news: 
[DOXIASITETOOLS-303](https://issues.apache.org/jira/browse/DOXIASITETOOLS-303) 
seems to be solved by this. Bad news: It does not work the way advertised. I 
have in my `settings.xml`:
   * central-mirror
   * lda-public (serves only com.example, rest is blocked with 403)
   * dynamowerk-public
   
   tried:
   ```
   osipovmi@deblndw011x:~/var/Projekte/maven-site (master *=)
   $ git diff -U0
   diff --git a/pom.xml b/pom.xml
   index 66e7e5bc..556fb363 100644
   --- a/pom.xml
   +++ b/pom.xml
   @@ -77 +77 @@
   -    <fluidoVersion>2.0.0-M6</fluidoVersion>
   +    <fluidoVersion>1.12.0</fluidoVersion>
   ```
   ran:
   ```
   osipovmi@deblndw011x:~/var/Projekte/maven-site (master *=)
   $ JAVA_VERSION=17 /tmp/apache-maven-4.0.0-beta-4-SNAPSHOT/bin/mvn clean site 
-Dmaven.repo.local=/var/tmp/repo-site2
   ...
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   [INFO] Total time:  1.580 s
   [INFO] Finished at: 2024-06-10T09:18:14+02:00
   [INFO] 
--------------------------------------------------------------------------------------------------------------------------
   [ERROR] Failed to execute goal on project maven-site: Could not collect 
dependencies for project org.apache.maven:maven-site:jar:1.0
   [ERROR] Failed to read artifact descriptor for org.jsoup:jsoup:jar:1.17.3
   [ERROR]         Caused by: The following artifacts could not be resolved: 
org.jsoup:jsoup:pom:1.17.3 (absent): Could not transfer artifact 
org.jsoup:jsoup:pom:1.17.3 from/to lda-public (https://.../lda-public/): HTTP 
Status: 403
   [ERROR]
   ```
   Is it what you expect? I would expect to try all four repos.
   
   It is trying:
   ```
   Downloading from lda-public: 
https://.../nexus/content/groups/lda-public/org/jsoup/jsoup/1.17.3/jsoup-1.17.3.pom
   Downloading from dynamowerk-public: 
https://.../nexus/content/groups/dynamowerk-public/org/jsoup/jsoup/1.17.3/jsoup-1.17.3.pom
   Downloading from apache.staging: 
https://repository.apache.org/content/repositories/maven-1906/org/jsoup/jsoup/1.17.3/jsoup-1.17.3.pom
   Downloading from central-mirror: 
https://.../nexus/content/repositories/central/org/jsoup/jsoup/1.17.3/jsoup-1.17.3.pom
   ```
   so does `jsoup-1.17.3.pom.lastUpdated`:
   ```
   #NOTE: This is a Maven Resolver internal implementation file, its format can 
be changed without prior notice.
   #Mon Jun 10 09:19:48 CEST 2024
   
https\://.../nexus/content/groups/dynamowerk-public/.lastUpdated=1718003988205
   https\://.../nexus/content/repositories/central/.error=
   https\://repository.apache.org/content/repositories/maven-1906/.error=
   https\://.../nexus/content/groups/lda-public/.error=Could not transfer 
artifact org.jsoup\:jsoup\:pom\:1.17.3 from/to lda-public 
(https\://.../nexus/content/gr
   oups/lda-public/)\: HTTP Status\: 403
   https\://.../nexus/content/groups/dynamowerk-public/.error=
   
https\://repository.apache.org/content/repositories/maven-1906/.lastUpdated=1718003988246
   
02b43e8beafaf18c207565d70bf0dc68eea2ac76@default-lda-public-https\://.../nexus/content/groups/lda-public/.lastUpdated=1718003988184
   https\://.../nexus/content/repositories/central/.lastUpdated=1718003988342
   ```
   Thoughts? 
   
   The issue can be easily recreated by setting up web sever denying all 
requests with 403.


-- 
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-unsubscr...@maven.apache.org

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

Reply via email to