Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.openmrs</groupId>
- <artifactId>standalone</artifactId>
- <version>1.1.1</version>
- <packaging>jar</packaging>
- <name>standalone</name>
- <url>http://maven.apache.org</url>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <tomcat.version>6.0.26</tomcat.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.apache.tomcat</groupId>
- <artifactId>catalina</artifactId>
- <version>${tomcat.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tomcat</groupId>
- <artifactId>coyote</artifactId>
- <version>${tomcat.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tomcat</groupId>
- <artifactId>jasper</artifactId>
- <version>${tomcat.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.8</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-mxj-fixed</artifactId>
- <version>5.0.12</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-mxj-db-files-fixed</artifactId>
- <version>5.0.12</version>
- <scope>compile</scope>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>default</id> <!-- for 1.9.x and up -->
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <liquibasePluginArtifactId>liquibase-maven-plugin</liquibasePluginArtifactId>
- <liquibasePluginVersion>2.0.1</liquibasePluginVersion>
- <liquibaseDemoDataFileName>liquibase-demo-data.xml</liquibaseDemoDataFileName>
- <liquibaseMVPDataFileName>liquibase-mvp-data.xml</liquibaseMVPDataFileName>
- <liquibaseDemoDataFollowupFileName>liquibase-empty-changelog.xml</liquibaseDemoDataFollowupFileName>
- <liquibaseEmptyDbFollowupFileName>liquibase-empty-changelog.xml</liquibaseEmptyDbFollowupFileName>
- </properties>
- </profile>
- <profile>
- <id>1.8.x</id> <!-- activate with -P1.8.x -->
- <activation>
- <property>
- <name>openmrs.version</name>
- <value>1.8.4</value> <!-- once this ticket is done we can do this magically: http://jira.codehaus.org/browse/MNG-4777 -->
- </property>
- </activation>
- <properties>
- <liquibasePluginArtifactId>liquibase-plugin</liquibasePluginArtifactId>
- <liquibasePluginVersion>1.9.5.0</liquibasePluginVersion>
- <liquibaseDemoDataFileName>liquibase-demo-data-18x.xml</liquibaseDemoDataFileName>
- <liquibaseMVPDataFileName>liquibase-mvp-data-18x.xml</liquibaseMVPDataFileName>
- <liquibaseDemoDataFollowupFileName>liquibase-rename-helper-tables-18x.xml</liquibaseDemoDataFollowupFileName>
- <liquibaseEmptyDbFollowupFileName>liquibase-rename-helper-tables-18x.xml</liquibaseEmptyDbFollowupFileName>
- </properties>
- </profile>
- </profiles>
- <build>
- <finalName>openmrs-standalone-${openmrs.version}</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>enforce-property</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireProperty>
- <property>openmrs.version</property>
- <message>openmrs.version property is missing. This should be
- something like 1.9.0, 1.8.3, or 1.10-alpha. Add
- -Dopenmrs.version=1.9.1. NOTE: If building for 1.8.x, also add
- -P1.8.x</message>
- </requireProperty>
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <fork>true</fork>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy</id>
- <phase>process-resources</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.openmrs.web</groupId>
- <artifactId>openmrs-webapp</artifactId>
- <version>${openmrs.version}</version>
- <type>war</type>
- <outputDirectory>target</outputDirectory>
- <destFileName>openmrs-standalone.war</destFileName>
- </artifactItem>
- </artifactItems>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.liquibase</groupId>
- <artifactId>${liquibasePluginArtifactId}</artifactId>
- <executions>
- <execution>
- <id>empty-db-create-schema</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>liquibase-schema-only.xml</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33326/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/emptydatabase&server.datadir=target/emptydatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- <execution>
- <id>empty-db-add-core-data</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>liquibase-core-data.xml</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33326/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/emptydatabase&server.datadir=target/emptydatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- <execution>
- <id>empty-db-add-mvp-data</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>${liquibaseMVPDataFileName}</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33326/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/emptydatabase&server.datadir=target/emptydatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- <execution>
- <id>empty-db-update-to-latest</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>liquibase-update-to-latest.xml</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33326/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/emptydatabase&server.datadir=target/emptydatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- <execution>
- <id>empty-db-followup</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>${liquibaseEmptyDbFollowupFileName}</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33328/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/demodatabase&server.datadir=target/demodatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- <execution>
- <id>demo-db-add-data</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>${liquibaseDemoDataFileName}</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33328/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/demodatabase&server.datadir=target/demodatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- <execution>
- <id>demo-db-update-to-latest</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>liquibase-update-to-latest.xml</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33328/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/demodatabase&server.datadir=target/demodatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- <execution>
- <id>demo-db-followup</id>
- <phase>generate-resources</phase>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <changeLogFile>${liquibaseDemoDataFollowupFileName}</changeLogFile>
- <url><![CDATA[jdbc:mysql:mxj://127.0.0.1:33328/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=target/demodatabase&server.datadir=target/demodatabase/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8&server.max_allowed_packet=32M]]></url>
- <username>openmrs</username>
- <password>test</password>
- <verbose>true</verbose>
- <dropFirst>false</dropFirst>
- <systemProperties>
- <property>
- <name>liquibase.databaseChangeLogTableName</name>
- <value>liquibasechangelog</value>
- </property>
- <property>
- <name>liquibase.databaseChangeLogLockTableName</name>
- <value>liquibasechangeloglock</value>
- </property>
- </systemProperties>
- </configuration>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>prepare-package</phase>
- <goals>
- <goal>java</goal>
- </goals>
- <configuration>
- <mainClass>org.openmrs.standalone.StopEmbeddedMySQL</mainClass>
- <arguments>
- <argument>target/emptydatabase</argument>
- <argument>target/demodatabase</argument>
- </arguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>package-jar-with-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>openmrs-standalone</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- <archive>
- <manifest>
- <mainClass>org.openmrs.standalone.Bootstrap</mainClass>
- </manifest>
- </archive>
- </configuration>
- </execution>
- <execution>
- <id>zip-demo-data</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>demodatabase</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>src/main/assembly/zip-demo-data.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- <execution>
- <id>zip-mvp-data</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>emptydatabase</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>src/main/assembly/zip-mvp-data.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- <execution>
- <id>zip-standalone</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>openmrs-standalone-${openmrs.version}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>src/main/assembly/zip-standalone.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.3</version>
- <dependencies>
- <dependency>
- <groupId>org.openmrs.web</groupId>
- <artifactId>openmrs-webapp</artifactId>
- <version>${openmrs.version}</version>
- <type>war</type>
- <scope>compile</scope>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.liquibase</groupId>
- <artifactId>${liquibasePluginArtifactId}</artifactId>
- <version>${liquibasePluginVersion}</version>
- <dependencies>
- <dependency>
- <groupId>org.openmrs.api</groupId>
- <artifactId>openmrs-api</artifactId>
- <version>${openmrs.version}</version>
- <type>jar</type>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.openmrs.liquibase.ext</groupId>
- <artifactId>modify-column</artifactId>
- <version>2.0.2</version>
- </dependency>
- <dependency>
- <groupId>org.openmrs.liquibase.ext</groupId>
- <artifactId>identity-insert</artifactId>
- <version>1.2.1</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.3</version>
- </plugin>
- <!--This plugin's configuration is used to store Eclipse m2e settings
- only. It has no influence on the Maven build itself. -->
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.liquibase</groupId>
- <artifactId>
- liquibase-maven-plugin
- </artifactId>
- <versionRange>
- [2.0.1,)
- </versionRange>
- <goals>
- <goal>update</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- org.apache.maven.plugins
- </groupId>
- <artifactId>
- maven-dependency-plugin
- </artifactId>
- <versionRange>
- [2.3,)
- </versionRange>
- <goals>
- <goal>copy</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- org.codehaus.mojo
- </groupId>
- <artifactId>
- exec-maven-plugin
- </artifactId>
- <versionRange>
- [1.2.1,)
- </versionRange>
- <goals>
- <goal>java</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
- <repositories>
- <repository>
- <id>openmrs-repo</id>
- <name>OpenMRS Nexus Repository</name>
- <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>openmrs-repo</id>
- <name>OpenMRS Nexus Repository</name>
- <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement