Versions Compared

Key

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

...

You need to have a login to mavenrepo.openmrs.org. (This does not use your OpenMRS ID.) You can request an account at http://go.openmrs.org/helpdeskOnce you have a username and password to the maven repository, you can specify your username and password in settings.xml (in your ~/.m2 directory):

Code Block
<settings>
  <servers>
    <server>
	      <id>openmrs-repo<<id>central</id>
      <username>yourusername</username>
      <password>yourpassword</password>
    </server>
    <server>
      <id>openmrs-repo-modules</id>
      <username>yourusername</username>
 
    <password>yourpassword</password>
    </server>
	<server>
      <id>openmrs-repo-releases</id>
      <username>yourusername</username>
      <password>yourpassword</password>
    </server>
	<server>
      <id>openmrs-repo-snapshots</  <id>snapshots</id>
      <username>yourusername</username>
      <password>yourpassword</password>
    </server>
  </servers>
</settings>

...

Code Block
<distributionManagement>
	 <repository>
		<id>openmrs-repo-modules</id>
		<name>Modules</name>
		<url>http://mavenrepo.openmrs.org/nexus/content/repositories/modules/</url>
	
        <id>central</id>
        <name>openmrs-releases</name>
        <url>https://openmrs.jfrog.io/openmrs/modules</url>
    </repository>
	<snapshotRepository>
		<id>openmrs-repo-snapshots</id>
		<name>OpenMRS Snapshots</name>
		<url>http://mavenrepo.openmrs.org/nexus/content/repositories
        <id>snapshots</id>
        <name>openmrs-snapshots</name>
        <url>https://openmrs.jfrog.io/openmrs/snapshots</url>
 	   </snapshotRepository>
</distributionManagement>

...