Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.openmrs.maven.parents</groupId>
- <artifactId>maven-parent-openmrs-module</artifactId>
- <version>1.1.1</version>
- <packaging>pom</packaging>
- <name>OpenMRS Module Parent POM</name>
- <description>Declares parent POM for any OpenMRS module</description>
- <issueManagement>
- <system>JIRA</system>
- <url>http://issues.openmrs.org/</url>
- </issueManagement>
- <licenses>
- <license>
- <name>OpenMRS Public License</name>
- <url>http://openmrs.org/wiki/License</url>
- </license>
- </licenses>
- <organization>
- <name>OpenMRS LLC.</name>
- <url>http://openmrs.org</url>
- </organization>
- <scm>
- <connection>scm:git:git@github.com:openmrs/openmrs-contrib-maven-parent-module.git</connection>
- <developerConnection>scm:git:git@github.com:openmrs/openmrs-contrib-maven-parent-module.git</developerConnection>
- <url>https://github.com/openmrs/openmrs-contrib-maven-parent-module</url>
- <tag>1.1.1</tag>
- </scm>
- <distributionManagement>
- <repository>
- <id>openmrs-repo-releases</id>
- <name>OpenMRS Releases</name>
- <url>http://mavenrepo.openmrs.org/nexus/content/repositories/releases/</url>
- </repository>
- <snapshotRepository>
- <id>openmrs-repo-snapshots</id>
- <name>OpenMRS Snapshots</name>
- <url>http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
- </snapshotRepository>
- </distributionManagement>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <javaCompilerSource>1.6</javaCompilerSource>
- <javaCompilerTarget>1.6</javaCompilerTarget>
- <openmrsPlatformVersion>1.11.2</openmrsPlatformVersion>
- <openmrsPlatformToolsVersion>1.11.2</openmrsPlatformToolsVersion>
- <MODULE_ID>${project.parent.artifactId}</MODULE_ID>
- <MODULE_NAME>${project.parent.name}</MODULE_NAME>
- <MODULE_VERSION>${project.parent.version}</MODULE_VERSION>
- <MODULE_PACKAGE>${project.parent.groupId}.${project.parent.artifactId}</MODULE_PACKAGE>
- </properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.openmrs.api</groupId>
- <artifactId>openmrs-api</artifactId>
- <version>${openmrsPlatformVersion}</version>
- </dependency>
- <dependency>
- <groupId>org.openmrs.web</groupId>
- <artifactId>openmrs-web</artifactId>
- <version>${openmrsPlatformVersion}</version>
- </dependency>
- <dependency>
- <groupId>org.openmrs.api</groupId>
- <artifactId>openmrs-api</artifactId>
- <version>${openmrsPlatformVersion}</version>
- <classifier>tests</classifier>
- </dependency>
- <dependency>
- <groupId>org.openmrs.web</groupId>
- <artifactId>openmrs-web</artifactId>
- <version>${openmrsPlatformVersion}</version>
- <classifier>tests</classifier>
- </dependency>
- <dependency>
- <groupId>org.openmrs.test</groupId>
- <artifactId>openmrs-test</artifactId>
- <version>${openmrsPlatformVersion}</version>
- <type>pom</type>
- <exclusions>
- <exclusion>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-module-junit4</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-api-mockito</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-all</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.11</version>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-core</artifactId>
- <version>1.3</version>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- <version>1.3</version>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <version>1.9.5</version>
- </dependency>
- <dependency>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-module-junit4</artifactId>
- <version>1.5</version>
- </dependency>
- <dependency>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-api-mockito</artifactId>
- <version>1.5</version>
- <exclusions>
- <exclusion>
- <artifactId>mockito-all</artifactId>
- <groupId>org.mockito</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.openmrs.api</groupId>
- <artifactId>openmrs-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.openmrs.api</groupId>
- <artifactId>openmrs-api</artifactId>
- <classifier>tests</classifier>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.openmrs.test</groupId>
- <artifactId>openmrs-test</artifactId>
- <type>pom</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-core</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-module-junit4</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-api-mockito</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <includes>
- <include>**/*.xml</include>
- <include>**/*.txt</include>
- <include>**/*.properties</include>
- </includes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>false</filtering>
- <excludes>
- <exclude>**/*.xml</exclude>
- <exclude>**/*.txt</exclude>
- <exclude>**/*.properties</exclude>
- </excludes>
- </resource>
- <resource>
- <directory>src/main/webapp</directory>
- <filtering>true</filtering>
- <includes>
- <include>**/*.xml</include>
- <include>**/*.txt</include>
- <include>**/*.properties</include>
- </includes>
- <targetPath>web/module</targetPath>
- </resource>
- <resource>
- <directory>src/main/webapp</directory>
- <filtering>false</filtering>
- <excludes>
- <exclude>**/*.xml</exclude>
- <exclude>**/*.txt</exclude>
- <exclude>**/*.properties</exclude>
- </excludes>
- <targetPath>web/module</targetPath>
- </resource>
- </resources>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>true</filtering>
- <includes>
- <include>**/*.xml</include>
- <include>**/*.txt</include>
- <include>**/*.properties</include>
- </includes>
- </testResource>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>false</filtering>
- <excludes>
- <exclude>**/*.xml</exclude>
- <exclude>**/*.txt</exclude>
- <exclude>**/*.properties</exclude>
- </excludes>
- </testResource>
- </testResources>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <target>${javaCompilerTarget}</target>
- <source>${javaCompilerSource}</source>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.openmrs.maven.plugins</groupId>
- <artifactId>maven-openmrs-plugin</artifactId>
- <version>1.0.1</version>
- <extensions>true</extensions>
- <executions>
- <execution>
- <id>pack</id>
- <phase>package</phase>
- <goals>
- <goal>package-module</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.5</version>
- <executions>
- <execution>
- <goals>
- <goal>test-jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.5.3</version>
- <configuration>
- <useReleaseProfile>false</useReleaseProfile>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- <arguments>-Prelease</arguments>
- <tagNameFormat>@{project.version}</tagNameFormat>
- </configuration>
- </plugin>
- <plugin>
- <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
- <artifactId>maven-java-formatter-plugin</artifactId>
- <version>0.4</version>
- <configuration>
- <configFile>eclipse/OpenMRSFormatter.xml</configFile>
- <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
- <lineEnding>LF</lineEnding>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>format</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.openmrs.tools</groupId>
- <artifactId>openmrs-tools</artifactId>
- <version>${openmrsPlatformToolsVersion}</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <version>1.1</version>
- <configuration>
- <buildNumberPropertyName>revisionNumber</buildNumberPropertyName>
- <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
- <revisionOnScmFailure>0</revisionOnScmFailure>
- <shortRevisionLength>6</shortRevisionLength>
- </configuration>
- <executions>
- <execution>
- <phase>validate</phase>
- <goals>
- <goal>create</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Extracting messages and Spring configuration out of the API jar.
- It is needed due to a bug in OpenMRS, which prevents them from loading.
- See https://issues.openmrs.org/browse/TRUNK-3889 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>Expand resources</id>
- <goals>
- <goal>unpack-dependencies</goal>
- </goals>
- <phase>generate-resources</phase>
- <configuration>
- <includeGroupIds>${project.parent.groupId}</includeGroupIds>
- <includeArtifactIds>${project.parent.artifactId}-api,${project.parent.artifactId}-omod,${project.parent.artifactId}-omod-common</includeArtifactIds>
- <includeScope>compile</includeScope>
- <includes>*.xml,*.properties</includes>
- <outputDirectory>${project.build.directory}/classes</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.4.1</version>
- <executions>
- <execution>
- <id>enforce-no-snapshots</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireReleaseDeps>
- <message>No snapshots allowed when releasing!</message>
- </requireReleaseDeps>
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </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>
- com.googlecode.maven-java-formatter-plugin
- </groupId>
- <artifactId>
- maven-java-formatter-plugin
- </artifactId>
- <versionRange>
- [0.3.1,)
- </versionRange>
- <goals>
- <goal>format</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore />
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- org.apache.maven.plugins
- </groupId>
- <artifactId>
- maven-dependency-plugin
- </artifactId>
- <versionRange>
- [2.1,)
- </versionRange>
- <goals>
- <goal>
- unpack-dependencies
- </goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore />
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
- <artifactId>maven-java-formatter-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>release</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1.2</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.8.1</version>
- <configuration>
- <tags>
- <tag>
- <name>should</name>
- <placement>a</placement>
- <head>Should:</head>
- </tag>
- </tags>
- </configuration>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement