OpenXRI:MavenRepository
From I-names Development Wiki
Contents |
About
This page describes how to reference OpenXRI if you are using the Maven build framework.
Sonatype
We are using Sonatype, which is a company that provides free Maven repository hosting to open source projects like OpenXRI.
Repositories
Sonatype provides a "snapshot" and a "release" repository to OpenXRI. Artifacts deployed to Sonatype get synced to the Maven central repository, therefore you do not have to explicitly reference the OpenXRI repository in your Maven pom.xml file, as long as you are using OpenXRI release artifacts.
If you are using OpenXRI snapshot artifacts, you need to include the following XML snippet in your Maven pom.xml file in order to include the OpenXRI "snapshot" repository:
<repositories> ... <repository> <id>openxri-snapshots</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> ... </repositories>
Artifacts
The OpenXRI project uses the groupId org.openxri and the following artifactIds:
- openxri-syntax
- openxri-client
- openxri-server-logic
- openxri-server
- openxri-admin
You can reference them in your Maven pom.xml file using an XML snippet like this:
<dependencies> ... <dependency> <groupId>org.openxri</groupId> <artifactId>openxri-client</artifactId> <version>1.2.1</version> </dependency> ... </dependencies>
