Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1705

Add distribution section to pom for deploying to maven repository

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Complexity:
      Medium

      Description

      The distribution section needs to be added to the parent pom.xml to allow deploying snapshots and releases to the Maven repository (Nexus).

       
      <distributionManagement>
          <repository>
            <id>openmrs-repo-releases</id>
            <name>OpenMRS Nexus Releases</name>
            <url>http://mavenrepo.openmrs.org/nexus/content/repositories/releases</url>
          </repository>
          <snapshotRepository>
            <id>openmrs-repo-snapshots</id>
            <name>OpenMRS Nexus Snapshots</name>
            <url>http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
          </snapshotRepository>
      </distributionManagement> 
      

      The CI server (Bamboo) should be configured with Nexus authentication for these ids in its maven settings (M2_HOME/conf/settings.xml or ~/.m2/settings.xml). These passwords can be stored encrypted (http://maven.apache.org/guides/mini/guide-encryption.html)

       
      <settings>
        <servers>
           <server>
             <id>openmrs-repo-releases</id>
             <username>user1</username>
             <password>pass123</password>
           </server>
           <server>
             <id>openmrs-repo-snapshots</id>
             <username>encrypteduser1</username>
             <password>{COQLCE6DU6GtcS5P=}</password>
           </server>
        </servers>
      </settings>
      

      The Bamboo plans would use "mvn clean deploy --batch-mode"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mblanchette Matthew Blanchette
                Reporter:
                mblanchette Matthew Blanchette
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: