Maven Install

less than 1 minute read

mvn install:install-file
-Dfile=
-DgroupId=
-DartifactId=
-Dversion=
-Dpackaging=
-DgeneratePom=true

Where: the path to the file to load
the group that the file should be registered under
the artifact name for the file
the version of the file
the packaging of the file e.g. jar




group-a
artifact-b
1.0
bar
runtime



////-.jar

mvn install:install-file -Dfile=C:\dev\Libs\yfiles\2.2.1\y.jar -DgroupId=norkom -DartifactId=yfiles -Dversion=2.2.1 -Dpackaging=jar -DgeneratePom=true

C:\dev\Libs\yfiles\2.2.1\y.jar --> C:\tools\m2\repo\norkom\yfiles\2.2.1\yfiles-2.2.1.jar

Categories:

Updated:

Leave a Comment