Open ilacc1 opened 6 months ago
Hello @ilacc1, I suppose you have to use the new model in site.xml
<site xmlns="http://maven.apache.org/SITE/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
name="${project.name}">
...
</site>
Hi - actually, this was likely happening because pom didn't have a url specified. Adding:
<url>https://locahost</url>
seems to have fixed the problem.
If it helps, I think the code in question is in SkinConfigTool, specifically Nonnull annotation on a method (getProjectLocation) that can very much return null:
/**
* @return Returns a {@link String} representing the location path of current rendered file.
*/
@Nonnull
public String getCurrentFileLocation() {
final String projectSiteLoc = getProjectLocation();
return URITool.toURI(projectSiteLoc).resolve(getCurrentFileName()).toString();
}
Thank, I will fix it.
I can't seem to get the config right to build a site.
Relevant pom sections ( I tried with both maven-site-plugin.version 4.0.0-M13 and M9).
site.xml
Exception trace: