win7 environment
Download: https://maven.apache.org/download.cgi
Extract the file and cmd go to the bin directory
Suppose the jar package to be added is jbarcode-0.2.8.jar,
Can be executed as follows:
mvn install:install-file -Dfile=D:\workspace\HerPeisElc\src\main\webapp\WEB-INF\lib\jbarcode-0.2.8.jar -DgroupId=org.jbarcode -DartifactId=jbarcode -Dversion=0.2.8 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true
execution succeed:
pom quote:
<dependency>
<groupId>org.jbarcode</groupId>
<artifactId>jbarcode</artifactId>
<version>0.2.8</version>
</dependency>