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

Utilize Tomcat Context "Environment name," not Operating System Environment Variable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 2.1.2
    • Fix Version/s: None
    • Component/s: Bootstrap, Configuration
    • Labels:
      None
    • Environment:
      Red Hat Enterprise Linux 6.3 64-bit, Oracle JDK 7u4 64-bit, Tomcat 7.0.27
    • Release Note:
      Yes

      Description

      I would like the option of passing Nexus bootstrap variables via Tomcat context XML element "Environment name" rather than operating system environment variables or embedded WEB-INF/plexus.properties file. Why? My organization has created a stable Tomcat platform running multiple web apps per container. One way we've achieved this is by moving app-specific configurations out of the app home or WAR file into individual app context XML files. These files are then controlled by our central configuration management system. This allows the apps to be deployed or moved to any server while keeping the Tomcat containers uniform. Also a setting change doesn't require building a new WAR file.

      Here's an example of what I'm thinking (/opt/tomcat/conf/Catalina/localhost/nexus.xml):

      <Context path="/nexus" docBase="/srv/webapps/nexus-2.1.2" reloadable="true">
      <Environment name="PLEXUS_NEXUS_WORK" value="/srv/appdata/nexus" type="java.lang.String" override="true" />
      <Environment name="PLEXUS_RUNTIME" value="/srv/webapps/nexus" type="java.lang.String" override="true" />
      </Context>

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            patrickslc Patrick
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title