273 lines
9.6 KiB
XML
273 lines
9.6 KiB
XML
<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>
|
|
|
|
<parent>
|
|
<groupId>org.openmrs.module</groupId>
|
|
<artifactId>uicommons</artifactId>
|
|
<version>2.18.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>uicommons-omod</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>uicommons Module OMOD</name>
|
|
<description>OMOD project for uicommons</description>
|
|
|
|
<dependencies>
|
|
|
|
<!-- This maven project -->
|
|
|
|
<dependency>
|
|
<groupId>${project.parent.groupId}</groupId>
|
|
<artifactId>${project.parent.artifactId}-api</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.parent.groupId}</groupId>
|
|
<artifactId>${project.parent.artifactId}-scss</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<!-- OpenMRS Core (web) -->
|
|
|
|
<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>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.parent.artifactId}-${project.parent.version}</finalName>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/webapp</directory>
|
|
<filtering>false</filtering>
|
|
<excludes>
|
|
<exclude>resources</exclude>
|
|
</excludes>
|
|
<targetPath>web/module</targetPath>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/webapp</directory>
|
|
<filtering>false</filtering>
|
|
<includes>
|
|
<include>resources</include>
|
|
</includes>
|
|
<targetPath>web/module</targetPath>
|
|
</resource>
|
|
</resources>
|
|
|
|
<testResources>
|
|
<testResource>
|
|
<directory>src/test/resources</directory>
|
|
<filtering>true</filtering>
|
|
</testResource>
|
|
</testResources>
|
|
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<configuration>
|
|
<includeEmptyDirs>true</includeEmptyDirs>
|
|
</configuration>
|
|
</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.openmrs.maven.plugins</groupId>
|
|
<artifactId>maven-openmrs-plugin</artifactId>
|
|
<versionRange>[1.0.1,)</versionRange>
|
|
<goals>
|
|
<goal>initialize-module</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore />
|
|
</action>
|
|
</pluginExecution>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<versionRange>[2.4,)</versionRange>
|
|
<goals>
|
|
<goal>unpack-dependencies</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore />
|
|
</action>
|
|
</pluginExecution>
|
|
</pluginExecutions>
|
|
</lifecycleMappingMetadata>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.openmrs.maven.plugins</groupId>
|
|
<artifactId>maven-openmrs-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<executions>
|
|
<execution>
|
|
<id>init</id>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>initialize-module</goal>
|
|
</goals>
|
|
</execution>
|
|
<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-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>Expand moduleApplicationContext and messages</id>
|
|
<goals>
|
|
<goal>unpack-dependencies</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<includeGroupIds>${project.parent.groupId}</includeGroupIds>
|
|
<includeArtifactIds>${project.parent.artifactId}-api</includeArtifactIds>
|
|
<excludeTransitive>true</excludeTransitive>
|
|
<includes>**/*</includes>
|
|
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.klieber</groupId>
|
|
<artifactId>phantomjs-maven-plugin</artifactId>
|
|
<version>0.7</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>install</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<version>2.1.1</version>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.searls</groupId>
|
|
<artifactId>jasmine-maven-plugin</artifactId>
|
|
<version>1.3.1.5</version>
|
|
<extensions>true</extensions>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>test</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<jsSrcDir>${project.basedir}/src/main/webapp/resources/scripts</jsSrcDir>
|
|
<sourceIncludes>
|
|
<include>app.js</include>
|
|
<include>**/*.js</include>
|
|
</sourceIncludes>
|
|
<jsTestSrcDir>${project.basedir}/src/test/webapp/resources/scripts</jsTestSrcDir>
|
|
<preloadSources>
|
|
<source>${project.basedir}/src/main/webapp/resources/scripts/jquery-1.12.4.min.js</source>
|
|
<source>${project.basedir}/src/main/webapp/resources/scripts/knockout-2.1.0.js</source>
|
|
<source>${project.basedir}/src/main/webapp/resources/scripts/underscore-min.js</source>
|
|
<source>${project.basedir}/src/main/webapp/resources/scripts/jquery.toastmessage.js</source>
|
|
<source>${project.basedir}/src/main/webapp/resources/scripts/angular.min.js</source>
|
|
</preloadSources>
|
|
<sourceExcludes>
|
|
<exclude>**/main.js</exclude>
|
|
<exclude>**/extensionRenderer.js</exclude>
|
|
<exclude>**/script.js</exclude>
|
|
<exclude>**/angular.js</exclude>
|
|
<exclude>**/angular.min.js</exclude>
|
|
<exclude>**/angular-translate.js</exclude>
|
|
<exclude>**/angular-translate.min.js</exclude>
|
|
<exclude>**/angular-translate-loader-url.js</exclude>
|
|
<exclude>**/angular-translate-loader-url.min.js</exclude>
|
|
<exclude>**/require.js</exclude>
|
|
<exclude>**/text.js</exclude>
|
|
<exclude>**/moment.min.js</exclude>
|
|
<exclude>**/moment.js</exclude>
|
|
<exclude>**/moment-timezone.min.js</exclude>
|
|
<exclude>**/moment-timezone.js</exclude>
|
|
</sourceExcludes>
|
|
<serverPort>7234</serverPort>
|
|
<skipTests>false</skipTests>
|
|
<webDriverClassName>org.openqa.selenium.phantomjs.PhantomJSDriver</webDriverClassName>
|
|
<webDriverCapabilities>
|
|
<capability>
|
|
<name>phantomjs.binary.path</name>
|
|
<value>${phantomjs.binary}</value>
|
|
</capability>
|
|
</webDriverCapabilities>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>deploy-web</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<copy todir="${deploy.path}/WEB-INF/view/module/${project.parent.artifactId}">
|
|
<fileset dir="src/main/webapp" includes="**/*" />
|
|
</copy>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|