网址
https://git.lingjoin.com/nlpir-team/nlpir-maven-repo/-/packages/48
安装
看了半天也没有明白。于是尝试其中某处提供的命令:
$ sudo mvn dependency:get -Dartifact=com.lingjoin:nlpir-client-java:0.5.2-beta [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalone-pom: Couldn't download artifact: Missing: [ERROR] ---------- [ERROR] 1) com.lingjoin:nlpir-client-java:jar:0.5.2-beta [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=com.lingjoin -DartifactId=nlpir-client-java -Dversion=0.5.2-beta -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=com.lingjoin -DartifactId=nlpir-client-java -Dversion=0.5.2-beta -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0 [ERROR] 2) com.lingjoin:nlpir-client-java:jar:0.5.2-beta
虽然看得不太明白,出错是肯定的。怎么办?根据提示,先下载:
https://git.lingjoin.com/nlpir-team/nlpir-maven-repo/-/package_files/178/download
再执行命令,成功:
mvn install:install-file -DgroupId=com.lingjoin -DartifactId=nlpir-client-java -Dversion=0.5.2-beta -Dpackaging=jar -Dfile=/home/tsit/nlpir-client-java-0.5.2-beta.jar
然后呢?大哥你的范例在哪里?