How to use Maven credentials

How to use Maven credentials to add timveroOS dependency to your project.

Here are the steps:

  1. First, add the repository configuration in your pom.xml:

<repositories>
    <repository>
        <id>maven.timvero.xyz</id>
        <name>Timvero Repository</name>
        <url>https://maven.timvero.xyz/releases</url>
    </repository>
</repositories>
  1. Create or edit the settings.xml file (typically located in ~/.m2/settings.xml on Unix/Mac or C:\Users\YourUsername\.m2\settings.xml on Windows) to store your credentials:

<settings>
    <servers>
        <server>
            <id>maven.timvero.xyz</id>
            <username>__your-username__</username>
            <password>__your-password__</password>
        </server>
    </servers>
</settings>
  1. Now you can add dependencies from your private repository in your pom.xml:

<dependency>
    <groupId>com.timvero.pumpkin</groupId>
    <artifactId>web</artifactId>
    <version>7.10.0</version>
</dependency>

Important notes:

  • The id in your repository configuration must match the id in your settings.xml

  • Never commit the settings.xml file with your credentials to version control

  • Make sure the URL in the repository configuration matches timveroOS repository's URL

Last updated

Was this helpful?