pom.xml 13.5 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

Shwetha GS committed
36 37 38
    <properties>
        <debug.jetty.daemon>true</debug.jetty.daemon>
    </properties>
39

40
    <dependencies>
41 42 43 44 45
        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-typesystem</artifactId>
        </dependency>

46 47 48 49
        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-repository</artifactId>
        </dependency>
50

51 52 53 54 55
        <!--<dependency>-->
            <!--<groupId>org.apache.hadoop.metadata</groupId>-->
            <!--<artifactId>metadata-client</artifactId>-->
        <!--</dependency>-->

56 57 58
        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-client</artifactId>
59 60 61
            <version>${version}</version>
            <type>test-jar</type>
            <scope>test</scope>
62 63
        </dependency>

Jon Maron committed
64 65 66 67 68 69
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-common</artifactId>
            <version>${hadoop.version}</version>
        </dependency>

70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-minikdc</artifactId>
            <version>${hadoop.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-hdfs</artifactId>
            <version>${hadoop.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- supports simple auth handler -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.2.5</version>
        </dependency>

91 92 93 94
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
95

96 97 98 99
        <dependency>
            <groupId>commons-configuration</groupId>
            <artifactId>commons-configuration</artifactId>
        </dependency>
100

101 102 103 104
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
        </dependency>
105

106 107 108 109 110
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>

111 112 113 114
        <dependency>
            <groupId>com.tinkerpop.blueprints</groupId>
            <artifactId>blueprints-core</artifactId>
        </dependency>
115

116 117 118 119
        <dependency>
            <groupId>com.thinkaurelius.titan</groupId>
            <artifactId>titan-core</artifactId>
        </dependency>
120

121 122 123 124
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
        </dependency>
125

126 127 128 129
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
        </dependency>
130

131 132 133 134
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty</artifactId>
        </dependency>
135

136 137 138 139
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-plus</artifactId>
        </dependency>
140

141 142 143 144
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
        </dependency>
145

146 147 148 149
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
        </dependency>
150

151 152 153 154
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
        </dependency>
155

156 157 158 159
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-json</artifactId>
        </dependency>
160

161 162 163 164
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>
165

166
        <dependency>
167 168
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
169
        </dependency>
170

171 172 173 174 175
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-servlet</artifactId>
            <version>3.0</version>
        </dependency>
176

177 178 179 180 181
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.3.1</version>
        </dependency>
182

183 184 185 186 187
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-guice</artifactId>
            <version>1.18.3</version>
        </dependency>
Shwetha GS committed
188 189 190 191 192

        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jsp-2.1</artifactId>
        </dependency>
193 194 195 196 197 198

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </dependency>
199
    </dependencies>
200

201
    <build>
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
        <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>
224

225 226 227 228 229
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.4</version>
                <configuration>
230
                    <attachClasses>true</attachClasses>
231 232
                    <webResources>
                        <resource>
233
                            <directory>../dashboard/v3</directory>
234 235 236 237 238 239 240 241 242
                            <targetPath>dashboard</targetPath>
                        </resource>
                        <resource>
                            <directory>src/main/webapp/WEB-INF</directory>
                            <targetPath>WEB-INF</targetPath>
                        </resource>
                    </webResources>
                </configuration>
            </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 282
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generateKeyPair</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <dname>cn=metadata.incubator.apache.org</dname>
                    <keystore>${project.build.directory}/metadata.keystore</keystore>
Jon Maron committed
283 284
                    <keypass>keypass</keypass>
                    <storepass>keypass</storepass>
285 286 287 288 289 290 291 292 293 294 295
                    <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>
296
                    <skip>${skipTests}</skip>
297 298 299
                    <!--only skip int tests -->
                    <connectors>
                        <!--
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
                    <contextPath>/</contextPath>
                    <useTestClasspath>true</useTestClasspath>
                    <systemProperties>
317 318 319 320
                        <systemProperty>
                            <name>metadata.log.dir</name>
                            <value>${project.build.directory}/logs</value>
                        </systemProperty>
321 322
                        <systemProperty>
                            <name>keystore.file</name>
Jon Maron committed
323
                            <value>${project.build.directory}/../../webapp/target/metadata.keystore
324 325 326 327
                            </value>
                        </systemProperty>
                        <systemProperty>
                            <name>truststore.file</name>
Jon Maron committed
328
                            <value>${project.build.directory}/../../webapp/target/metadata.keystore</value>
329
                        </systemProperty>
330 331 332 333
                        <systemProperty>
                            <name>metadata.home</name>
                            <value>${project.build.directory}</value>
                        </systemProperty>
334 335 336
                    </systemProperties>
                    <stopKey>metadata-stop</stopKey>
                    <stopPort>41001</stopPort>
Shwetha GS committed
337
                    <daemon>${debug.jetty.daemon}</daemon>
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358
                </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>
359 360 361 362 363 364
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <inherited>true</inherited>
                <extensions>true</extensions>
            </plugin>
365
        </plugins>
366
    </build>
367
</project>