|
|
@@ -124,185 +124,198 @@
|
|
|
<version>${powermock.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
+ <version>28.0-jre</version>
|
|
|
+ </dependency>
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
- <version>1.8</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>parse-version</id>
|
|
|
- <phase>validate</phase>
|
|
|
- <goals>
|
|
|
- <goal>parse-version</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>regex-property</id>
|
|
|
- <goals>
|
|
|
- <goal>regex-property</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <name>ambariVersion</name>
|
|
|
- <value>${project.version}</value>
|
|
|
- <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
|
|
|
- <replacement>$1.$2.$3.$4</replacement>
|
|
|
- <failIfNoMatch>false</failIfNoMatch>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>parse-package-version</id>
|
|
|
- <goals>
|
|
|
- <goal>regex-property</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <name>package-version</name>
|
|
|
- <value>${project.version}</value>
|
|
|
- <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
|
|
|
- <replacement>$1.$2.$3.$4</replacement>
|
|
|
- <failIfNoMatch>true</failIfNoMatch>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>parse-package-release</id>
|
|
|
- <goals>
|
|
|
- <goal>regex-property</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <name>package-release</name>
|
|
|
- <value>${project.version}</value>
|
|
|
- <regex>
|
|
|
- ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-)((([a-zA-Z]+)?([0-9]+))|(SNAPSHOT)).*
|
|
|
- </regex>
|
|
|
- <replacement>$7</replacement>
|
|
|
- <failIfNoMatch>true</failIfNoMatch>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <descriptors>
|
|
|
- <descriptor>../ambari-project/src/main/assemblies/empty.xml</descriptor>
|
|
|
- </descriptors>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>build-tarball</id>
|
|
|
- <phase>none</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
|
|
- <version>2.19</version>
|
|
|
- <configuration>
|
|
|
- <skip>${skipSurefireTests}</skip>
|
|
|
+ <build>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.vafer</groupId>
|
|
|
+ <artifactId>jdeb</artifactId>
|
|
|
+ <version>1.8</version>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
+ <version>1.8</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>parse-version</id>
|
|
|
+ <phase>validate</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>parse-version</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>regex-property</id>
|
|
|
+ <goals>
|
|
|
+ <goal>regex-property</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <name>ambariVersion</name>
|
|
|
+ <value>${project.version}</value>
|
|
|
+ <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
|
|
|
+ <replacement>$1.$2.$3.$4</replacement>
|
|
|
+ <failIfNoMatch>false</failIfNoMatch>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>parse-package-version</id>
|
|
|
+ <goals>
|
|
|
+ <goal>regex-property</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <name>package-version</name>
|
|
|
+ <value>${project.version}</value>
|
|
|
+ <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
|
|
|
+ <replacement>$1.$2.$3.$4</replacement>
|
|
|
+ <failIfNoMatch>true</failIfNoMatch>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>parse-package-release</id>
|
|
|
+ <goals>
|
|
|
+ <goal>regex-property</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <name>package-release</name>
|
|
|
+ <value>${project.version}</value>
|
|
|
+ <regex>
|
|
|
+ ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-)((([a-zA-Z]+)?([0-9]+))|(SNAPSHOT)).*
|
|
|
+ </regex>
|
|
|
+ <replacement>$7</replacement>
|
|
|
+ <failIfNoMatch>true</failIfNoMatch>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <descriptors>
|
|
|
+ <descriptor>../ambari-project/src/main/assemblies/empty.xml</descriptor>
|
|
|
+ </descriptors>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>build-tarball</id>
|
|
|
+ <phase>none</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <version>2.19</version>
|
|
|
+ <configuration>
|
|
|
+ <skip>${skipSurefireTests}</skip>
|
|
|
|
|
|
- <!-- Each profile in the top-level pom.xml defines which test group categories to run. -->
|
|
|
- <groups>${testcase.groups}</groups>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.2</version>
|
|
|
- <configuration>
|
|
|
- <source>1.8</source>
|
|
|
- <target>1.8</target>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-clean-plugin</artifactId>
|
|
|
- <version>2.5</version>
|
|
|
- <configuration>
|
|
|
- <filesets>
|
|
|
- <fileset>
|
|
|
- <directory>${basedir}</directory>
|
|
|
- <followSymlinks>false</followSymlinks>
|
|
|
- <includes>
|
|
|
- <include>**/*.pyc</include>
|
|
|
- </includes>
|
|
|
- </fileset>
|
|
|
- </filesets>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <!--Stub execution on direct plugin call - workaround for ambari rpm build process-->
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>rpm-maven-plugin</artifactId>
|
|
|
- <version>2.0.1</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>stub-execution</id>
|
|
|
- <!-- unbinds rpm creation from maven lifecycle -->
|
|
|
- <phase>none</phase>
|
|
|
- <goals>
|
|
|
- <goal>attached-rpm</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- <configuration>
|
|
|
- <copyright>2012, Apache Software Foundation</copyright>
|
|
|
- <group>Development</group>
|
|
|
- <description>Maven Recipe: RPM Package.</description>
|
|
|
- <release>${package-release}</release>
|
|
|
- <version>${package-version}</version>
|
|
|
- <mappings/>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.vafer</groupId>
|
|
|
- <artifactId>jdeb</artifactId>
|
|
|
- <version>1.0.1</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
|
|
|
- <id>stub-execution</id>
|
|
|
- <phase>none</phase>
|
|
|
- <goals>
|
|
|
- <goal>jdeb</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- <configuration>
|
|
|
- <skip>true</skip>
|
|
|
- <attach>false</attach>
|
|
|
- <submodules>true</submodules>
|
|
|
- <controlDir>${project.basedir}/src/main/package/deb/control</controlDir>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.rat</groupId>
|
|
|
- <artifactId>apache-rat-plugin</artifactId>
|
|
|
- <version>0.12</version>
|
|
|
- <configuration>
|
|
|
- <excludes>
|
|
|
- <exclude>pass.txt</exclude>
|
|
|
- <exclude>derby.log</exclude>
|
|
|
- <exclude>**/*.nuspec</exclude>
|
|
|
- <exclude>**/*.json</exclude>
|
|
|
- <exclude>**/out</exclude>
|
|
|
- </excludes>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <phase>test</phase>
|
|
|
- <goals>
|
|
|
- <goal>check</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
+ <!-- Each profile in the top-level pom.xml defines which test group categories to run. -->
|
|
|
+ <groups>${testcase.groups}</groups>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.2</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-clean-plugin</artifactId>
|
|
|
+ <version>2.5</version>
|
|
|
+ <configuration>
|
|
|
+ <filesets>
|
|
|
+ <fileset>
|
|
|
+ <directory>${basedir}</directory>
|
|
|
+ <followSymlinks>false</followSymlinks>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.pyc</include>
|
|
|
+ </includes>
|
|
|
+ </fileset>
|
|
|
+ </filesets>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <!--Stub execution on direct plugin call - workaround for ambari rpm build process-->
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>rpm-maven-plugin</artifactId>
|
|
|
+ <version>2.0.1</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>stub-execution</id>
|
|
|
+ <!-- unbinds rpm creation from maven lifecycle -->
|
|
|
+ <phase>none</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>attached-rpm</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <copyright>2012, Apache Software Foundation</copyright>
|
|
|
+ <group>Development</group>
|
|
|
+ <description>Maven Recipe: RPM Package.</description>
|
|
|
+ <release>${package-release}</release>
|
|
|
+ <version>${package-version}</version>
|
|
|
+ <mappings/>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.vafer</groupId>
|
|
|
+ <artifactId>jdeb</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
|
|
|
+ <id>stub-execution</id>
|
|
|
+ <phase>none</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>jdeb</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <skip>true</skip>
|
|
|
+ <attach>false</attach>
|
|
|
+ <submodules>true</submodules>
|
|
|
+ <controlDir>${project.basedir}/src/main/package/deb/control</controlDir>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.rat</groupId>
|
|
|
+ <artifactId>apache-rat-plugin</artifactId>
|
|
|
+ <version>0.12</version>
|
|
|
+ <configuration>
|
|
|
+ <excludes>
|
|
|
+ <exclude>pass.txt</exclude>
|
|
|
+ <exclude>derby.log</exclude>
|
|
|
+ <exclude>**/*.nuspec</exclude>
|
|
|
+ <exclude>**/*.json</exclude>
|
|
|
+ <exclude>**/out</exclude>
|
|
|
+ </excludes>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <phase>test</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>check</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
</build>
|
|
|
|
|
|
<dependencies>
|