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 cc1a17e9f7
commit 4918e4c767
2 changed files with 7 additions and 16 deletions

View File

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

View File

@ -757,6 +757,11 @@
<artifactId>build-helper-maven-plugin</artifactId> <artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version> <version>1.8</version>
</plugin> </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. <!-- Workaround for the 'M2E plugin execution not covered' problem.
See: http://wiki.eclipse.org/M2E_plugin_execution_not_covered --> See: http://wiki.eclipse.org/M2E_plugin_execution_not_covered -->