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 7049551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:01:52+00:00 2026-05-28T03:01:52+00:00

I am refactoring a single too big multiple module maven Jenkins job to about

  • 0

I am refactoring a single “too” big multiple module maven Jenkins job to about 10 smaller maven Jenkins jobs (one parent maven module with childs).

I like to run a single maven job every 2 hours without the tests and source code analyzers like PMD and Checkstyle, and once a day during the night I want to run it with the tests and source code analyzers.

I am not sure how to do this best.
Jenkins is very flexible and I read the Jenkins O’Reilly book, but I am stil not sure how to do it 🙁
I was thinking about using the Maven Jenkins plugin with job inheritances, but I still end up with many jobs I guess. Is this the way to go ?

Please some advice?
– Ed

  • 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-28T03:01:52+00:00Added an answer on May 28, 2026 at 3:01 am

    One trick I use is to set a property for build phase for any plugin that I want to disable and set it manually in jenkins. for example see the pmd plugin below:

    See ${pmd.phase}

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.5</version>
            <configuration>
                <targetJdk>1.6</targetJdk>
                <linkXref>false</linkXref>
                <failOnViolation>true</failOnViolation>
                <failurePriority>1</failurePriority>
                <rulesets>
                    <ruleset>${pom.basedir}/pmd-rulesets.xml</ruleset>
                </rulesets>
             </configuration>
            <executions>
                <execution>
                <phase>${pmd.phase}</phase>
                <goals>
                    <goal>check</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
    

    Now define

    <properties>
        <pmd.phase>none</pmd.phase>
    </properties>
    

    In jenkins set the Goals and options field to clean install -Dpmd.phase=validate

    The command line property overrides defined one so pmd will run only if the -Dpmd.phase=validate is present.

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

Sidebar

Related Questions

In the middle of a period of big refactoring at work, I wish to
I am currently refactoring an application into multiple classes in an attempt to fulfill
I'm refactoring some code, converting a number of related updates into a single transaction.
I'm refactoring a fluent nHibernate mapping, and I can't seem to figure this one
I am using resharper to do a big refactoring and i keep going from
I'm refactoring a single 3000+-line class with a tangled web of conditionals and switches
I'm just starting out refactoring my code into multiple assemblies, and feel a bit
Whilst refactoring some old code I realised that a particular header file was full
When refactoring away some #defines I came across declarations similar to the following in
While refactoring code and ridding myself of all those #defines that we're now taught

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.