Book Image

Apache Maven Cookbook

Book Image

Apache Maven Cookbook

Overview of this book

Table of Contents (18 chapters)
Apache Maven Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using IntelliJ IDEA to run Maven goals


Finally, let us look at what IntelliJ IDEA provides.

How to do it...

To run Maven goals using IntelliJ IDEA, perform the following steps:

  1. Open the simple project in IntelliJ IDEA.

  2. Select Maven Projects:

  3. Open Lifecycle and click on a suitable goal/phase:

How it works...

Clicking on a Maven phase/goal invokes the corresponding Maven command and the same is executed. For instance, clicking on compile does the following:

There are also other configuration options provided by IntelliJ IDEA to customize Maven projects.