spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Dale (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-5584) Add Maven Enforcer Plugin dependencyConvergence rule (fail false)
Date Wed, 04 Feb 2015 04:27:35 GMT
Markus Dale created SPARK-5584:
----------------------------------

             Summary: Add Maven Enforcer Plugin dependencyConvergence rule (fail false)
                 Key: SPARK-5584
                 URL: https://issues.apache.org/jira/browse/SPARK-5584
             Project: Spark
          Issue Type: Improvement
          Components: Build
    Affects Versions: 1.2.0
            Reporter: Markus Dale
            Priority: Minor


The Spark Maven build uses the Maven Enforcer plugin but does not have a rule for dependencyConvergence
(no version conflicts between dependencies/transitive dependencies). 

Putting this in the current 1.3.0-SNAPSHOT in main pom.xml by adding dependencyConvergence
rule:

{noformat}
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-enforcer-plugin</artifactId>
          <version>1.3.1</version>
          <executions>
            <execution>
              <id>enforce-versions</id>
              <goals>
                <goal>enforce</goal>
              </goals>
              <configuration>
                <rules>
                  <requireMavenVersion>
                    <version>3.0.4</version>
                  </requireMavenVersion>
                  <requireJavaVersion>
                    <version>${java.version}</version>
                  </requireJavaVersion>
                  <dependencyConvergence/>
                </rules>
              </configuration>
            </execution>
          </executions>
        </plugin>
{noformat}

And running with:
mvn -Pyarn -Phadoop-2.4 -Phive -DskipTests clean package -Denforcer.fail=false &> output.txt

identified a lot of dependency convergence problems (one of them re-opening SPARK-3039 and
fixed via exclude transitive dependency/explicit include of desired version of library).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message