Publish ict4h modules to Nexus

Currently all modules in https://github.com/ict4h are being published by people mostly working in the Bahmni team. Use this guide if you need to publish a jar to the Nexus repository. 

Step-by-step guide

  • Ensure you have gnugpg installed. eg: brew install gpg
  • Generate a key pair - gpg --gen-key
  • Ensure you have the latest master version of the component. 
  • Ensure you have the user id and password for nexus in your .m2/settings.xml

 

settings.xml
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<servers>
    	<server>
			<id>sonatype-nexus-snapshots</id>
			<username>ict4h</username>
			<password>************</password>
		</server>
	</servers>
</settings>

 

  • mvn release:prepare
  • mvn release:perform

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.Related articles

 

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)