[英]How to download jar file from github source code?
I need to use a nxParser
library to parse my NTriple
files in eclipse. 我需要使用nxParser
库来解析eclipse中的NTriple
文件。
Apparently, the only source that perfectly works is this github code but this is just the source code and I need a built-in jar library. 显然,完美工作的唯一来源是这个github代码,但这只是源代码,我需要一个内置的jar库。
Could anyone help me how can I use a source code as a built-in jar file? 任何人都可以帮助我如何使用源代码作为内置jar文件?
If you need a jar file itself rather than adding pom.xml click on below link to download jar file http://central.maven.org/maven2/org/semanticweb/yars/nxparser-parsers/2.3.3/nxparser-parsers-2.3.3.jar 如果您需要一个jar文件而不是添加pom.xml,请单击下面的链接以下载jar文件http://central.maven.org/maven2/org/semanticweb/yars/nxparser-parsers/2.3.3/nxparser-parsers -2.3.3.jar
If you want to create jar file from github follow the below steps, 如果你想从github创建jar文件,请按照以下步骤操作,
In Linux/Mac 在Linux / Mac中
1.Clone the repository 1.克隆存储库
git clone https://github.com/nxparser/nxparser.git
cd nxparser
2.Build the project 2.建立项目
./gradlew build
3.Find jar file 3.找到jar文件
`nxparser-parsers/build/libs/nxparser-parsers-2.3.4-SNAPSHOT.jar`
As mentioned in the README 如README中所述
Compiles are available on Maven Central. 编译可在Maven Central上获得。 The groupId is org.semanticweb.yars and the artifactId nxparser . groupId是org.semanticweb.yars和artifactId nxparser 。
See for instance NxParser Parsers » 2.3.3 例如,参见NxParser Parsers»2.3.3
With maven for instance, you would add to your pom.xml
dependencies: 例如,使用maven,您可以添加到pom.xml
依赖项:
<!-- https://mvnrepository.com/artifact/org.semanticweb.yars/nxparser-parsers -->
<dependency>
<groupId>org.semanticweb.yars</groupId>
<artifactId>nxparser-parsers</artifactId>
<version>2.3.3</version>
</dependency>
You see, this is open source. 你看,这是开源的。 It comes with build files and is also available via maven. 它带有构建文件,也可以通过maven获得。
So "worst" case you get a full git clone and build that JAR on your own; 所以“最糟糕的”情况下你得到一个完整的git克隆并自己构建 JAR; to then import it into your eclipse project. 然后将其导入您的eclipse项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.