Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-26391

allow specifying database configuration properties via existing property configuration mechanisms

    Details

      Description

      As per https://help.sonatype.com/repomanager3/new-database-options/configuring-nexus-repository-pro-for-h2-or-postgresql#ConfiguringNexusRepositoryProforH2orPostgreSQL-ExtraConfigurationOptionsforPostgreSQL

      Currently there are several properties files to create and the add properties into in order to use Postgres as the database implementation

       

      • Create the  <data-dir>/etc/nexus.properties file and add the following line: 
        nexus.datastore.enabled=true
      • Create the <data-dir>/etc/fabric directory.
      • In this directory, create nexus-store.properties; below is a sample that you will need to update with the appropriate configuration.
        username=<postgres_user>password=<postgres_password>name=nexus
        type=jdbc
        jdbcUrl=jdbc\:postgresql\://localhost\:5432/nxrm
        If using AWS Aurora as your database, you will need to include gssEncMode=disable as a query parameter of the JDBC URL.

      You can now start your Nexus Repository instance and use a PostgreSQL database.

      Problem

      The more files to create, the more potential confusion about what is actually consumed and more risk of misconfiguration. The support team and the customer will need to look in more places for problems. There is already a well established pattern for configuring runtime properties, via nexus.properties file and system properties, even set via bin/nexus.vmoptions.

      Expected

      Do not require creating new property files in order to use datastore related properties. Instead namespace the datastore specific properties and allow those properties be consumed as typical properties are, via etc/nexus.properties, as system properties, etc. Re-use the algorithm that already exists that merges all properties from the various places NXRM already consumes them.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Joe Tom Joe Tom
            Team:
            NXRM - Sentinels
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title