Maven cheatsheet
Posted by davidnewcomb on 02 Dec 2020 in Java
Here are a few Maven things I want to remember:
Create project | mvn archetype:generate
|
Download all the source jars in a project | mvn dependency:resolve -Dclassifier=sources
|
Print dependencies | mvn dependency:tree
|
Download jar to local repo | mvn dependency:copy -Dartifact=group:artifact:version
|
Print classpath for a project | mvn -DincludeScope=compile dependency:build-classpath
|
Load a 3rd party jar into local m2 | mvn install:install-file -Dfile=path-to-file -DgroupId=group-id -DartifactId=artifact-id -Dversion=version -Dpackaging=packaging
|
No feedback yet
Form is loading...