When building our EAR with maven I can see that during the build process the final EAR file is created, deleted and created from scratch again. Since it is quite a huge EAR (with lots of files) I would like to prevent that because:
- it speeds up building process
- it will improve the life time of the SSD
So the question is whether the first EAR file creation (which is immedeatly deleted afterwards) can be prevented (and if so how)?
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<earSourceDirectory>${basedir}/src/main/application</earSourceDirectory>
<defaultLibBundleDir>APP-INF/lib</defaultLibBundleDir>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
<modules>
<!-- some modules -->
</modules>
</configuration>
<executions>
<execution>
<id>build-ear</id>
<phase>package</phase>
<goals>
<goal>ear</goal>
</goals>
</execution>
</executions>
</plugin>