Maven 1.x War Plugin

war:init invokes java:compile twice

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    All
  • Number of attachments :
    0

Description

The war:init has the following logic

<j:if test="${sourcesPresent == 'true'}">
<caller:call goalInterface="compile-java"/>
<attainGoal name="test:test"/>
</j:if>

This results in java:compile being invoked twice. While this by itself may be a minor annoyance it becomes a big issue if you have set up a preGoal for java:compile which does a lot.

Activity

Hide
dion gillard added a comment -

Brett/Vincent,

if you like I can do this one, as I've been making changes to the war plugin lately.

Show
dion gillard added a comment - Brett/Vincent, if you like I can do this one, as I've been making changes to the war plugin lately.
Hide
Brett Porter added a comment -

sounds good to me

Show
Brett Porter added a comment - sounds good to me
Hide
dion gillard added a comment -

Fixed in v1.6

Show
dion gillard added a comment - Fixed in v1.6

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1d
Original Estimate - 1 day
Remaining:
1d
Remaining Estimate - 1 day
Logged:
Not Specified
Time Spent - Not Specified