Hi

I need to run a java program from maven. For that m gonna use
exec-maven-plugin.  But don't know how to use this. Is it possible that
I will create one new project with folder structure
src/main/java/com/sky/Main.java. N then use plugin like this 

  <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.sky.Main</mainClass>
 <arguments> 
<argument>argument1</argument> 
... </arguments> 
<systemProperties>
 <systemProperty>
 <key>myproperty</key>
 <value>myvalue</value> 
</systemProperty> 
... </configuration> 
</plugin>
 </plugins>
 </build> 

Now if il use mvn:java then this should run the java program. Am I
thinking right or wrong.

Regards
Vishal 

Reply via email to