Home » Enterprise Java » Maven » Page 4

Maven

How to create an Ant build file from Maven example

In this tutorial we will show you how to create an Ant build file, called build.xml, using Apache Maven. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications. Maven contains the Ant Plugin that generates all necessary Ant build files, using the pom.xml file. In this example, we use the following tools on ...

Read More »

How to skip Maven unit test example

In this tutorial we will show you how to avoid running the unit tests of a Maven based Java project. By default, Apache Maven executes all unit tests automatically, when building a project. However, if a single test fails, Maven aborts the building process and reports the encountered errors. In this example, we use the following tools on a Windows ...

Read More »

How to run unit test with Maven example

In this tutorial, we will show you an easy way to run the unit tests of your project, using Apache Maven. Maven is able to execute all declared unit tests, in order to verify that our application works properly, or pop out the appropriate exceptions, in case it doesn’t. In this example, we use the following tools on a Windows ...

Read More »

How to clean project with Maven example

A Maven based project uses the target folder to place the output of a project’s build. Before the deployment of a project, it is a good practice to clean every file created by the previous build. In this example, we use Apache Maven 3.1.1 on a Windows 7 platform. In order to clean our project, we must first navigate to ...

Read More »