Maven 1

maven.xml inheritance strangeness

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-rc2
  • Fix Version/s: 1.1-beta-1
  • Component/s: inheritance
  • Labels:
    None
  • Number of attachments :
    1

Description

The attachment contains child/project.xml that extends project-base.xml. There is a maven.xml file in the folder with project-base.xml as well as a maven.xml in the child folder.

If you go to the child folder and type "maven different", it will successfully output "ECHO". If you type "maven" or "maven footest", you'll get a TargetInvocationException due to the echo call in the parent's maven.xml. Note that other jelly tags work successfully in the parent...it appears to be an issue just with Ant tags.

Additionally, if you remove the maven.xml from the child folder, and then type "maven footest" in the child folder, you get a "no such goal" error rather than executing the inherited maven.xml goal.

Activity

Hide
Sean Timm added a comment -

Here's the attachment demonstrating the problem.

Show
Sean Timm added a comment - Here's the attachment demonstrating the problem.
Hide
Brett Porter added a comment -

This is a jelly bug, already fixed in the Maven version of JellyPropsHandler.

I will submit the patch to Jelly, and we'll pick up a new snapshot for Maven 1.0 hopefully.

Show
Brett Porter added a comment - This is a jelly bug, already fixed in the Maven version of JellyPropsHandler. I will submit the patch to Jelly, and we'll pick up a new snapshot for Maven 1.0 hopefully.
Hide
Brett Porter added a comment -

tried upgrading to latest Jelly and there are big issues, so this may not happen for a while.

Show
Brett Porter added a comment - tried upgrading to latest Jelly and there are big issues, so this may not happen for a while.
Hide
Brett Porter added a comment -

confirmed fixed

Show
Brett Porter added a comment - confirmed fixed

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: