Author: sebb Date: Tue Jan 6 15:35:31 2015 New Revision: 1649834 URL: http://svn.apache.org/r1649834 Log: Allow use of exec:java to launch examples from classpath
Modified: commons/proper/net/trunk/pom.xml Modified: commons/proper/net/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/pom.xml?rev=1649834&r1=1649833&r2=1649834&view=diff ============================================================================== --- commons/proper/net/trunk/pom.xml (original) +++ commons/proper/net/trunk/pom.xml Tue Jan 6 15:35:31 2015 @@ -342,6 +342,28 @@ Supported protocols include: Echo, Finge </configuration> </plugin> + <!-- + Allow exec:java to launch examples from the classpath + For example: + + mvn -q exec:java -Dexec.arguments=FTPClientExample,-A,-l,hostname + --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.1</version> + <executions> + <execution> + <goals> + <goal>java</goal> + </goals> + </execution> + </executions> + <configuration> + <mainClass>examples.Main</mainClass> + </configuration> + </plugin> + </plugins> </build>