Versions Compared

Key

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

...

In

...

the

...

pom.xml

...

of

...

the

...

parent

...

project

...

of

...

a

...

module,

...

you

...

set

...

the

...

version

...

of

...

OpenMRS

...

to

...

compile

...

and

...

test

...

the

...

module

...

against.

...

Code Block

      <openMRSVersion>1.6.3</openMRSVersion>
</properties>	 </properties>
{code}
Once you attempt to compile and test against OpenMRS 

Once you attempt to compile and test against OpenMRS 1.8.0,

...

you'll

...

need

...

to

...

update

...

the

...

OpenMRS

...

dependencies

...

in

...

the

...

three

...

module

...

poms

...

as

...

follows

...

to

...

reflect

...

the

...

new

...

Maven

...

structure

...

introduced

...

to

...

OpenMRS

...

1.8.0

...

main

...

pom.xml

Code Block

<dependency> <groupId>org.openmrs.api</groupId> <artifactId>openmrs-api</artifactId> <version>${openMRSVersion}</version> <type>jar</type> <scope>provided</scope> </dependency> <dependency> <groupId>org.openmrs.api</groupId> <artifactId>openmrs-api</artifactId> <version>${openMRSVersion}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.web</groupId> <artifactId>openmrs-web</artifactId> <version>${openMRSVersion}</version> <type>jar</type> <scope>provided</scope> </dependency> <dependency> <groupId>org.openmrs.web</groupId> <artifactId>openmrs-web</artifactId> <version>${openMRSVersion}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.test</groupId> <artifactId>openmrs-test</artifactId> <version>${openMRSVersion}</version> <type>pom</type>&nbsp; <scope>test</scope> </dependency>

{code}
<dependency>

				<groupId>org.openmrs.api</groupId>

				<artifactId>openmrs-api</artifactId>

				<version>${openMRSVersion}</version>

				<type>jar</type>

				<scope>provided</scope>

			</dependency>

			<dependency>

				<groupId>org.openmrs.api</groupId>

				<artifactId>openmrs-api</artifactId>

				<version>${openMRSVersion}</version>

				<type>test-jar</type>

				<scope>test</scope>

			</dependency>

			<dependency>

				<groupId>org.openmrs.web</groupId>

				<artifactId>openmrs-web</artifactId>

				<version>${openMRSVersion}</version>

				<type>jar</type>

				<scope>provided</scope>

			</dependency>

			<dependency>

				<groupId>org.openmrs.web</groupId>

				<artifactId>openmrs-web</artifactId>

				<version>${openMRSVersion}</version>

				<type>test-jar</type>

				<scope>test</scope>

			</dependency>

			<dependency>

				<groupId>org.openmrs.test</groupId>

				<artifactId>openmrs-test</artifactId>

				<version>${openMRSVersion}</version>

				<type>pom</type> type>&nbsp;

				<scope>test</scope>

			</dependency>


{code}
omod 

omod pom.xml

...

}
Code Block
<dependency>

			<groupId>org.openmrs.module</groupId>

			<artifactId>patientflags-api</artifactId>

			<version>${project.parent.version}</version>

		</dependency>

		<dependency>

			<groupId>org.openmrs.api</groupId>

			<artifactId>openmrs-api</artifactId>

			<type>jar</type>

		</dependency>

		<dependency>

			<groupId>org.openmrs.api</groupId>

			<artifactId>openmrs-api</artifactId>

			<type>test-jar</type>

		</dependency>

		<dependency>

			<groupId>org.openmrs.web</groupId>

			<artifactId>openmrs-web</artifactId>

			<type>jar</type>

		</dependency>

		<dependency>

			<groupId>org.openmrs.web</groupId>

			<artifactId>openmrs-web</artifactId>

			<type>test-jar</type>

		</dependency>

		<dependency>

			<groupId>org.openmrs.test</groupId>

			<artifactId>openmrs-test</artifactId>

			<type>pom</type>  &nbsp; <\!-\- change to "pom" for 1.8\+ \-->

		</dependency>
{code}

api

...

pom.xml

...

}
Code Block
<dependency>

			<groupId>org.openmrs.api</groupId>

			<artifactId>openmrs-api</artifactId>

			<type>jar</type>

		</dependency>

		<dependency>

			<groupId>org.openmrs.api</groupId>

			<artifactId>openmrs-api</artifactId>

			<type>test-jar</type>

		</dependency>

		<dependency>

			<groupId>org.openmrs.web</groupId>

			<artifactId>openmrs-web</artifactId>

			<type>jar</type>

			<scope>provided</scope>

		</dependency>

		<dependency>

			<groupId>org.openmrs.web</groupId>

			<artifactId>openmrs-web</artifactId>

			<type>test-jar</type>

		</dependency>

		<dependency>

			<groupId>org.openmrs.test</groupId>

			<artifactId>openmrs-test</artifactId>

			<type>pom</type>  <&nbsp;<\!-\- change to "pom" for 1.8\+ \-->

		</dependency>

{code}