Java Maven AntRun中的OutOfMemory-PermGen
我有一个定制的ant任务被Maven AntRun调用,但是由于它有很多已定义的执行,类加载器似乎加载了很多,并抛出了OfMemory-PermGen空间。如何更好地定义将类导入到此自定义ant任务的位置 pom:Java Maven AntRun中的OutOfMemory-PermGen,java,maven,ant,maven-antrun-plugin,Java,Maven,Ant,Maven Antrun Plugin,我有一个定制的ant任务被Maven AntRun调用,但是由于它有很多已定义的执行,类加载器似乎加载了很多,并抛出了OfMemory-PermGen空间。如何更好地定义将类导入到此自定义ant任务的位置 pom: org.apache.maven.plugins 但是这个文件夹确实包含50多个罐子。。。除了像这样声明每一个,还有什么方法可以定义它们吗 你似乎没有开始一个新的过程,所以antrun和Maven的其他人处于同一个过程中。如果需要增加操作系统中的PermGen空间集变量:MAVEN
org.apache.maven.plugins
但是这个文件夹确实包含50多个罐子。。。除了像这样声明每一个,还有什么方法可以定义它们吗 你似乎没有开始一个新的过程,所以antrun和Maven的其他人处于同一个过程中。如果需要增加操作系统中的PermGen空间集变量:MAVEN\u OPTS=-XX:MaxPermSize=256m
可能是一个选项,那么最好的分叉方式是什么?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<configuration>
<target>
<taskdef name="startBuildActivity" classname="com.ibm.team.build.ant.task.StartBuildActivityTask">
<classpath>
<fileset dir="K:\Build\RTC-BuildSystem-Toolkit-Win-4.0.4\jazz\buildsystem\buildtoolkit">
<include name="*.jar" />
</fileset>
</classpath>
</taskdef>
<startBuildActivity repositoryAddress="${repositoryAddress}" userId="build" password="build" buildResultUUID="${buildResultUUID}" autoComplete="true" label="Maven - ${executionId} phase" />
</target>
</configuration>
<executions>
...lots of executions...
</executions>
</plugin>