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

Chapter 10. Java Development with Maven

In this chapter, we will cover the following recipes:

  • Building a JAR project
  • Generating an executable JAR
  • Generating a JAR of the source code
  • Generating a JAR of the test classes
  • Building a WAR project
  • Building an EAR project
  • Building a pom project
  • Running a web project with Jetty
  • Running a web project with Tomcat

Introduction

Maven is primarily a build tool for Java projects. Java projects can generate different types of binaries. Typically, the output of a Java project is a JAR file. For web applications, Java classes combined with other type of files result in a WAR or EAR file as well. Maven provides plugins and lifecycle phases to generate various types of binary artifacts for Java projects.

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