[英]How to install and use openEHR libraries with maven
I need to use these libraries https://github.com/openEHR/java-libs with netbeans and the installation guide tells to do: 我需要使用这些库https://github.com/openEHR/java-libs和netbeans,安装指南告诉我们:
REQUIREMENTS:
Java 1.6 or higher
Maven 3.0.4 or higher
INSTALATION INSTRUCTIONS:
INSTALLATION:
java-libs/mvn clean install
I meet the Java requirements and my NetBeans has bundled Maven 3.0.5, but I can't find a way to install and use the libraries in a Java project, could someone help me? 我符合Java要求,我的NetBeans捆绑了Maven 3.0.5,但我找不到在Java项目中安装和使用库的方法,有人可以帮助我吗?
These instructions are for installing the java-libs artifact to your local maven artifacts repository, so it can be referenced by your project. 这些说明用于将java-libs工件安装到本地maven工件存储库,因此项目可以引用它。
mvn clean install
inside the new directory created with the cloned repo. mvn clean install
。 After you install the artifact, you can use it in your project by adding a dependency to your project's pom.xml file: 安装工件后,可以通过向项目的pom.xml文件添加依赖项来在项目中使用它:
<dependency>
<groupId>openehr</groupId>
<artifactId>ref_impl_java</artifactId>
<version>1.0.11-SNAPSHOT</version>
<dependency>
How do I know the parameters above? 我怎么知道上面的参数? By looking at the java-libs' pom.xml file .
通过查看java-libs的pom.xml文件 。
EDIT: As @Jack pointed, one should reference the specific library needed as dependency, like: 编辑:正如@Jack指出的那样,应该引用所需的特定库作为依赖,如:
<dependency>
<groupId>openehr</groupId>
<artifactId>archetype-validator</artifactId>
<version>1.0.11-SNAPSHOT</version>
<dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.