【发布时间】:2011-11-25 00:37:38
【问题描述】:
我正在使用 ant maven deploy 任务将 ant 脚本创建的 zip 文件上传到我们的存储库,但问题是文件太大并且失败了 java.lang.OutOfMemoryError:Java 堆空间。以下是任务
<deploy uniqueversion="false">
<remoterepository url="${repository}" id="${repositoryId}"/>
<remotesnapshotrepository url="${snapshotRepository}" id="${snapshotRepositoryId}"/>
<attach file="target/${qname}-dist.zip" type="zip"/>
<pom file="pom.xml" groupid="com.my.company" artifactid="test" packaging="zip" version="${version}" />
</deploy>
如何在此处指定内存堆大小,我似乎在部署任务或其某些子任务中找不到任何内容。
【问题讨论】:
标签: deployment maven ant