Thanks St�phane.

This is another patch to copy the local overrided jar to WEB-INF/lib from
their overrided
location instead of from repository

Index: plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/war/plugin.jelly,v
retrieving revision 1.7
diff -r1.7 plugin.jelly
117,118c117,133
<         <copy todir="${webapp.build.lib}"
<           file="${maven.repo.local}/${dep.artifactDirectory}/jars/${dep.artifact}"/>
---
>         <j:if test="${maven.jar.override}">
>           <!-- 
>             create a temp var "overrideJarKey" because
>             getVariable(maven.jar.${dep.artifactId}) has syntax error
>           -->
>           <j:set var="overrideJarKey" value="maven.jar.${dep.artifactId}" />
>           <j:set var="overrideJarFile" 
> value="${pom.getPluginContext('maven-war-plugin').getVariable(overrideJarKey)}"/>
>         </j:if>
>         <j:choose>
>           <j:when test="${overrideJarFile != null}">
>             <copy todir="${webapp.build.lib}" file="${overrideJarFile}"/>
>           </j:when>
>           <j:otherwise>
>             <copy todir="${webapp.build.lib}"
>               
> file="${maven.repo.local}/${dep.artifactDirectory}/jars/${dep.artifact}"/>
>           </j:otherwise>
>         </j:choose>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to