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

  • Home
  • SEARCH
  • 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 134921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:42:02+00:00 2026-05-11T06:42:02+00:00

If i define a plugin in the <build> tag and want to use this

  • 0

If i define a plugin in the <build> tag and want to use this in my site command how do i do that? Do i have to define the plugin within <reporting> tag again?

And how about the configuration which i probably have done within the build tag and want to take place at the reporting tag as well? (i dont want to specifie for example a location of a configuration file twice just to use a plugin in 2 lifecycles)

As example: I define my checkstyle plugin in the build tag and configrue a custom location for the rules to be used. I do that because the rules are packed in a jar so i can define it as dependency. This would not be possible if i do it in the reporting tag. But i need to use this plugin in the reporting tag aswell so surfire can generate a report for checkstyle. So i have to define the plugin within the reporting tag aswell.

Maybe i’m doing something complete wrong here but i don’t see how i can do it other then that. What i dont like is that i have 1 plugin twice in my pom (in the build tag and reporting tag).

I hope somebody can verify my solution is ok, or give me an advise how to do it better.

thx

kuku

  • 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. 2026-05-11T06:42:03+00:00Added an answer on May 11, 2026 at 6:42 am

    A maven plugin is typically bound to execution in a given lifecycle phase when you define it. The plugin itself specifies which lifecycle phase this is, but you can change this if you have special needs.

    If you have a multi-module build you can define a set of plugins with all parameters required in a common parent-pom. This will normally be executed for every sub-module in the build. If you do not want this to happen you can define it (in the parent pom) like this:

    <plugin>    <artifactId>maven-surefire-plugin</artifactId>        <configuration>             <skip>true</skip>        </configuration>    ... More plugin cofniguration stuff ...  </plugin> 

    If you in one or more nested moudules want to enable this plugin you can just say:

    <plugin>    <artifactId>maven-surefire-plugin</artifactId>        <configuration>             <skip>false</skip>        </configuration>    ... Maybe Configuration ....  </plugin> 

    In that specific module. You can choose if you want to reconfigure the default parameters which are inherited from the parent definition or not.

    I think this is what you’re looking for ?

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

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer If you developing a 2D game, using 3D models would… May 11, 2026 at 12:36 pm
  • added an answer The way to solve your problem is to use a… May 11, 2026 at 12:36 pm
  • added an answer For instance, one might declare a variable using int_fast16_t, but… May 11, 2026 at 12:36 pm

Related Questions

If I define a struct in C# using automatic properties like this: public struct
In Visual Studio if I define a class to implement an interface e.g. class
Apologies if I get the terminology wrong. How do I define a constraint in
If I write a #define that performs an operation using other preprocessor constants, is
I faced a little trouble - I do not know if I can define
I have seen this problem arise in many different circumstances and would like to
I'm new to Flex SDK and trying to implement a simple project using Doug
I've run into a really strange bug, that I'm hoping someone can explain. I
I have installed the acts_as_versioned plugin from github.com in my rails application, and there

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.