skip to Main Content

I am setting up an environment for Overledger in Java. How to install the Overledger SDK as a maven dependency. In documentation, only this information is given:
Source: Documentation

I have never installed SDK in Java using maven, so it would be great if you’d explain me from scratch.

2

Answers


  1. Add the provided Maven dependency to your pom.xml in your Maven project.

    <project xmlns="http://maven.apache.org/POM/4.0.0"
        ...>
    
        ...
    
        <build>
            ...
        </build>
    
        <dependencies>
    
            ...
    
            <dependency>
                <groupId>network.quant</groupId>
                <artifactId>overledger-sdk-bundle</artifactId>
                <version>1.0.0-alpha.2</version>
            </dependency>
    
            ...
    
        </dependencies>
    </project>
    

    more Maven Getting Started: https://maven.apache.org/guides/getting-started/

    Login or Signup to reply.
  2. The documentation should read “Developers have to declare …” instead of “Developers have to install …”.

    See Maven POM Reference, Dependencies for how to declare the dependency in your project’s POM (i.e. pom.xml):

    <project ...>
    
      ...
    
      <dependencies>
    
        ...
    
        <dependency>
          <groupId>network.quant</groupId>
          <artifactId>overledger-sdk-bundle</artifactId>
          <version>1.0.0-alpha.2</version>
        </dependency>
    
        ...
    
      </dependencies>
    
      ...
    
    <project>
    

    At the next Maven build (or project update in your IDE) it will be downloaded from the Maven Central repository to your local repository (located in ~/.m2/repository by default). From then on the dependency’s classes can be used in your project’s code.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search