<project>
...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
...
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.example.Main</mainClass>
<arguments>
<argument>argument1</argument>
...
</arguments>
<systemProperties>
<systemProperty>
<key>myproperty</key>
<value>myvalue</value>
</systemProperty>
...
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
See http://mojo.codehaus.org/exec-maven-plugin/usage.html
-----Original Message-----
From: legolas [mailto:[email protected]]
Sent: Friday, March 20, 2009 6:29 PM
To: [email protected]
Subject: a sample maven build file for executing a Java file with a main
method
Hi
Thank you for reading my post
Can you please post a sample maven pom file which contains snippet on how I
can change the pom file in order to ask maven execute a public void
main(String args[]) method of a Java file.
--
View this message in context:
http://www.nabble.com/a-sample-maven-build-file-for-executing-a-Java-file-wi
th-a-main-method-tp22629653p22629653.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]