Learn how to detect duplicate dependencies in Maven using the mvn dependency:tree and mvn dependency:analyze-duplicate commands.
Search Results for: maven
Importing Maven Project into Eclipse
Learn how to import a Maven project into Eclipse.
Generate a WAR File in Maven
In this tutorial, we’re going to consider the usage of the Maven WAR plugin with a Java EE application.
Maven dependencyManagement vs. dependencies Tags
Learn the similarities and differences of Maven’s dependencyManagement and dependencies tags
Understanding Maven’s “relativePath” Tag for a Parent POM
Learn about the Parent POM resolution of Maven.
Running a Single Test or Method With Maven
Learn how to execute tests during a Maven build using the Maven surefire plugin
Hosting a Maven Repository on GitHub
A quick and practical guide to hosting Maven repositories on GitHub.
Disable the Maven Javadoc Plugin
Learn how to temporarily disable the Javadoc generation in Maven builds.
Default Values for Maven Properties
In this short article, we’ll go through how to configure Maven properties default values, and how to use them.
Plugin Management in Maven
Plugin management allows us to configure how plugins work across multi-module maven builds. We look at how this can be used and configured.
Force Repository Update with Maven
Explore the options and goals of Maven that forcibly updates our local repository.
Additional Source Directories in Maven
Learn how to configure additional source directories in Maven.
Difference Between Maven Surefire and Failsafe Plugins
Compare Surefire and Failsafe plugins for separating and running different types of tests.
The settings.xml File in Maven
We can configure maven via the settings.xml file. We look at some common use cases and configuration options.
Command Line Arguments as Maven Properties
In this short tutorial, we’ll look at how we can pass arguments to Maven using the command line.
How to Display a Message in Maven
Learn how to print messages to the console or to a file during a Maven build using various plugins.
Copying Files With Maven
Learn how to copy a source file to a destination using three different Maven plugins.
Clearing the Maven Cache
In this short tutorial, we’ll explore ways to clear our local Maven cache.
Generate WSDL Stubs with Maven
Learn how to configure the JAX-WS maven plugin to generate Java classes from a WSDL file
Override Maven Plugin Configuration from Parent
While we want to modularise our maven file to avoid repetition, sometimes it’s necessary to provide specific variations for child modules. Here we explain how the various tiers of a maven file can be combined.