pom.xml 14.2 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License.  You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
20

21 22 23
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24

25 26 27 28 29 30 31 32 33 34
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.apache.hadoop.metadata</groupId>
        <artifactId>metadata-governance</artifactId>
        <version>0.1-incubating-SNAPSHOT</version>
    </parent>
    <artifactId>metadata-webapp</artifactId>
    <description>Apache Metadata Web Application</description>
    <name>Apache Metadata Web Application</name>
    <packaging>war</packaging>
35

36 37 38 39 40 41 42 43 44 45 46 47
    <profiles>
        <profile>
            <id>hadoop-2</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>org.apache.hadoop</groupId>
                    <artifactId>hadoop-client</artifactId>
                    <scope>test</scope>
                </dependency>
Jon Maron committed
48 49 50 51 52
                <dependency>
                    <groupId>org.apache.hadoop</groupId>
                    <artifactId>hadoop-common</artifactId>
                    <version>${hadoop.version}</version>
                </dependency>
53 54 55
            </dependencies>
        </profile>
    </profiles>
56

57
    <dependencies>
58 59 60 61 62
        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-typesystem</artifactId>
        </dependency>

63 64 65 66
        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-repository</artifactId>
        </dependency>
67

68 69 70 71
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
72

73 74 75 76
        <dependency>
            <groupId>commons-configuration</groupId>
            <artifactId>commons-configuration</artifactId>
        </dependency>
77

78 79 80 81
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
        </dependency>
82

83 84 85 86
        <dependency>
            <groupId>com.tinkerpop.blueprints</groupId>
            <artifactId>blueprints-core</artifactId>
        </dependency>
87

88 89 90 91
        <dependency>
            <groupId>com.thinkaurelius.titan</groupId>
            <artifactId>titan-core</artifactId>
        </dependency>
92

93 94 95 96
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
        </dependency>
97

98 99 100 101
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
        </dependency>
102

Jon Maron committed
103 104 105 106 107 108
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
        </dependency>

109 110 111 112
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty</artifactId>
        </dependency>
113

114 115 116 117
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-plus</artifactId>
        </dependency>
118

Jon Maron committed
119 120 121 122 123 124
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-util</artifactId>
            <version>6.1.26</version>
        </dependency>

125 126 127 128
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
        </dependency>
129

130 131 132 133
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
        </dependency>
134

135 136 137 138
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
        </dependency>
139

140 141 142 143
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-json</artifactId>
        </dependency>
144

145 146 147 148
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>
149

150
        <dependency>
151 152
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
153
        </dependency>
154

155 156 157 158 159
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-servlet</artifactId>
            <version>3.0</version>
        </dependency>
160

161 162 163 164 165
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.3.1</version>
        </dependency>
166

167 168 169 170 171 172
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-guice</artifactId>
            <version>1.18.3</version>
        </dependency>
    </dependencies>
173

174
    <build>
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>uber-javadocs</id>
                        <phase>site</phase>
                        <goals>
                            <goal>javadoc</goal>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <includeTransitiveDependencySources>false</includeTransitiveDependencySources>
                            <includeDependencySources>true</includeDependencySources>
                            <dependencySourceIncludes>
                                <dependencySourceInclude>org.apache.hadoop.metadata:*</dependencySourceInclude>
                            </dependencySourceIncludes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
197

198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <webResources>
                        <resource>
                            <directory>../dashboard/v1</directory>
                            <targetPath>dashboard</targetPath>
                        </resource>
                        <resource>
                            <directory>../dashboard/v2</directory>
                            <targetPath>dashboard/v2</targetPath>
                        </resource>
                        <resource>
                            <directory>src/main/webapp/WEB-INF</directory>
                            <targetPath>WEB-INF</targetPath>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
219

220 221 222 223 224 225 226 227 228 229 230
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
Jon Maron committed
231 232
                            <outputDirectory>${basedir}/conf
                            </outputDirectory>
233 234
                            <resources>
                                <resource>
Jon Maron committed
235 236
                                    <directory>${project.build.directory}/conf</directory>
                                    <filtering>false</filtering>
237 238 239 240 241 242
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
243

244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
            <plugin>
                <groupId>org.codehaus.enunciate</groupId>
                <artifactId>maven-enunciate-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>docs</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <!-- the directory where to put the docs -->
                    <docsDir>${project.build.directory}/apidocs</docsDir>
                    <configFile>${basedir}/../src/build/enunciate.xml</configFile>
                </configuration>
            </plugin>
260

261 262 263 264 265 266 267 268 269 270 271 272
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>keytool-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>clean</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                    <execution>
Jon Maron committed
273
                        <id>generateKeyPair</id>
274 275 276 277 278 279 280 281
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generateKeyPair</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <dname>cn=metadata.incubator.apache.org</dname>
Jon Maron committed
282 283 284
                    <keystore>${project.build.directory}/conf/metadata.keystore</keystore>
                    <keypass>keypass</keypass>
                    <storepass>keypass</storepass>
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
                    <alias>metadata</alias>
                    <keyalg>RSA</keyalg>
                    <validity>100000</validity>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>${jetty.version}</version>
                <configuration>
                    <skip>${skipITs}</skip>
                    <!--only skip int tests -->
                    <connectors>
                        <!--
Jon Maron committed
300 301 302 303 304 305 306
                                                    <connector implementation="org.mortbay.jetty.security.SslSocketConnector">
                                                        <port>21443</port>
                                                        <maxIdleTime>60000</maxIdleTime>
                                                        <keystore>${project.build.directory}/../../webapp/target/metadata.keystore</keystore>
                                                        <keyPassword>metadata-passwd</keyPassword>
                                                        <password>metadata-passwd</password>
                                                    </connector>
307
                        -->
Jon Maron committed
308
                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
309 310 311 312
                            <port>21000</port>
                            <maxIdleTime>60000</maxIdleTime>
                        </connector>
                    </connectors>
Jon Maron committed
313
                    <webApp>${project.build.directory}/metadata-webapp-${project.version}</webApp>
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
                    <contextPath>/</contextPath>
                    <useTestClasspath>true</useTestClasspath>
                    <systemProperties>
                        <systemProperty>
                            <name>hadoop.conf.dir</name>
                            <value>${project.build.directory}/webapps/hadoop/conf</value>
                        </systemProperty>
                        <systemProperty>
                            <name>hadoop.tmp.dir</name>
                            <value>${project.build.directory}/tmp-hadoop-${user.name}</value>
                        </systemProperty>
                        <systemProperty>
                            <name>hadoop.log.dir</name>
                            <value>${project.build.directory}/logs</value>
                        </systemProperty>
                        <systemProperty>
                            <name>system.lib.location</name>
                            <value>${project.build.directory}/dependency</value>
                        </systemProperty>
                        <systemProperty>
                            <name>keystore.file</name>
Jon Maron committed
335
                            <value>${project.build.directory}/../../webapp/target/metadata.keystore
336 337 338 339
                            </value>
                        </systemProperty>
                        <systemProperty>
                            <name>truststore.file</name>
Jon Maron committed
340
                            <value>${project.build.directory}/../../webapp/target/metadata.keystore</value>
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
                        </systemProperty>
                    </systemProperties>
                    <stopKey>metadata-stop</stopKey>
                    <stopPort>41001</stopPort>
                </configuration>
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <daemon>true</daemon>
                        </configuration>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
367
    </build>
368
</project>