GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MPMD-392] Allow skip maven toolchain configuration · Issue #360 · apache/maven-pmd-plugin

[MPMD-392] Allow skip maven toolchain configuration #360

New issue
Copy link
New issue
Copy link
Open
Open
[MPMD-392] Allow skip maven toolchain configuration#360
Copy link
Labels
enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

Description

@jira-importer
jira-importer
opened on Mar 8, 2024
Issue body actions

Roberto Araujo opened MPMD-392 and commented

I think it's a good idea allow skip the usage of maven toolchain, let me give my use case:

I'm working on a "legacy" java application. The application is compiled targeting Java 6. Our build requires Java 17, so we are using the JDK 6 toolchain (via Maven Toolchain plugin) to compile the source code (Note that Java 17 compiler can't target Java 6 bytecode).

The problem is that PMD Plugin will use the configured toolchain. Obviously, the latest version is not compatible with Java 6 so the execution fails with  the following exception:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/plugins/pmd/exec/PmdExecutor : Unsupported major.minor version 52.0

One option is to configure a new toolchain just to  PMD plugin and use the <jdkToolchain>option (https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#jdkToolchain). A Much more portable solution is to skip the usage of configured toolchain, so we don't depend of the settings.xml file.

If this makes sense, I can try to work on it and fire a PR on the GitHub repository.


No further details from MPMD-392

Activity

  1. jira-importer
    added
    enhancementNew feature or request
    priority:minorMinor loss of function, or other problem where easy workaround is present
    on Jun 15, 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

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.