Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

While developing custom modules it is important to deploy the latest versions of snapshots to Nexus on commits to the master branch and merging of pull requests. 

Prerequisites 

  1. Nexus Account - request one by creating a help desk ticket at https://help.openmrs.org/
  2. Maven setup - a sample configuration is below 

...

Code Block
languagexml
titleDistribution management in pom.xml
linenumberstrue
<distributionManagement>
		<repository>
			<id>openmrs-repo-modules</id>
			<name>OpenMRS Modules</name>
			<url>http://mavenrepo.openmrs.org/nexus/content/repositories/modules</url>
		</repository>
		<snapshotRepository>
			<id>openmrs-repo-snapshots</id>
			<name>OpenMRS Snapshots</name>
			<url>http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

Step-by-step guide

  1. Run `mvn clean deploy` to test the configuration of the snapshots deployment
  2. Add .travis.yml and maven-settings.xml files below to the root of your project

...

Info

NOTE: You need to encrypt the username and password for each repository, as the encrypted values are repository specific 

Content by Label
showLabelsfalse
max5
spacesdocs
sortmodified
showSpacefalse
reversetrue
typepage
labelstravis nexus snapshots deploy

...