Link Details

Link 278219 thumbnail
User 400305 avatar

By vineetmanohar
via vineetmanohar.com
Published: Nov 04 2009 / 02:41

Maven exec plugin lets you run the main method of a Java class in your project, with the project dependencies automatically included in the classpath. This article show you 3 ways of using the maven exec plugin to run java, with code examples. This approach is useful in many scenarios including migration of existing tasks from ant to maven.
  • 16
  • 0
  • 1462
  • 459

Comments

Add your comment
User 214988 avatar

Alex Miller replied ago:

0 votes Vote down Vote up Reply

In the past I've found this info amazingly hard to come by.

User 400305 avatar

Vineet Manohar replied ago:

0 votes Vote down Vote up Reply

I'm surprised that maven exec plugin is not as popular as it should be. Most people use maven to build their project, but use "ant" or "java" command line is used to run the main() method, which is tedious because they need to rebuild the CLASSPATH.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.