Prechádzať zdrojové kódy

AMBARI-680. Fix pom structure. (hitesh)(Contributed by hitesh)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/AMBARI-666@1376790 13f79535-47bb-0310-9956-ffa450edef68
Hitesh Shah 13 rokov pred
rodič
commit
5125dfe4d9
3 zmenil súbory, kde vykonal 25 pridanie a 52 odobranie
  1. 1 0
      AMBARI-666-CHANGES.txt
  2. 20 45
      ambari-agent/pom.xml
  3. 4 7
      ambari-server/pom.xml

+ 1 - 0
AMBARI-666-CHANGES.txt

@@ -20,3 +20,4 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-680. Fix pom structure. (hitesh)

+ 20 - 45
ambari-agent/pom.xml

@@ -1,64 +1,39 @@
 <?xml version="1.0"?>
+<!--
+   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.
+-->
 <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>
   <groupId>org.apache.ambari</groupId>
   <artifactId>ambari-agent</artifactId>
-  <version>1.0-SNAPSHOT</version>
+  <version>0.10.0-SNAPSHOT</version>
   <name>ambari-agent</name>
   <url>http://maven.apache.org</url>
-  <properties>
-    <jetty.version>7.0.0.pre5</jetty.version>
-  </properties>
   <parent>
     <groupId>org.apache.ambari</groupId>
-    <version>1.0-SNAPSHOT</version>
-    <artifactId>ambari</artifactId>
+    <version>0.10.0-SNAPSHOT</version>
+    <artifactId>ambari-project</artifactId>
+    <relativePath>../ambari-project</relativePath>
   </parent>
   <dependencies>
-    <dependency>
-      <groupId>org.mortbay.jetty</groupId>
-      <artifactId>jetty</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.mortbay.jetty</groupId>
-      <artifactId>jetty-ssl</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.mortbay.jetty</groupId>
-      <artifactId>jetty-util</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.mortbay.jetty</groupId>
-      <artifactId>jetty-plus</artifactId>
-    </dependency>
-    <dependency>
-      <!-- the implementation of JAX-RS -->
-      <groupId>com.sun.jersey</groupId>
-      <artifactId>jersey-server</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>log4j</groupId>
-      <artifactId>log4j</artifactId>
-    </dependency>
-    <!-- PROVIDED BY CONTAINER; HERE FOR COMPILE ONLY -->
-    <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>servlet-api</artifactId>
-    </dependency>
     <!-- TEST SCOPE DEPENDENCIES -->
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     </dependency>
-    <dependency>
-      <!-- used in integration tests -->
-      <groupId>javanettasks</groupId>
-      <artifactId>httpunit</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-    </dependency>
   </dependencies>
   <build>
     <plugins>

+ 4 - 7
ambari-server/pom.xml

@@ -18,15 +18,16 @@
 <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">
   <parent>
     <groupId>org.apache.ambari</groupId>
-    <artifactId>ambari</artifactId>
-    <version>1.0-SNAPSHOT</version>
+    <artifactId>ambari-project</artifactId>
+    <version>0.10.0-SNAPSHOT</version>
+    <relativePath>../ambari-project</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.ambari</groupId>
   <artifactId>ambari-server</artifactId>
   <packaging>jar</packaging>
   <name>ambari-server</name>
-  <version>1.0-SNAPSHOT</version>
+  <version>0.10.0-SNAPSHOT</version>
   <description>Ambari Server</description>
   <build>
     <resources>
@@ -126,10 +127,6 @@
       <groupId>org.mockito</groupId>
       <artifactId>mockito-core</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.apache.ambari</groupId>
-      <artifactId>ambari-client</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.mortbay.jetty</groupId>
       <artifactId>jetty</artifactId>