2
我在maven中有一個flex項目。 我能打包並沒有任何問題安裝它,但我不能將它部署:使用flex-plugin部署Java堆空間
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2734)
at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
at java.util.ArrayList.addAll(ArrayList.java:474)
at org.apache.maven.project.MavenProject.setActiveProfiles(MavenProject.java:1410)
at org.apache.maven.project.MavenProject.deepCopy(MavenProject.java:1961)
我已經增加的最大分配的內存(設置MAVEN_OPTS = -Xms2512m -Xmx3512m),沒有成功。
這是我的POM:
<parent>
<groupId>com.test</groupId>
<artifactId>super-pom</artifactId>
<version>1.2</version>
</parent>
<artifactId>services</artifactId>
<name>Services</name>
<packaging>swc</packaging>
<properties>
<flex.version>4.1.0.16076</flex.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.servebox.flex</groupId>
<artifactId>flex-plugin</artifactId>
<version>3.0.0-beta5</version>
<extensions>true</extensions>
<configuration>
<locale>en_US</locale>
</configuration>
<dependencies>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.8.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependency>
<groupId>com.adobe.flash.core</groupId>
<artifactId>playerglobal</artifactId>
<version>2.0</version>
<scope>provided</scope>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdkcore</groupId>
<artifactId>framework</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdkcore</groupId>
<artifactId>flex</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdkcore</groupId>
<artifactId>rpc</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdkcore</groupId>
<artifactId>spark</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdkcore</groupId>
<artifactId>utilities</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
<!-- LOCALE -->
<dependency>
<groupId>com.adobe.flex.locales.en_US</groupId>
<artifactId>framework_rb</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.locales.en_US</groupId>
<artifactId>rpc_rb</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.locales.en_US</groupId>
<artifactId>spark_rb</artifactId>
<version>${flex.version}</version>
<type>swc</type>
</dependency>
「MVN套裝」 運行正常。 「mvn install」運行正常。 「mvn deploy」失敗,但上述例外。
出了什麼問題?