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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:38:41+00:00 2026-06-05T23:38:41+00:00

My current setup consists of: a parentPom in a plugin a customPlugin version 2.0

  • 0

My current setup consists of:

  • a parentPom in a plugin
  • a customPlugin version 2.0 compatible with maven2 only
  • a customPlugin version 3.0 compatible with maven3 only

various projects referencing the parentPom and using my customPlugin. When users use maven2, the customPlugin should be version2 – when they use maven3, it should be version3 of the customPlugin.

I originally followed this guide

As describe in the above page, the detection of the maven version can be done using a profile and the {basedir} property. The detection mechanism is implemented in the parentPom. The problem I am running into is that my projects do not activate the maven3 detection mechanism in the profile. I believe this is due to the fact that profiles are not inherited in maven.

What would you recommend to do in order to:
– avoid declaring explicitly the pluginVersion in the child poms
– provide maven2 and maven3 compatibility

Thank you so much for your help.

  • 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-06-05T23:38:43+00:00Added an answer on June 5, 2026 at 11:38 pm

    Use your plugin version declaration within <build><pluginManagement> ... inside profiles (activated by Maven version) at your parent POM level. Then, you can use the plugin anywhere (at parent POM or modules) without specifying version and it should work as you need it.

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

Sidebar

Related Questions

My current setup using hibernate uses the hibernate.reveng.xml file to generate the various hbm.xml
I've recently started using prettyphoto to display a video. This is my current setup
My current setup is only useful once collision has been made; obviously there has
I need a method of stopping concurrent logins using PHP/MySQL. The current setup Currently
i use the validate plugin a lot - its great. my current setup, is
My current server setup consists of Apache and Ejabberd. Apache acts as a proxy
First off, here's my current setup: Django : version 1.3 MySQL : version 4.0.18
I started using JRebel just moment ago. In my current setup launch JBoss instance
My current setup : I have an entity object with some properties, among them
The Current Setup: So, I can use the following code to save a file

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.