Maven 1

Jar overrides are not getting inherited

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: 1.0.2
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    JDK 1.4 and 1.5
  • Number of attachments :
    0

Description

Parent project with project.properties
maven.jar.override=on
maven.jar.clover-ant=1.3.3_01

Running "maven clover:html-report" in a subproject (tried with one level and two levels of inheritance) the override is not working, it's easy to see as clover prints its version.
Clover Version 1.3_01

When running from parent project or using multiproject from there it works ok.

Please tell me if you aren't able to reproduce it and I'll give more detail.

As a workaround -Dmaven.jar.override=on -Dmaven.jar.clover-ant=1.3.3_01 can be added to the command line.

Issue Links

Activity

Hide
Brett Porter added a comment -

hmmm....

project overrides are not meant to affect plugins, so thinking about it I'm not sure this should have worked in the first place

Looking at the clover plugin, you can use maven.clover.jar (note the order - its not an override) to set the path to the updated JAR.

Show
Brett Porter added a comment - hmmm.... project overrides are not meant to affect plugins, so thinking about it I'm not sure this should have worked in the first place Looking at the clover plugin, you can use maven.clover.jar (note the order - its not an override) to set the path to the updated JAR.
Hide
Carlos Sanchez added a comment -

Reading your comment at
http://jira.codehaus.org/browse/MPCLOVER-15

<quote>The only way to change the jar is to use a jar override. I'll document this. </quote>

If there's another way please tell me.

Show
Carlos Sanchez added a comment - Reading your comment at http://jira.codehaus.org/browse/MPCLOVER-15 <quote>The only way to change the jar is to use a jar override. I'll document this. </quote> If there's another way please tell me.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: