[
https://issues.apache.org/jira/browse/MPMD-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887105#comment-17887105
]
Gary D. Gregory edited comment on MPMD-406 at 10/5/24 1:45 PM:
---------------------------------------------------------------
I'm trying... something simple at first.
In commons-parent at
https://github.com/apache/commons-parent/blob/801b06a43698422b444fd7241e2f1c0f7fd89edb/src/site/site.xml#L54C1-L56C27
If I say instead:
{code:xml}
<!-- <skin> -->
<!-- <groupId>org.apache.commons</groupId> -->
<!-- <artifactId>commons-skin</artifactId> -->
<!-- <version>4.2</version> -->
<!-- </skin> -->
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-default-skin</artifactId>
<version>1.3</version>
</skin>
{code}
and run:
{code}
mvn clean site
{code}
It blows up with:
{code}
[INFO] <<< surefire-report:3.5.0:report (default-site) < [surefire]test @
commons-parent <<<
[INFO]
[INFO] '[surefire]test' forked phase execution for
maven-surefire-report-plugin:report report preparation done
[INFO] Detected 3 reports for maven-surefire-report-plugin:3.5.0:
failsafe-report-only, report, report-only
[INFO] Configuring report plugin apache-rat-plugin:0.16.1
[INFO] Detected 1 report for apache-rat-plugin:0.16.1: rat
[INFO] Skipping org.apache.maven.plugins:maven-javadoc-plugin:3.10.1:javadoc
report
[INFO] Skipping
org.apache.maven.plugins:maven-project-info-reports-plugin:3.6.2:modules report
[INFO] Skipping
org.apache.maven.plugins:maven-project-info-reports-plugin:3.6.2:team report
[INFO] Skipping
org.apache.maven.plugins:maven-project-info-reports-plugin:3.6.2:dependencies
report
[WARNING] Site model of 'org.apache.commons:commons-parent:pom:77-SNAPSHOT' 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!
[INFO] Relativizing site links with respect to localized project URL:
https://commons.apache.org/proper/commons-parent/
[INFO] Rendering content with org.apache.maven.skins:maven-default-skin:jar:1.3
skin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.977 s
[INFO] Finished at: 2024-10-05T09:27:07-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.20.0:site (default-site) on
project commons-parent: Failed to create context for skin: Skin does not
contain template at META-INF/maven/site.vm -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{code}
Full console log:
https://gist.github.com/garydgregory/a0d6950afd70720c9a7ecc206d682c4f
My end goal is to use current plugins... but it's not easy, I can't find
documentation on how to upgrade from the maven site plugin 3.12.1 to 3.20.0
The page https://maven.apache.org/plugins/maven-site-plugin/migrate.html is not
up to date.
Any guidance would be appreciated.
TY.
was (Author: garydgregory):
I'm trying... something simple at first.
In commons-parent at
https://github.com/apache/commons-parent/blob/801b06a43698422b444fd7241e2f1c0f7fd89edb/src/site/site.xml#L54C1-L56C27
If I say instead:
{code:xml}
<!-- <skin> -->
<!-- <groupId>org.apache.commons</groupId> -->
<!-- <artifactId>commons-skin</artifactId> -->
<!-- <version>4.2</version> -->
<!-- </skin> -->
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-default-skin</artifactId>
<version>1.3</version>
</skin>
{code}
and run:
{code}
mvn clean site
{code}
It blows up with:
{code}
[INFO] <<< surefire-report:3.5.0:report (default-site) < [surefire]test @
commons-parent <<<
[INFO]
[INFO] '[surefire]test' forked phase execution for
maven-surefire-report-plugin:report report preparation done
[INFO] Detected 3 reports for maven-surefire-report-plugin:3.5.0:
failsafe-report-only, report, report-only
[INFO] Configuring report plugin apache-rat-plugin:0.16.1
[INFO] Detected 1 report for apache-rat-plugin:0.16.1: rat
[INFO] Skipping org.apache.maven.plugins:maven-javadoc-plugin:3.10.1:javadoc
report
[INFO] Skipping
org.apache.maven.plugins:maven-project-info-reports-plugin:3.6.2:modules report
[INFO] Skipping
org.apache.maven.plugins:maven-project-info-reports-plugin:3.6.2:team report
[INFO] Skipping
org.apache.maven.plugins:maven-project-info-reports-plugin:3.6.2:dependencies
report
[WARNING] Site model of 'org.apache.commons:commons-parent:pom:77-SNAPSHOT' 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!
[INFO] Relativizing site links with respect to localized project URL:
https://commons.apache.org/proper/commons-parent/
[INFO] Rendering content with org.apache.maven.skins:maven-default-skin:jar:1.3
skin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.977 s
[INFO] Finished at: 2024-10-05T09:27:07-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.20.0:site (default-site) on
project commons-parent: Failed to create context for skin: Skin does not
contain template at META-INF/maven/site.vm -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{code}
Full console log:
https://gist.github.com/garydgregory/a0d6950afd70720c9a7ecc206d682c4f
My end goal is to use current plugins... but it's not easy, I can't find
documentation on how to upgrade from the maven site plugin 3.12.1 to 3.20.0
The page https://maven.apache.org/plugins/maven-site-plugin/migrate.html is not
up to date.
Any guidance would be appreciated.
> java.lang.NoSuchMethodError: 'void
> org.apache.maven.doxia.sink.Sink.verbatim()' updating from 3.24.0 to 3.25.0
> --------------------------------------------------------------------------------------------------------------
>
> Key: MPMD-406
> URL: https://issues.apache.org/jira/browse/MPMD-406
> Project: Maven PMD Plugin
> Issue Type: Bug
> Affects Versions: 3.25.0
> Environment: openjdk version "17.0.12" 2024-07-16
> OpenJDK Runtime Environment Homebrew (build 17.0.12+0)
> OpenJDK 64-Bit Server VM Homebrew (build 17.0.12+0, mixed mode, sharing)
> Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: /usr/local/Cellar/maven/3.9.9/libexec
> Java version: 17.0.12, vendor: Homebrew, runtime:
> /usr/local/Cellar/openjdk@17/17.0.12/libexec/openjdk.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "14.6.1", arch: "x86_64", family: "mac"
> Darwin **** 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00 PDT
> 2024; root:xnu-10063.141.2~1/RELEASE_X86_64 x86_64
> Reporter: Gary D. Gregory
> Assignee: Michael Osipov
> Priority: Major
>
> java.lang.NoSuchMethodError: 'void
> org.apache.maven.doxia.sink.Sink.verbatim()' updating from 3.24.0 to 3.25.0
> {noformat}
> java.lang.NoSuchMethodError: 'void
> org.apache.maven.doxia.sink.Sink.verbatim()'
> at org.apache.maven.reporting.AbstractMavenReportRenderer.verbatimText
> (AbstractMavenReportRenderer.java:363)
> at org.apache.maven.plugins.pmd.CpdReportRenderer.renderDuplications
> (CpdReportRenderer.java:171)
> at org.apache.maven.plugins.pmd.CpdReportRenderer.renderBody
> (CpdReportRenderer.java:96)
> at org.apache.maven.reporting.AbstractMavenReportRenderer.render
> (AbstractMavenReportRenderer.java:93)
> at org.apache.maven.plugins.pmd.CpdReport.executeReport
> (CpdReport.java:140)
> at org.apache.maven.reporting.AbstractMavenReport.generate
> (AbstractMavenReport.java:354)
> at
> org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument
> (ReportDocumentRenderer.java:226)
> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render
> (DefaultSiteRenderer.java:348)
> at org.apache.maven.plugins.site.render.SiteMojo.renderLocale
> (SiteMojo.java:194)
> at org.apache.maven.plugins.site.render.SiteMojo.execute
> (SiteMojo.java:143)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:126)
> at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:328)
> at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> (MojoExecutor.java:316)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:212)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:174)
> at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> (MojoExecutor.java:75)
> at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> (MojoExecutor.java:162)
> at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> (DefaultMojosExecutionStrategy.java:39)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:159)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:105)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:73)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:53)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:118)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:77)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:569)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:255)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:201)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:361)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:314)
> {noformat}
> There are no release notes on the site for 3.25.0, so I am not sure what to
> do.
> To reproduce:
> {noformat}
> git clone https://gitbox.apache.org/repos/asf/commons-text
> cd commons-text
> git checkout b0b9656fddde2cc0451e03b6945c9ae6d7804733
> mvn site
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)