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.
To run Maven goals using Eclipse, use the following steps:
Open the simple project in Eclipse.
Right-click on the project.
Choose Run As.
View the available Maven options:
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 allows the project to be Run As a Java Application in the traditional way (without using any Maven plugins). Likewise, it allows a JUnit Test to be run without using Maven.