Hi,
the Dashboard plugin seems to assume that the
maven.multiproject.navigation property is set to 'aggregate', becuase
the links that are generated are like this:
<j:if test="${shallDisplay == 'true'}">
<tr>
<x:set var="projecturl1" select="string(@artifactId)"/>
<j:set var="projecturl"
value="${maven.multiproject.aggregateDir}${projecturl1}/index.html"/>
<td><a href="${projecturl}"><x:expr select="@name"/></a></td>
<jsl:applyTemplates select="aggregator"/>
</tr>
</j:if>
Notice the use of maven.multiproject.aggregateDir. But when
'independent' navigation is used the plugin should look at the
'pom.url' property.
Is this a bug or am I missing something?
This would probably be a better solution (untested):
<j:if test="${shallDisplay == 'true'}">
<tr>
<!-- url not defined in POM -->
<j:if test="${empty(pom.url)}">
<x:set var="projecturl1" select="string(@artifactId)"/>
<j:set var="projecturl"
value="${maven.multiproject.aggregateDir}${projecturl1}/index.html"/>
<td><a href="${projecturl}"><x:expr select="@name"/></a></td>
</j:if>
<!-- url defined in POM -->
<j:if test="${!empty(pom.url)}">
<td><a href="${pom.url}"><x:expr select="@name"/></a></td>
</j:if>
<jsl:applyTemplates select="aggregator"/>
</tr>
</j:if>
regards,
Wim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]