Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable all reports #1048

Open
delanym opened this issue Feb 8, 2024 · 1 comment
Open

Disable all reports #1048

delanym opened this issue Feb 8, 2024 · 1 comment

Comments

@delanym
Copy link

delanym commented Feb 8, 2024

What does it take to disable any/all reports for this plugin?

I had it configured in the build section, but it popped up in site generation.
So I tried adding configuration

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>2.16.2</version>
        <configuration>
          <reportMode>false</reportMode>
          <skip>true</skip>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

But still the plugins leaps into action

[INFO] org.apache.maven.plugins.site.render.SiteMojo - Generating "Dependency Updates Report" report --- versions-maven-plugin:2.16.2:dependency-updates-report
[INFO] org.apache.maven.plugins.site.render.SiteMojo - Generating "Plugin Updates Report" report --- versions-maven-plugin:2.16.2:plugin-updates-report
[INFO] org.apache.maven.plugins.site.render.SiteMojo - Generating "Property Updates Report" report --- versions-maven-plugin:2.16.2:property-updates-report
@andrzejj0
Copy link
Contributor

andrzejj0 commented Oct 26, 2024

I wasn´t able to reproduce the issue.

I was using the following project:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>localhost</groupId>
  <artifactId>it-dependency-updates-report-issue-1048</artifactId>
  <version>1.0</version>
  <packaging>pom</packaging>

  <dependencies>
    <dependency>
      <groupId>localhost</groupId>
      <artifactId>dummy-api</artifactId>
      <version>1.1</version>
    </dependency>
  </dependencies>

  <reporting>
    <plugins>
      <plugin>
        <groupId>@project.groupId@</groupId>
        <artifactId>@project.artifactId@</artifactId>
        <version>@project.version@</version>
        <configuration>
          <reportMode>false</reportMode>
          <skip>true</skip>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>
</project>

Perhaps you'd be willing to share the complete pom.xml so that it I would be more successful at that ;)

Also, the messages that you see come from the Site plugin, not from the Versions plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants