Resources for Apache Maven.
Generate a project from a template
Delete the target directory
List unused declared and used undeclared dependencies. For example, inspect the list and update the
pom.xml file as needed to reduce the size of the build.
Find goals for a plugin using help, e.g.,
List project dependencies, e.g.,
Display a tree of the dependencies
Deploy the artifact to remote repository
Build and install to local repository
Build and package. e.g., creates jar, war, etc.
Checks the project
Configuring for Projects
For versions equal or greater than 3.3.1.
Suppose you want a project specfic Maven configuration for maven projects located in a folder named
myproject, create a directory named
cd myproject mkdir .mvn
.mvn folder, create a valid Maven settings file named
local-settings.xml. This can be done easily by copying the existing user Maven settings. e.g.,
cp ~/.m2/settings.xml .mvn/local-settings.xml
.mvn folder, create a
maven.config file which contains the configuration options for the
mvn command line. e.g.,
maven.config file, add / update this line to map
--settings to the
local-settings.xml. For project subdirectory
mvn command context, the path to
.mvn/local-settings.xml needs to be absolute. e.g.,
Here is our project file structure.
For comparison with Adobe Experience Manager (AEM) Maven Project, the
mysubmodulefolder is named
For more information, refer to Configuring Apache Maven.