O'Reilly logo

Apache Maven Cookbook by Raghuram Bharathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Eclipse to run Maven goals

If you are using Eclipse to develop your project, it is good to know how to run some of the plugins we have discussed earlier using the IDE.

How to do it...

To run Maven goals using Eclipse, use the following steps:

  1. Open the simple project in Eclipse.
  2. Right-click on the project.
  3. Choose Run As.
  4. View the available Maven options:
    How to do it...

How it works...

Eclipse provides an option to run various goals from the IDE. Among the ones we have seen in this chapter, clean, compile, and test are offered by Eclipse. There are a few other options as well.

In addition, Eclipse also allows us to modify the configurations as suitable.

Eclipse also ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required