[ 
https://issues.apache.org/jira/browse/MPMD-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17880096#comment-17880096
 ] 

Michael Osipov commented on MPMD-403:
-------------------------------------

Same:
{noformat}
D:\Entwicklung\Projekte\maven-jar-plugin [master ≡]> 
D:\Entwicklung\Programme\apache-maven-3.9.9\bin\mvn.cmd 
org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd -V
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: D:\Entwicklung\Programme\apache-maven-3.9.9
Java version: 21.0.3, vendor: Eclipse Adoptium, runtime: C:\Program 
Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot
Default locale: de_DE, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< org.apache.maven.plugins:maven-jar-plugin >--------------
[INFO] Building Apache Maven JAR Plugin 4.0.0-beta-2-SNAPSHOT
[INFO]   from pom.xml
[INFO] ----------------------------[ maven-plugin ]----------------------------
[INFO]
[INFO] --- pmd:3.25.0:pmd (default-cli) @ maven-jar-plugin ---
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] PMD version: 7.3.0
[WARNING] Site model of 
'org.apache.maven.plugins:maven-jar-plugin:maven-plugin:4.0.0-beta-2-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!
[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 model. You MUST migrate 
to the new model as soon as possible otherwise your build will break in the 
future!
[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!
[INFO] Rendering content with 
org.apache.maven.skins:maven-fluido-skin:jar:1.11.2 skin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.309 s
[INFO] Finished at: 2024-09-08T10:31:20+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd (default-cli) on project 
maven-jar-plugin: An error has occurred in PMD report generation.: Failed to 
create context for skin: Cannot use skin: has [1.11.1,2.0.0-M1) Doxia Sitetools 
prerequisite, but current is 2.0.0-M19 -> [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
{noformat}

Purge your local Maven repo and try again.

> Standalone :pmd goal cannot be executed for 'skin cannot be null'
> -----------------------------------------------------------------
>
>                 Key: MPMD-403
>                 URL: https://issues.apache.org/jira/browse/MPMD-403
>             Project: Maven PMD Plugin
>          Issue Type: Wish
>          Components: PMD
>    Affects Versions: 3.25.0
>         Environment: Apache Maven 3.9.9 
> (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Java version: 21.0.4
>            Reporter: Piotr Zygielo
>            Assignee: Michael Osipov
>            Priority: Minor
>
> For example with project that has no {{m-pmd-p}} configured:
> {code:java}
> $ git init maven-jar-plugin
> $ cd maven-jar-plugin
> $ git remote add origin https://github.com/apache/maven-jar-plugin
> $ git fetch origin --depth=1 be27b5f35a8ca911a459d992c9c8f106084bf525
> $ git checkout be27b5f35a8ca911a459d992c9c8f106084bf525
> {code}
> previously (3.24.0):
> {code:java}
> $ mvn org.apache.maven.plugins:maven-pmd-plugin:3.24.0:pmd
> ...
> [INFO] --- pmd:3.24.0:pmd (default-cli) @ maven-jar-plugin ---
> [WARNING] Unable to locate Source XRef to link to - DISABLED
> [INFO] PMD version: 7.3.0
> [INFO] Rendering content with 
> org.apache.maven.skins:maven-default-skin:jar:1.3 skin.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  7.372 s
> [INFO] Finished at: 2024-09-07T15:04:57+02:00
> [INFO] 
> ------------------------------------------------------------------------
> {code}
> while now (3.25.0):
> {code:java}
> $ mvn org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  7.802 s
> [INFO] Finished at: 2024-09-07T15:08:59+02:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd (default-cli) on project 
> maven-jar-plugin: Execution default-cli of goal 
> org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd failed: skin cannot be 
> null -> [Help 1]
> {code}
>  
> {code:java}
> # first bad commit: [c31b29af9835652db9ab0b9e919c8e14bc4efabf] [MPMD-389] 
> Upgrade to Doxia 2.0.0 Milestone Stack
> {code}
> ----
> After checking {{site.xml}} there ({{m-jar-p}}), and adding {{<skin>}} it's 
> fine to use 3.25.0.
> Thus changing the type and priority.
> Feel free to close as invalid. I'm sorry for the noise.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to