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:
parent
8e854bbf18
commit
617739c515
@ -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>
|
||||
|
5
pom.xml
5
pom.xml
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user