maven does not exist jar package solution

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>

 

Reference article

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325158992&siteId=291194637