|
| 1 | +<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"> |
| 2 | + <parent> |
| 3 | + <artifactId>motech</artifactId> |
| 4 | + <groupId>org.motechproject</groupId> |
| 5 | + <version>0.24-SNAPSHOT</version> |
| 6 | + <relativePath>../../../</relativePath> |
| 7 | + </parent> |
| 8 | + <modelVersion>4.0.0</modelVersion> |
| 9 | + |
| 10 | + <artifactId>motech-platform-dataservices-web</artifactId> |
| 11 | + <version>0.24-SNAPSHOT</version> |
| 12 | + <packaging>bundle</packaging> |
| 13 | + <name>MOTECH Platform Data Services Web</name> |
| 14 | + <properties> |
| 15 | + <modules.root.dir>${basedir}/../../..</modules.root.dir> |
| 16 | + </properties> |
| 17 | + <dependencies> |
| 18 | + <dependency> |
| 19 | + <groupId>${project.groupId}</groupId> |
| 20 | + <artifactId>motech-platform-osgi-web-util</artifactId> |
| 21 | + <version>${project.version}</version> |
| 22 | + </dependency> |
| 23 | + <dependency> |
| 24 | + <groupId>${project.groupId}</groupId> |
| 25 | + <artifactId>motech-platform-dataservices</artifactId> |
| 26 | + <version>${project.version}</version> |
| 27 | + </dependency> |
| 28 | + <dependency> |
| 29 | + <groupId>${project.groupId}</groupId> |
| 30 | + <artifactId>motech-platform-web-security</artifactId> |
| 31 | + <version>${project.version}</version> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>${project.groupId}</groupId> |
| 35 | + <artifactId>motech-testing-utils</artifactId> |
| 36 | + <version>${project.version}</version> |
| 37 | + <scope>test</scope> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>org.eclipse.gemini.blueprint</groupId> |
| 41 | + <artifactId>org.motechproject.gemini-blueprint-test</artifactId> |
| 42 | + <scope>test</scope> |
| 43 | + </dependency> |
| 44 | + </dependencies> |
| 45 | + <build> |
| 46 | + <testResources> |
| 47 | + <testResource> |
| 48 | + <directory>src/test/resources</directory> |
| 49 | + <filtering>true</filtering> |
| 50 | + </testResource> |
| 51 | + </testResources> |
| 52 | + <plugins> |
| 53 | + <plugin> |
| 54 | + <groupId>org.apache.felix</groupId> |
| 55 | + <artifactId>maven-bundle-plugin</artifactId> |
| 56 | + <version>2.3.4</version> |
| 57 | + <extensions>true</extensions> |
| 58 | + <configuration> |
| 59 | + <instructions> |
| 60 | + <Context-Path>mds</Context-Path> |
| 61 | + <Resource-Path>mds/resources</Resource-Path> |
| 62 | + <Blueprint-Enabled>true</Blueprint-Enabled> |
| 63 | + <Import-Package> |
| 64 | + org.aopalliance.aop, |
| 65 | + org.eclipse.gemini.blueprint.config, |
| 66 | + org.motechproject.mds.javassist, |
| 67 | + org.motechproject.mds.service, |
| 68 | + org.motechproject.osgi.web, |
| 69 | + org.motechproject.security.annotations, |
| 70 | + org.motechproject.security.model, |
| 71 | + org.motechproject.security.service, |
| 72 | + org.springframework.aop, |
| 73 | + org.springframework.aop.aspectj.annotation, |
| 74 | + org.springframework.aop.framework, |
| 75 | + org.springframework.beans.factory.config, |
| 76 | + org.springframework.beans.factory.xml, |
| 77 | + org.springframework.context.config, |
| 78 | + org.springframework.context.support, |
| 79 | + org.springframework.security.config, |
| 80 | + org.springframework.web.context, |
| 81 | + org.springframework.web.context.support, |
| 82 | + org.springframework.web.multipart.commons, |
| 83 | + org.springframework.web.servlet, |
| 84 | + org.springframework.web.servlet.config, |
| 85 | + org.springframework.web.servlet.mvc, |
| 86 | + org.springframework.web.servlet.support, |
| 87 | + org.springframework.web.servlet.view, |
| 88 | + * |
| 89 | + </Import-Package> |
| 90 | + </instructions> |
| 91 | + </configuration> |
| 92 | + </plugin> |
| 93 | + <plugin> |
| 94 | + <groupId>org.apache.maven.plugins</groupId> |
| 95 | + <artifactId>maven-dependency-plugin</artifactId> |
| 96 | + </plugin> |
| 97 | + <plugin> |
| 98 | + <groupId>org.apache.maven.plugins</groupId> |
| 99 | + <artifactId>maven-resources-plugin</artifactId> |
| 100 | + <executions> |
| 101 | + <execution> |
| 102 | + <id>copy-bundles</id> |
| 103 | + <phase>package</phase> |
| 104 | + <goals> |
| 105 | + <goal>copy-resources</goal> |
| 106 | + </goals> |
| 107 | + <configuration> |
| 108 | + <outputDirectory>${user.home}/.motech/bundles</outputDirectory> |
| 109 | + <resources> |
| 110 | + <resource> |
| 111 | + <directory>target</directory> |
| 112 | + <includes> |
| 113 | + <include>*.jar</include> |
| 114 | + </includes> |
| 115 | + </resource> |
| 116 | + </resources> |
| 117 | + </configuration> |
| 118 | + </execution> |
| 119 | + <execution> |
| 120 | + <id>copy-module-js</id> |
| 121 | + <phase>process-test-resources</phase> |
| 122 | + <goals> |
| 123 | + <goal>copy-resources</goal> |
| 124 | + </goals> |
| 125 | + <configuration> |
| 126 | + <outputDirectory> |
| 127 | + ${project.build.directory}/jasmine/js |
| 128 | + </outputDirectory> |
| 129 | + <resources> |
| 130 | + <resource> |
| 131 | + <directory>src/main/resources/webapp/js</directory> |
| 132 | + </resource> |
| 133 | + </resources> |
| 134 | + </configuration> |
| 135 | + </execution> |
| 136 | + <execution> |
| 137 | + <id>copy-platform-js</id> |
| 138 | + <phase>process-test-resources</phase> |
| 139 | + <goals> |
| 140 | + <goal>copy-resources</goal> |
| 141 | + </goals> |
| 142 | + <configuration> |
| 143 | + <outputDirectory> |
| 144 | + ${project.build.directory}/jasmine/js/core |
| 145 | + </outputDirectory> |
| 146 | + <resources> |
| 147 | + <resource> |
| 148 | + <directory> |
| 149 | + ${modules.root.dir}/platform/server-bundle/src/main/resources/webapp/lib |
| 150 | + </directory> |
| 151 | + </resource> |
| 152 | + <resource> |
| 153 | + <directory> |
| 154 | + ${modules.root.dir}/platform/server-bundle/src/main/resources/webapp/js |
| 155 | + </directory> |
| 156 | + </resource> |
| 157 | + </resources> |
| 158 | + </configuration> |
| 159 | + </execution> |
| 160 | + <execution> |
| 161 | + <id>copy-jasmine-spec-lib</id> |
| 162 | + <phase>process-test-resources</phase> |
| 163 | + <goals> |
| 164 | + <goal>copy-resources</goal> |
| 165 | + </goals> |
| 166 | + <configuration> |
| 167 | + <outputDirectory> |
| 168 | + ${project.build.directory}/jasmine/spec/lib |
| 169 | + </outputDirectory> |
| 170 | + <resources> |
| 171 | + <resource> |
| 172 | + <directory> |
| 173 | + ${modules.root.dir}/platform/server-bundle/src/main/resources/webapp/lib/angular |
| 174 | + </directory> |
| 175 | + <includes> |
| 176 | + <inlude>angular.min.js</inlude> |
| 177 | + </includes> |
| 178 | + </resource> |
| 179 | + <resource> |
| 180 | + <directory> |
| 181 | + ${modules.root.dir}/platform/server-bundle/src/test/resources/lib |
| 182 | + </directory> |
| 183 | + <includes> |
| 184 | + <include>angular-mocks.js</include> |
| 185 | + </includes> |
| 186 | + </resource> |
| 187 | + </resources> |
| 188 | + </configuration> |
| 189 | + </execution> |
| 190 | + <execution> |
| 191 | + <id>copy-jasmine-spec</id> |
| 192 | + <phase>process-test-resources</phase> |
| 193 | + <goals> |
| 194 | + <goal>copy-resources</goal> |
| 195 | + </goals> |
| 196 | + <configuration> |
| 197 | + <outputDirectory> |
| 198 | + ${project.build.directory}/jasmine/spec/spec |
| 199 | + </outputDirectory> |
| 200 | + <resources> |
| 201 | + <resource> |
| 202 | + <directory>src/test/resources/jasmine</directory> |
| 203 | + </resource> |
| 204 | + </resources> |
| 205 | + </configuration> |
| 206 | + </execution> |
| 207 | + </executions> |
| 208 | + </plugin> |
| 209 | + <plugin> |
| 210 | + <groupId>org.codehaus.mojo</groupId> |
| 211 | + <artifactId>jslint-maven-plugin</artifactId> |
| 212 | + <version>1.0.1</version> |
| 213 | + <executions> |
| 214 | + <execution> |
| 215 | + <goals> |
| 216 | + <goal>jslint</goal> |
| 217 | + </goals> |
| 218 | + <configuration> |
| 219 | + <sourceJsFolder>${basedir}/src/main/resources/webapp/js</sourceJsFolder> |
| 220 | + <disallowIncrAndDecr>true</disallowIncrAndDecr> |
| 221 | + <requireUseStrict>true</requireUseStrict> |
| 222 | + <predefinedVars> |
| 223 | + _, $, angular, angularHandler, isBlank, handleResponse, blockUI, FileReader, |
| 224 | + motechAlert, unblockUI, motechConfirm, cloneArray, arraysEqual, |
| 225 | + cloneObj, alertHandler, window, defaultLayout, innerLayout, moment |
| 226 | + </predefinedVars> |
| 227 | + <failOnIssues>${jslint.enable}</failOnIssues> |
| 228 | + </configuration> |
| 229 | + </execution> |
| 230 | + </executions> |
| 231 | + </plugin> |
| 232 | + <plugin> |
| 233 | + <groupId>com.github.searls</groupId> |
| 234 | + <artifactId>jasmine-maven-plugin</artifactId> |
| 235 | + </plugin> |
| 236 | + </plugins> |
| 237 | + </build> |
| 238 | +</project> |
0 commit comments