У меня есть один проект Flex в Maven.Я могу упаковать и установить его без каких-либо проблем, но я не могу развернуть его:
[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 package" работает нормально."mvn install" работает нормально.Сбой «mvn deploy», за исключением приведенного выше.
Что не так?