You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/08/16 20:27:00 UTC

[jira] [Comment Edited] (MNG-7215) Maven Site Plugin cannot resolve parent site descriptor without locale

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

Michael Osipov edited comment on MNG-7215 at 8/16/21, 8:26 PM:
---------------------------------------------------------------

No, Maven 4 does not suffer from it because your change isn't visible in this case, i.e., neither POM not basedir are set on the failing project. That was clearly not your intention, was it? You should run the debugger on {{sign-maven-plugin}} and set breakpoints in {{DefaultSiteTool}} and you'll that it should fail too, but it doesn't.


was (Author: michael-o):
No, Maven 4 does not suffer from it because your change isn't visible in this case, i.e., neither POM not basedir are set on the failing project. That was clearly not your intention, wasn't it? You should run the debugger on {{sign-maven-plugin}} and set breakpoints in {{DefaultSiteTool}} and you'll that it should fail too, but it doesn't.

> Maven Site Plugin cannot resolve parent site descriptor without locale
> ----------------------------------------------------------------------
>
>                 Key: MNG-7215
>                 URL: https://issues.apache.org/jira/browse/MNG-7215
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.8.2
>            Reporter: Slawomir Jaranowski
>            Assignee: Michael Osipov
>            Priority: Critical
>             Fix For: 3.8.3
>
>
> Maven site parent descriptor is not resolved by maven 3.8.2.
> Without changing in project, build on maven 3.8.1, I have in logs:
> {code}
> [INFO] Rendering site with default locale English (en)
> [DEBUG] Computing decoration model of groupId:artifactId for locale en
> [DEBUG] Reading site descriptor from .../src/site/site.xml
> [DEBUG] Looking for site descriptor of level 1 parent project: parentGroupId:artifactId...
> [DEBUG] No site descriptor found for parentGroupId:artifactId... for locale en, trying without locale...
> [DEBUG] Reading parent level 1 site descriptor from .../parent-x.x.x-site.xml
> [INFO] Rendering content with org.apache.maven.skins:maven-fluido-skin:jar:1.9 skin.
> {code}
> And with maven 3.8.2
> {code}
> [INFO] Rendering site with default locale English (en)
> [DEBUG] Computing decoration model of groupId:artifactId for locale en
> [DEBUG] Reading site descriptor from .../site/site.xml
> [DEBUG] Looking for site descriptor of level 1 parent project: parentGroupId:artifactId
> [DEBUG] No parent level 1 site descriptor.
> [INFO] Rendering content with org.apache.maven.skins:maven-default-skin:jar:1.3 skin.
> {code}
> Only one difference I see in logs is that in maven 3.8.2 I don't have:
> [DEBUG] No site descriptor found for parentGroupId:artifactId for locale en, trying without locale...
> The problem is introduced by commit:
> https://github.com/apache/maven/commit/5a8997312680a4b9c69a129801524691bc546c08
> Similar problem https://github.com/eclipse-ee4j/eclipselink/issues/1242



--
This message was sent by Atlassian Jira
(v8.3.4#803005)