wiki:Nexus

Version 7 (modified by Twan Goosen, 9 years ago) (diff)

general settings

CLARIN Nexus Maven Repository

A publicly accessible 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.

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</id>
                <url>https://nexus.clarin.eu/content/repositories/Clarin</url>
        </snapshotRepository>
        <repository>
                <id>CLARIN-Snapshot</id>
                <url>https://nexus.clarin.eu/content/repositories/clarin-snapshot</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.

More information

If you have questions or remarks, please contact Twan Goosen?.