CmdID

CmdID / Commands

mvn

Apache Maven: build and manage Java-based projects. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Compile a project

mvn compileIdentify

Compile and package the compiled code in its distributable format, such as a jar

mvn packageIdentify

Compile and package, skipping unit tests

mvn package --define skipTestsIdentify

Install the built package in local maven repository. (This will invoke the compile and package commands too)

mvn installIdentify

Delete build artifacts from the target directory

mvn cleanIdentify

Do a clean and then invoke the package phase

mvn clean packageIdentify

Clean and then package the code with a given build profile

mvn clean --activate-profiles profile packageIdentify

Run a class with a main method

mvn exec:java --define exec.mainClass="com.example.Main" --define exec.args="argument1 argument2 ..."Identify