pom.xml 12.9 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
    <modelVersion>4.0.0</modelVersion>
    <parent>
27 28
        <groupId>org.apache.atlas</groupId>
        <artifactId>apache-atlas</artifactId>
29 30
        <version>0.1-incubating-SNAPSHOT</version>
    </parent>
31 32 33
    <artifactId>atlas-webapp</artifactId>
    <description>Apache Atlas Web Application</description>
    <name>Apache Atlas Web Application</name>
34
    <packaging>war</packaging>
35

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

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

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

51
        <dependency>
52 53
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-client</artifactId>
54
            <type>test-jar</type>
55 56
        </dependency>

Jon Maron committed
57 58 59 60 61
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-common</artifactId>
        </dependency>

62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-minikdc</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-hdfs</artifactId>
        </dependency>

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

78 79 80 81
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
82

83 84 85 86
        <dependency>
            <groupId>commons-configuration</groupId>
            <artifactId>commons-configuration</artifactId>
        </dependency>
87

88 89 90 91
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
        </dependency>
92

93 94 95 96 97
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>

98 99 100 101
        <dependency>
            <groupId>com.tinkerpop.blueprints</groupId>
            <artifactId>blueprints-core</artifactId>
        </dependency>
102

103 104 105 106
        <dependency>
            <groupId>com.thinkaurelius.titan</groupId>
            <artifactId>titan-core</artifactId>
        </dependency>
107

108 109 110 111
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
        </dependency>
112

113 114 115 116
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
        </dependency>
117

118 119 120 121
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty</artifactId>
        </dependency>
122

123 124 125 126
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-plus</artifactId>
        </dependency>
127

128 129 130 131
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
        </dependency>
132

133 134 135 136
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
        </dependency>
137

138 139 140 141
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
        </dependency>
142

143 144 145 146
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-json</artifactId>
        </dependency>
147

148 149 150 151
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>
152

153
        <dependency>
154 155
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
156
        </dependency>
157

158 159 160 161
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-servlet</artifactId>
        </dependency>
162

163 164 165 166
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
        </dependency>
167

168 169 170 171
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-guice</artifactId>
        </dependency>
Shwetha GS committed
172 173 174 175 176

        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jsp-2.1</artifactId>
        </dependency>
177 178 179 180 181

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
182
    </dependencies>
183

184
    <build>
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
        <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>
201
                                <dependencySourceInclude>org.apache.atlas:*</dependencySourceInclude>
202 203 204 205 206
                            </dependencySourceIncludes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
207

208 209 210 211
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
212
                    <attachClasses>true</attachClasses>
213 214
                    <webResources>
                        <resource>
215
                            <directory>../dashboard/v3</directory>
216 217 218 219 220 221 222 223 224
                            <targetPath>dashboard</targetPath>
                        </resource>
                        <resource>
                            <directory>src/main/webapp/WEB-INF</directory>
                            <targetPath>WEB-INF</targetPath>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
225

226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
            <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>
242

243 244 245 246 247 248 249 250 251 252 253 254
            <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
255
                        <id>generateKeyPair</id>
256 257 258 259 260 261 262
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generateKeyPair</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
263 264
                    <dname>cn=atlas.incubator.apache.org</dname>
                    <keystore>${project.build.directory}/atlas.keystore</keystore>
Jon Maron committed
265 266
                    <keypass>keypass</keypass>
                    <storepass>keypass</storepass>
267
                    <alias>atlas</alias>
268 269 270 271 272 273 274 275 276 277
                    <keyalg>RSA</keyalg>
                    <validity>100000</validity>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>${jetty.version}</version>
                <configuration>
278
                    <skip>${skipTests}</skip>
279 280 281
                    <!--only skip int tests -->
                    <connectors>
                        <!--
282 283 284
                        <connector implementation="org.mortbay.jetty.security.SslSocketConnector">
                            <port>21443</port>
                            <maxIdleTime>60000</maxIdleTime>
285 286 287
                            <keystore>${project.build.directory}/../../webapp/target/atlas.keystore</keystore>
                            <keyPassword>atlas-passwd</keyPassword>
                            <password>atlas-passwd</password>
288
                        </connector>
289
                        -->
Jon Maron committed
290
                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
291 292 293 294
                            <port>21000</port>
                            <maxIdleTime>60000</maxIdleTime>
                        </connector>
                    </connectors>
295
                    <webApp>${project.build.directory}/atlas-webapp-${project.version}</webApp>
296 297 298
                    <contextPath>/</contextPath>
                    <useTestClasspath>true</useTestClasspath>
                    <systemProperties>
299
                        <systemProperty>
300
                            <name>atlas.log.dir</name>
301 302
                            <value>${project.build.directory}/logs</value>
                        </systemProperty>
303 304
                        <systemProperty>
                            <name>keystore.file</name>
305
                            <value>${project.build.directory}/../../webapp/target/atlas.keystore
306 307 308 309
                            </value>
                        </systemProperty>
                        <systemProperty>
                            <name>truststore.file</name>
310
                            <value>${project.build.directory}/../../webapp/target/atlas.keystore </value>
311
                        </systemProperty>
312
                        <systemProperty>
313
                            <name>atlas.home</name>
314 315
                            <value>${project.build.directory}</value>
                        </systemProperty>
316
                    </systemProperties>
317
                    <stopKey>atlas-stop</stopKey>
318
                    <stopPort>41001</stopPort>
Shwetha GS committed
319
                    <daemon>${debug.jetty.daemon}</daemon>
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
                </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>
341 342 343 344 345 346
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <inherited>true</inherited>
                <extensions>true</extensions>
            </plugin>
347 348 349 350
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
            </plugin>
351
        </plugins>
352
    </build>
353
</project>