Skip to content

[java] Warning when used as dependency in modularized project #6167

Open

Description

@magwas

Affects PMD Version: 7.17.0

Make sure, to test with the latest PMD version.

Description:

A clear and concise description of what the bug is.

When used as dependency in a modularized project, the following compiler warning is emitted:

[INFO] --- compiler:3.14.1:compile (default-compile) @ konveyor.tooling ---
[WARNING] *******************************************************************************************************************************************
[WARNING] * Required filename-based automodules detected: [pmd-core-7.17.0.jar]. Please don't publish this project to a public artifact repository! *
[WARNING] *******************************************************************************************************************************************

Exception Stacktrace: none

Code Sample demonstrating the issue:

open module konveyor.tooling {
        exports io.github.magwas.konveyor.tooling;

        requires transitive spring.context;
        requires transitive spring.beans;
        requires transitive spring.core;
        requires transitive pmd.core;
        requires transitive org.apache.commons.lang3;
        requires transitive java.logging;
        requires konveyor.runtime;
}

Steps to reproduce:

Please provide detailed steps for how we can reproduce the bug.

  1. in a modularized project, use requires pmd.core; in module-info.java
  2. compile the project

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other] N/A

Activity

  1. added
    a:bug
    on Oct 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions