This is an automated email from the ASF dual-hosted git repository. adoroszlai pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new e44d5ac AMBARI-23276. Maven cleanup (#699) e44d5ac is described below commit e44d5ac104f183372f43701716aaa7f5623fe28e Author: Doroszlai, Attila <6454655+adorosz...@users.noreply.github.com> AuthorDate: Mon Mar 19 10:14:10 2018 +0100 AMBARI-23276. Maven cleanup (#699) * Copy resources in the correct lifecycle phase * Remove unused dependency: maven-assembly-plugin * Remove some unnecessary version declarations * Remove unnecessary plugin * Declare dependency on Guava * ambari-funtest should not duplicate ambari-server dependencies * ambari-funtest has no src/main/resources --- ambari-agent/pom.xml | 7 +- ambari-funtest/pom.xml | 335 --------------------- ambari-project/pom.xml | 10 +- ambari-server/pom.xml | 11 +- ambari-server/src/main/assemblies/server.xml | 4 - .../ldap/domain/AmbariLdapConfiguration.java | 2 +- ambari-serviceadvisor/pom.xml | 6 - ambari-utility/pom.xml | 2 - pom.xml | 1 + 9 files changed, 13 insertions(+), 365 deletions(-) diff --git a/ambari-agent/pom.xml b/ambari-agent/pom.xml index 0186ad0..3316046 100644 --- a/ambari-agent/pom.xml +++ b/ambari-agent/pom.xml @@ -63,12 +63,10 @@ <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> - <version>1.3.1</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> - <version>3.2.2</version> </dependency> <dependency> <groupId>commons-configuration</groupId> @@ -165,7 +163,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>1.2.1</version> <executions> <execution> <configuration> @@ -488,7 +485,7 @@ </execution> <execution> <id>copy-resources-filter</id> - <phase>generate-resources</phase> + <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> @@ -709,7 +706,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>1.2.1</version> <executions> <execution> <id>build-choco-package</id> @@ -755,7 +751,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>1.2.1</version> <executions> <execution> <configuration> diff --git a/ambari-funtest/pom.xml b/ambari-funtest/pom.xml index 0d61087..813afa7 100644 --- a/ambari-funtest/pom.xml +++ b/ambari-funtest/pom.xml @@ -82,24 +82,6 @@ </configuration> </plugin> </plugins> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - <excludes> - <exclude>stacks/**</exclude> - <exclude>common-services/**</exclude> - </excludes> - </resource> - <resource> - <directory>src/main/resources</directory> - <filtering>false</filtering> - <includes> - <include>stacks/**</include> - <include>common-services/**</include> - </includes> - </resource> - </resources> </build> <profiles> <profile> @@ -141,125 +123,10 @@ </profiles> <dependencies> <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>1.4</version> - </dependency> - <dependency> - <groupId>org.apache.commons</groupId> - <artifactId>commons-csv</artifactId> - </dependency> - <dependency> - <groupId>uk.com.robust-it</groupId> - <artifactId>cloning</artifactId> - <version>1.9.2</version> - </dependency> - <dependency> - <groupId>com.google.inject.extensions</groupId> - <artifactId>guice-assistedinject</artifactId> - </dependency> - <dependency> <groupId>com.google.inject.extensions</groupId> <artifactId>guice-persist</artifactId> </dependency> <dependency> - <groupId>com.google.inject.extensions</groupId> - <artifactId>guice-servlet</artifactId> - </dependency> - <dependency> - <groupId>com.google.inject.extensions</groupId> - <artifactId>guice-multibindings</artifactId> - <version>3.0</version> - </dependency> - <dependency> - <groupId>org.springframework.security</groupId> - <artifactId>spring-security-core</artifactId> - </dependency> - <dependency> - <groupId>org.springframework.security</groupId> - <artifactId>spring-security-config</artifactId> - </dependency> - <dependency> - <groupId>org.springframework.security</groupId> - <artifactId>spring-security-web</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-test</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.springframework.security</groupId> - <artifactId>spring-security-ldap</artifactId> - </dependency> - <dependency> - <groupId>org.springframework.ldap</groupId> - <artifactId>spring-ldap-core</artifactId> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - <version>1.7.20</version> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-log4j12</artifactId> - <version>1.7.20</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.persistence</groupId> - <artifactId>eclipselink</artifactId> - </dependency> - <dependency> - <groupId>org.mockito</groupId> - <artifactId>mockito-core</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-security</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-servlet</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-servlets</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-webapp</artifactId> - </dependency> - <!--jsp support for jetty --> - <dependency> - <groupId>org.mortbay.jetty</groupId> - <artifactId>jsp-api-2.1-glassfish</artifactId> - <version>2.1.v20100127</version> - </dependency> - <dependency> - <groupId>org.mortbay.jetty</groupId> - <artifactId>jsp-2.1-glassfish</artifactId> - <version>2.1.v20100127</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant</artifactId> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-launcher</artifactId> - </dependency> - - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-server</artifactId> - </dependency> - <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </dependency> @@ -272,225 +139,23 @@ <artifactId>commons-lang</artifactId> </dependency> <dependency> - <groupId>commons-net</groupId> - <artifactId>commons-net</artifactId> - <version>1.4.1</version> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>javax.servlet-api</artifactId> - </dependency> - <dependency> - <groupId>com.sun.jersey</groupId> - <artifactId>jersey-json</artifactId> - <exclusions> - <exclusion> - <groupId>org.codehaus.jackson</groupId> - <artifactId>jackson-xc</artifactId> - </exclusion> - <exclusion> - <groupId>org.codehaus.jettison</groupId> - <artifactId>jettison</artifactId> - </exclusion> - <exclusion> - <groupId>org.codehaus.jackson</groupId> - <artifactId>jackson-mapper-asl</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>com.sun.jersey</groupId> - <artifactId>jersey-server</artifactId> - </dependency> - <dependency> - <groupId>com.sun.jersey</groupId> - <artifactId>jersey-client</artifactId> - </dependency> - <dependency> - <groupId>com.sun.jersey.contribs</groupId> - <artifactId>jersey-multipart</artifactId> - </dependency> - <dependency> - <groupId>com.sun.jersey.contribs</groupId> - <artifactId>jersey-guice</artifactId> - </dependency> - <dependency> - <groupId>org.codehaus.jackson</groupId> - <artifactId>jackson-mapper-asl</artifactId> - <version>1.9.2</version> - </dependency> - <dependency> - <groupId>org.codehaus.jackson</groupId> - <artifactId>jackson-core-asl</artifactId> - </dependency> - <dependency> - <groupId>org.codehaus.jackson</groupId> - <artifactId>jackson-jaxrs</artifactId> - </dependency> - <dependency> - <groupId>org.codehaus.jackson</groupId> - <artifactId>jackson-xc</artifactId> - </dependency> - <dependency> - <groupId>com.sun.jersey.jersey-test-framework</groupId> - <artifactId>jersey-test-framework-core</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.sun.jersey.jersey-test-framework</groupId> - <artifactId>jersey-test-framework-grizzly2</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.codehaus.jettison</groupId> - <artifactId>jettison</artifactId> - <scope>test</scope> - </dependency> - <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> - <groupId>org.easymock</groupId> - <artifactId>easymock</artifactId> - <version>3.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.powermock</groupId> - <artifactId>powermock-module-junit4</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.powermock</groupId> - <artifactId>powermock-api-easymock</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.powermock</groupId> - <artifactId>powermock-core</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.powermock</groupId> - <artifactId>powermock-reflect</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.powermock</groupId> - <artifactId>powermock-api-mockito</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>nl.jqno.equalsverifier</groupId> - <artifactId>equalsverifier</artifactId> - <version>1.7.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.objenesis</groupId> - <artifactId>objenesis-tck</artifactId> - <version>1.2</version> - </dependency> - <dependency> - <groupId>cglib</groupId> - <artifactId>cglib</artifactId> - <version>2.2.2</version> - </dependency> - <dependency> - <groupId>asm</groupId> - <artifactId>asm</artifactId> - <version>3.3.1</version> - </dependency> - <dependency> <groupId>com.google.inject</groupId> <artifactId>guice</artifactId> - <version>3.0</version> </dependency> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> - <version>2.2.2</version> - </dependency> - <dependency> - <groupId>org.postgresql</groupId> - <artifactId>postgresql</artifactId> - <version>9.3-1101-jdbc4</version> - </dependency> - <dependency> - <groupId>com.google.code.findbugs</groupId> - <artifactId>jsr305</artifactId> - <version>1.3.9</version> - </dependency> - <dependency> - <groupId>org.quartz-scheduler</groupId> - <artifactId>quartz</artifactId> - <version>2.2.1</version> - </dependency> - <dependency> - <groupId>org.quartz-scheduler</groupId> - <artifactId>quartz-jobs</artifactId> - <version>2.2.1</version> - </dependency> - <dependency> - <groupId>org.apache.velocity</groupId> - <artifactId>velocity</artifactId> - <version>1.7</version> - <exclusions> - <exclusion> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>com.sun.mail</groupId> - <artifactId>mailapi</artifactId> - <version>1.5.2</version> - </dependency> - <dependency> - <groupId>com.sun.mail</groupId> - <artifactId>smtp</artifactId> - <version>1.5.2</version> - </dependency> - <dependency> - <groupId>org.snmp4j</groupId> - <artifactId>snmp4j</artifactId> - <version>1.10.1</version> - </dependency> - <dependency> - <groupId>org.apache.ambari</groupId> - <artifactId>ambari-metrics-common</artifactId> - <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.ambari</groupId> <artifactId>ambari-server</artifactId> <version>${project.version}</version> </dependency> - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-annotations</artifactId> - <version>2.1.4</version> - </dependency> - <dependency> - <groupId>net.sf.ehcache</groupId> - <artifactId>ehcache</artifactId> - <version>2.10.0</version> - </dependency> - <dependency> - <groupId>com.nimbusds</groupId> - <artifactId>nimbus-jose-jwt</artifactId> - <version>3.9</version> - <scope>compile</scope> - <exclusions> - <exclusion> - <groupId>org.bouncycastle</groupId> - <artifactId>bcprov-jdk15on</artifactId> - </exclusion> - </exclusions> - </dependency> <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --> <dependency> <groupId>org.apache.httpcomponents</groupId> diff --git a/ambari-project/pom.xml b/ambari-project/pom.xml index 1535c1c..394fb8a 100644 --- a/ambari-project/pom.xml +++ b/ambari-project/pom.xml @@ -84,6 +84,11 @@ <dependencyManagement> <dependencies> <dependency> + <groupId>commons-cli</groupId> + <artifactId>commons-cli</artifactId> + <version>1.3.1</version> + </dependency> + <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.2</version> @@ -699,10 +704,6 @@ </pluginManagement> <plugins> <plugin> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.0</version> - </plugin> - <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <configuration combine.self="override"/> @@ -728,7 +729,6 @@ <plugin> <groupId>org.vafer</groupId> <artifactId>jdeb</artifactId> - <version>1.0.1</version> <executions> <execution> <phase>none</phase> diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml index 329822c..d3b6448 100644 --- a/ambari-server/pom.xml +++ b/ambari-server/pom.xml @@ -236,7 +236,7 @@ <executions> <execution> <id>copy-resources</id> - <phase>generate-test-resources</phase> + <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> @@ -741,7 +741,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>1.2.1</version> <executions> <execution> <configuration> @@ -1001,7 +1000,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>1.2.1</version> <executions> <execution> <id>build-choco-package</id> @@ -1076,7 +1074,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>1.2.1</version> <executions> <execution> <configuration> @@ -1118,7 +1115,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>1.2.1</version> <executions> <execution> <configuration> @@ -1176,6 +1172,10 @@ <version>1.9.2</version> </dependency> <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + </dependency> + <dependency> <groupId>com.google.inject</groupId> <artifactId>guice</artifactId> </dependency> @@ -1719,7 +1719,6 @@ <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> - <version>1.3.1</version> </dependency> <dependency> <groupId>com.mchange</groupId> diff --git a/ambari-server/src/main/assemblies/server.xml b/ambari-server/src/main/assemblies/server.xml index 6d32a76..13a8417 100644 --- a/ambari-server/src/main/assemblies/server.xml +++ b/ambari-server/src/main/assemblies/server.xml @@ -448,10 +448,6 @@ <outputDirectory>/usr/lib/ambari-server</outputDirectory> <unpack>false</unpack> <scope>runtime</scope> - <excludes> - <exclude>org.slf4j:slf4j-jdk14</exclude> - <exclude>org.slf4j:slf4j-nop</exclude> - </excludes> </dependencySet> </dependencySets> </assembly> diff --git a/ambari-server/src/main/java/org/apache/ambari/server/ldap/domain/AmbariLdapConfiguration.java b/ambari-server/src/main/java/org/apache/ambari/server/ldap/domain/AmbariLdapConfiguration.java index 4ff92f4..573e9d4 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/ldap/domain/AmbariLdapConfiguration.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/ldap/domain/AmbariLdapConfiguration.java @@ -23,9 +23,9 @@ import java.util.Map; import org.apache.ambari.server.configuration.LdapUsernameCollisionHandlingBehavior; import org.apache.ambari.server.security.authorization.LdapServerProperties; import org.apache.ambari.server.utils.PasswordUtils; +import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; -import org.codehaus.plexus.util.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/ambari-serviceadvisor/pom.xml b/ambari-serviceadvisor/pom.xml index 5399bdd..664328f 100644 --- a/ambari-serviceadvisor/pom.xml +++ b/ambari-serviceadvisor/pom.xml @@ -31,12 +31,6 @@ <description>Service Advisor</description> <dependencies> - <dependency> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-assembly-plugin</artifactId> - <version>2.6</version> - </dependency> - <!-- Log Factory logging The main class is expected to write to stdout and stderr appropriately. --> diff --git a/ambari-utility/pom.xml b/ambari-utility/pom.xml index ac6f30c..fed63c6 100644 --- a/ambari-utility/pom.xml +++ b/ambari-utility/pom.xml @@ -122,7 +122,6 @@ <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--> @@ -151,7 +150,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rpm-maven-plugin</artifactId> - <version>2.0.1</version> <executions> <execution> <!-- unbinds rpm creation from maven lifecycle --> diff --git a/pom.xml b/pom.xml index 494d227..4a231e3 100644 --- a/pom.xml +++ b/pom.xml @@ -152,6 +152,7 @@ <plugin> <groupId>org.vafer</groupId> <artifactId>jdeb</artifactId> + <version>1.0.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> -- To stop receiving notification emails like this one, please contact adorosz...@apache.org.