Using: Maven 1.0 rc2
Problem: Invoking the "maven war" results in java:compile being executed twice.
Tracing the logic of the goal "war" in the war plugin, you will find a call to
"war:init". In "war:init" are the following lines:
<j:if test="${sourcesPresent == 'true'}">
<caller:call goalInterface="compile-java"/>
<attainGoal name="test:test"/>
</j:if>
The caller plug-in invokes java:compile as instructed. That is the first invocation
of this goal.
The call to "test:test" can then be traced to have "java:compile" as a prerequisite.
That is the second invocation.
Any circumstance where this is necessary?
Sri