Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The scripts on this page require the bash shell. They also do not work with the BSD version of sed that comes with Mac OSX. Please install the GNU sed instead which is available through brew.

Converting your Module

There are two scripts for converting an existing module. Choose only one and run it.

These scripts should be executed in the project directory using bash:

Code Block

Update the SH_OPENMRS_VERSION variable at the beginning of the script to a version of OpenMRS available in the Nexus Maven repository.
The OpenMRS version for the module can also be set by changing the openMRSVersion property in the pom.xml after running the script.

For libraries in the lib folder, replace the commented dependency sections in the pom.xml files with the correct dependencies. Search for the dependency information in the Maven central repository, for example groovy-all 1.7.5 and commons-codec 1.4

See TRUNK-1686 for more background info

Converting Trunk or a Branch


It is uncommon to need this file. This should only be run against checkouts of TRUNK or a branch off of trunk

Download this script:

Run it at command line with:

Code Block

See TRUNK-241 for more information

Convert a Patch File

Download this sed script: mavenize-a-patch-v1.sed

Run it with this link at command line:

Code Block
sed -f mavenize-a-patch-v1.sed old-trunk-patch.patch > old-trunk-patch-mavenized.patch

See TRUNK-1692 for more background info on this