Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3968130
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:48:18+00:00 2026-05-20T03:48:18+00:00

I try do the following: I have a standard POM defined for all my

  • 0

I try do the following:

  1. I have a standard POM defined for all my Maven2 projects.
  2. That POM includes the tools to use, and for PMD the rulesets to use.
  3. I have defined a property that names these rulesets each.

Up to know this is working. I can define a new project POM, use there as parent my standard POM, and use the rulesets there defined. I am even able to override the definition of the property that defines the ruleset by another name.

I have defined that as auth-pmd-rule-set-3.x-v1-5.xml instead of pmd-rule-set-3.x-v1-5.xml (which is then choosen by Maven2) and have included the file auth-pmd-rule-set-3.x-v1-5.xml locally in my new project (under src/main/resources). But Maven does not find it. The error messages look like that:

[DEBUG] Preparing ruleset: auth-pmd-rule-set-3.x-v1-5.xml

[DEBUG] Before: auth-pmd-rule-set-3.x-v1-5.xml After: auth-pmd-rule-set-3.x-v1-5.xml

[DEBUG] The resource ‘auth-pmd-rule-set-3.x-v1-5.xml’ was not found with resourceLoader org.codehaus.plexus.resource.loa
der.FileResourceLoader.

[DEBUG] The resource ‘auth-pmd-rule-set-3.x-v1-5.xml’ was not found with resourceLoader org.codehaus.plexus.resource.loa
der.JarResourceLoader.

[DEBUG] The resource ‘auth-pmd-rule-set-3.x-v1-5.xml’ was not found with resourceLoader org.codehaus.plexus.resource.loa
der.ThreadContextClasspathResourceLoader.

[DEBUG] URLResourceLoader: Exception when looking for ‘auth-pmd-rule-set-3.x-v1-5.xml’ at ”
java.net.MalformedURLException: no protocol: auth-pmd-rule-set-3.x-v1-5.xml

Is there any technique available to reach what I want? I want to redefine the ruleset PMD should use without repeating the whole definition of everything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:48:19+00:00Added an answer on May 20, 2026 at 3:48 am

    Based on the error message, it looks like you may not have specified the full path to your custom rule-set auth-pmd-rule-set-3.x-v1-5.xml in your pom. As per the docs,

    The rule sets may reside in the
    classpath, filesystem or at a URL. For
    rule sets that are bundled with the
    PMD tool, you do not need to specificy
    the absolute path of the file. It will
    be resolved by the plugin. But if the
    rule set is a custom rule set, you
    need to specify its absolute path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to set up a tableView. I use standard cells for all sections'
We have following code: try { // some code throwing MyException } catch (MyException
I have following code public class TEST { public static void main(String arg[]){ try
If in my code I have the following snippet: try { doSomething(); } catch
Hy ... I have the following code : try { Nrtrde record = new
I have the following error when I try to compile my code in g+
I have the following issue using java 1.4 I try to display a very
Background: Suppose I have the following obviously-incorrect PHP: try{ $vtest = ''; print(array_pop($vtest)); }catch(Exception
I have the following code to connect to MongoDB: try { $m = new
I have the following code to launch a file : try { path =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.