本地安裝jar 文件

It's not just the jar only to make a Maven repository, there are a bunch of other stuffs required to be regarded as Maven repository. From the URL I think it is not a standard Maven repository layout.

So you have at least 2 options:

  1. Setup your own local network Maven repository, either using ArtifactoryNexus or other similar software systems.
  2. Download the file and add it to your local machine repository.

For option 2, just download the file, and then run the Maven mvn command as follow (assuming the file is at your current directory):

 

 <dependency>
            <groupId>com.github.palindromicity</groupId>
            <artifactId>simple-syslog-5424</artifactId>
            <version>0.0.7</version>
        </dependency>

 

mvn install:install-file -Dfile=simple-syslog-5424-0.0.7.jar -DgroupId=com.github.palindromicity -DartifactId=simple-syslog-5424 -Dversion=0.0.7 -Dpackaging=jar

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章