wiki:Nexus

CLARIN Nexus Maven Repository

A publicly accessible instance of the Nexus Maven repository, intended to be used by the broader CLARIN development community, is available at:

Users with a CLARIN website account in the 'developer' role can log in (username = email address) and use these credentials to deploy artefacts into the repository. An account is also required to access the front end. Anyone can download artifacts, typically through Maven builds.

Please note!!! The integration of Nexus with the CLARIN website LDAP server is currently broken. This means that you can expect failures when trying to deploy artifacts to the CLARIN Nexus. If this happens, and you need to deploy or carry out other actions that require authenticated access, a functioning local account can be provided. Please contact the system administrators (sysops@clarin.eu) about this if applicable.

Settings

Add the following sections to your Maven settings.xml file:

<repositories>
        ...
        <repository>
                <id>CLARIN</id>
                <name>CLARIN Repository</name>
                <url>https://nexus.clarin.eu/content/repositories/Clarin</url>
                <snapshots>
                        <enabled>false</enabled>
                </snapshots>
        </repository>
        <repository>
                <id>CLARIN-Snapshot</id>
                <name>CLARIN Snapshot Repository</name>
                <url>https://nexus.clarin.eu/content/repositories/clarin-snapshot</url>
                <snapshots>
                        <enabled>true</enabled>
                </snapshots>
        </repository>
</repositories>

Settings for deployment of artifacts

You can deploy both 'snapshot' and stable artifacts to the Nexus repository if you have a valid account. Maven needs to be configured to use this account before you can deploy artifacts.

Use the following in your project POM files:

<distributionManagement>
        <snapshotRepository>
                <id>CLARIN-Snapshot</id>
                <url>https://nexus.clarin.eu/content/repositories/clarin-snapshot</url>
        </snapshotRepository>
        <repository>
                <id>CLARIN</id>
                <url>https://nexus.clarin.eu/content/repositories/Clarin</url>
        </repository>
</distributionManagement>

Add the following sections to your Maven settings.xml file:

<servers>
        ...
        <server>
                <id>CLARIN</id>
                <username>user@institute.org</username> <!-- e-mail address associated with your CLARIN website account -->
                <password>{....}</password> <!-- encrypted password of your CLARIN website account -->
        </server>

        <server>
                <id>CLARIN-Snapshot</id>
                <username>user@institute.org</username> <!-- e-mail address associated with your CLARIN website account -->
                <password>{....}</password> <!-- encrypted password of your CLARIN website account -->
        </server>
</servers>

Store passwords encrypted! See https://maven.apache.org/guides/mini/guide-encryption.html for instructions.

More information about deployment to Nexus in general can be found at https://support.sonatype.com/entries/21283268-Configure-Maven-to-Deploy-to-Nexus.

Automated deployment (Travis)

A travis user is available for automated deployment as part of the continuous integration workflow. See TravisCI for more information.

More information

If you have questions or remarks, please contact Twan Goosen or sysops@clarin.eu.

Last modified 2 years ago Last modified on 12/20/21 15:10:37