maven-clean-plugin icon indicating copy to clipboard operation
maven-clean-plugin copied to clipboard

Upgrade m-site-p and skin

Open gnodet opened this issue 1 year ago • 5 comments
trafficstars

gnodet avatar Jul 03 '24 14:07 gnodet

Checking...

michael-o avatar Jul 03 '24 18:07 michael-o

I can confirm that the effective site descriptor is completely different with Maven 4. I need to investigate why... for now I recommend everyone NOT to use Maven 4 for building sites. @gnodet @slawekjaranowski @hboutemy @cstamas

michael-o avatar Jul 03 '24 18:07 michael-o

Diffed output:

@@ -312,15 +505,10 @@
 [DEBUG] Reading site descriptor from /var/osipovmi/Projekte/maven-clean-plugin/src/site/site.xml
 [WARNING] Site model of 'org.apache.maven.plugins:maven-clean-plugin:maven-plugin:4.0.0-beta-2-SNAPSHOT' for default locale is still u
sing the old pre-version 2.0.0 model. You MUST migrate to the new model as soon as possible otherwise your build will break in the futu
re!
 [DEBUG] Looking for site descriptor of level 1 parent project: org.apache.maven.plugins:maven-plugins:pom:42
-[DEBUG] Reading parent level 1 site descriptor from /net/home/osipovmi/.m2/repository/org/apache/maven/plugins/maven-plugins/42/maven-
plugins-42-site.xml
-[WARNING] Site model of 'org.apache.maven.plugins:maven-plugins:pom:42' for default locale is still using the old pre-version 2.0.0 mo
del. You MUST migrate to the new model as soon as possible otherwise your build will break in the future!
+[DEBUG] No parent level 1 site descriptor
 [DEBUG] Looking for site descriptor of level 2 parent project: org.apache.maven:maven-parent:pom:42
-[DEBUG] Reading parent level 2 site descriptor from /net/home/osipovmi/.m2/repository/org/apache/maven/maven-parent/42/maven-parent-42
-site.xml
-[WARNING] Site model of 'org.apache.maven:maven-parent:pom:42' for default locale is still using the old pre-version 2.0.0 model. You
MUST migrate to the new model as soon as possible otherwise your build will break in the future!
+[DEBUG] No parent level 2 site descriptor
 [DEBUG] Looking for site descriptor of level 3 parent project: org.apache:apache:pom:32
-[DEBUG] Resolving artifact org.apache:apache:xml:site:32 from [apache.snapshots (https://repository.apache.org/snapshots, default, sna
pshots), central (https://repo.maven.apache.org/maven2, default, releases)]
-[DEBUG] No site descriptor found for 'org.apache:apache:pom:32' with default locale
-[DEBUG] Site descriptor not found
 [DEBUG] No parent level 3 site descriptor
 [DEBUG] Site model inheritance: assembling child with level 3 parent: distributionManagement.site.url child = file:/var/osipovmi/Proje
kte/maven-clean-plugin/scm:svn:https:/svn.apache.org/repos/asf/maven/website/.. and parent = null
 [DEBUG] Site model inheritance: assembling child with level 2 parent: distributionManagement.site.url child = file:/var/osipovmi/Proje
kte/maven-clean-plugin/scm:svn:https:/svn.apache.org/repos/asf/maven/website/components/plugins-archives and parent = file:/var/osipovm
i/Projekte/maven-clean-plugin/scm:svn:https:/svn.apache.org/repos/asf/maven/website/..

Well, the site descriptor is not read. Digging further...

michael-o avatar Jul 03 '24 19:07 michael-o

3.9.8 works. I will bisect between Maven 4 versions to find the first offending version.

michael-o avatar Jul 03 '24 19:07 michael-o

Good news: The bug is in alpha-8, alpha-7 works as expected. Bad news: I cannot bisect down to the proper commit because I am stuck with:

[ERROR] Failed to execute goal on project maven-xml-impl: Could not resolve dependencies for project org.apache.maven:maven-xml-impl:jar:4.0.0-alpha-8-SNAPSHOT: Could not find artifact org.apache.maven:maven-xml-impl:jar:4.0.0-alpha-8-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots), try downloading from https://maven.apache.org/download.html -> [Help 1]

michael-o avatar Jul 03 '24 19:07 michael-o

I've fixed it

slachiewicz avatar Jan 22 '25 00:01 slachiewicz