<executions>
<execution>
<id>copy-sources</id>
- <!-- here the phase you need -->
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</execution>
<execution>
<id>copy-resources</id>
- <!-- here the phase you need -->
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</execution>
</executions>
</plugin>
+
<!-- clean copied sources afterwards -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
</execution>
</executions>
</plugin>
+
+ <!-- set jvm parameters for surefire plugin -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.19.1</version>
+ <configuration>
+ <argLine>-Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
</execution>
</executions>
</plugin>
+
<!-- clean copied sources afterwards -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
</filesets>
</configuration>
</plugin>
+
+
+ <!-- set jvm parameters for surefire plugin -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.19.1</version>
+ <configuration>
+ <argLine>-Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>