给定一个带有插件的 gradle 构建脚本war
,maven
和eclipse-wtp
.
gradle eclipseWtp
org.eclipse.wst.common.component
使用无法提交到源代码存储库的绝对路径进行条目,因为它们是用户特定的 - 请参阅<dependent-module>
元素,更具体地说是handle
属性:
[...]
<dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/C:/Users/mp/.m2/repository/ognl/ognl/3.0.6/ognl-3.0.6.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/C:/Users/mp/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/C:/Users/mp/.gradle/caches/artifacts-24/filestore/org.springframework/spring-context-support/3.2.4.RELEASE/jar/bcb2341e76ef4621f2422b1f066fb34c42fad08d/spring-context-support-3.2.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
[...]
Gradle 如何提供对提交更友好的路径,例如通过使用 M2_REPO 变量?