فهرست منبع

AMBARI-14439. ADDENDUM. Categorize unit tests so can run mvn test -P $PROFILE (alejandro)

Alejandro Fernandez 9 سال پیش
والد
کامیت
0e83911491
3فایلهای تغییر یافته به همراه33 افزوده شده و 8 حذف شده
  1. 1 0
      ambari-metrics/pom.xml
  2. 0 6
      pom.xml
  3. 32 2
      utility/pom.xml

+ 1 - 0
ambari-metrics/pom.xml

@@ -31,6 +31,7 @@
     <module>ambari-metrics-host-monitoring</module>
     <module>ambari-metrics-grafana</module>
     <module>ambari-metrics-assembly</module>
+    <module>../utility</module>
   </modules>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

+ 0 - 6
pom.xml

@@ -744,10 +744,4 @@ instead of a SNAPSHOT. -->
     </profile>
   </profiles>
   <!-- End of profiles for running unit tests. -->
-
-  <!-- Must depend on the utility project in order to find the
-  categories (testcase.groups) used in the unit test profiles. -->
-  <modules>
-    <module>utility</module>
-  </modules>
 </project>

+ 32 - 2
utility/pom.xml

@@ -1,4 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?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/xsd/maven-4.0.0.xsd">
@@ -16,4 +32,18 @@
       <scope>compile</scope>    <!-- has to be compile-time dependency on junit -->
     </dependency>
   </dependencies>
-</project>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.2</version>
+        <configuration>
+          <source>1.7</source>
+          <target>1.7</target>
+          <useIncrementalCompilation>false</useIncrementalCompilation>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>