Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven AntRun中的OutOfMemory-PermGen_Java_Maven_Ant_Maven Antrun Plugin - Fatal编程技术网

Java Maven AntRun中的OutOfMemory-PermGen

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

我有一个定制的ant任务被Maven AntRun调用,但是由于它有很多已定义的执行,类加载器似乎加载了很多,并抛出了OfMemory-PermGen空间。如何更好地定义将类导入到此自定义ant任务的位置

pom:


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>