MPANT-7. Not obeying jar overrides. While this patch doesn't get every case, it does
get the common one of using an included lib. I am using this succesfuly with commons-email's ant build. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116257 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
ccc462de40
commit
40b4ade85a
7 files changed
+37
-4
No files matched your search
@@ -349,14 +349,26 @@
|
||||
proxyuser="${maven.proxy.username}"
|
||||
proxypassword="${maven.proxy.password}"/>
|
||||
|
||||
<j:forEach var="dep" items="${pom.dependencies}">
|
||||
<!-- note: this is a valid use of artifactDirectory -->
|
||||
<j:forEach var="lib" items="${pom.artifacts}">
|
||||
<maven:makeRelativePath var="relativePath" basedir="${maven.repo.local}" path="${lib.path}" separator="/"/>
|
||||
<u:file var="checkExist" name="${maven.repo.local}/${relativePath}" />
|
||||
<j:choose>
|
||||
<j:when test="${checkExist.exists()}">
|
||||
<j:set var="dep" value="${lib.dependency}"/>
|
||||
<!-- note: this is a valid use of artifactDirectory -->
|
||||
<get
|
||||
src="${repo}/${dep.artifactDirectory}/${dep.type}s/${dep.artifact}"
|
||||
dest="$${libdir}/${dep.artifact}"
|
||||
usetimestamp="true"
|
||||
ignoreerrors="true"
|
||||
/></j:forEach>
|
||||
/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<maven:makeRelativePath var="relativePath" basedir="${basedir}" path="${lib.path}" separator="/"/>
|
||||
<copy todir="$${libdir}" file="${relativePath}"/>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</j:forEach>
|
||||
</target>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
|
||||
Reference in new issue
Block a user