Simplify exec-maven-plugin configuration

- Move the version number to the parent pom's pluginManagement section
- Remove unnecessary system properties
- Increase the scope of execution from compile to runtime
This commit is contained in:
Trustin Lee 2014-02-07 13:40:22 -08:00
parent 8e854bbf18
commit 617739c515
2 changed files with 7 additions and 16 deletions

View File

@ -128,7 +128,6 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>${java.home}/bin/java</executable>
<arguments>
@ -137,13 +136,7 @@
<classpath/>
<argument>io.netty.example.spdy.server.SpdyServer</argument>
</arguments>
<classpathScope>compile</classpathScope>
<systemProperties>
<property>
<key>io.netty.leakDetectionLevel</key>
<value>disabled</value>
</property>
</systemProperties>
<classpathScope>runtime</classpathScope>
</configuration>
</plugin>
</plugins>
@ -156,7 +149,6 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>${java.home}/bin/java</executable>
<arguments>
@ -165,13 +157,7 @@
<classpath/>
<argument>io.netty.example.spdy.client.SpdyClient</argument>
</arguments>
<classpathScope>compile</classpathScope>
<systemProperties>
<property>
<key>io.netty.leakDetectionLevel</key>
<value>disabled</value>
</property>
</systemProperties>
<classpathScope>runtime</classpathScope>
</configuration>
</plugin>
</plugins>

View File

@ -756,6 +756,11 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
</plugin>
<!-- Workaround for the 'M2E plugin execution not covered' problem.
See: http://wiki.eclipse.org/M2E_plugin_execution_not_covered -->