Skip to content

Site goal seems to need some something from the build lifecycle phase #1205

@Bukama

Description

@Bukama

Affected version

3.21.0

Bug description

From apache/maven-jxr#342:

The JXR-plugin is a project with subprojects (parent, jxr and jxr-plugin). The site goal (and therefor the GH action) fails for it, as the report can not find project own dependencies. It only works if you run verify together with it

This means mvn clean site fails. But if you run mvn clean verify site it works as then the project own dependencies are created and existing in the project directory (or reactor?). So it seems that the site goal of the site-plugin depends on the verify page, but does enforce it. Other plugins, e.g. the PMD-plugin, enforces it by forking and running a verify every time the rendering goal is executed.

The [sitegoal's page](https://maven.apache.org/plugins/maven-site-plugin/site-mojo.html) mentions it relies on test` phase dependency resolution: "Requires dependency resolution of artifacts in scope: test".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions