Skip to content

Instantly share code, notes, and snippets.

@djo
Last active August 29, 2015 14:14

Revisions

  1. djo revised this gist Feb 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build.sbt.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ path-to-cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.9.jar:META-INF/maven/org.sl
    path-to-cache/com.twitter/parquet-format/jars/parquet-format-2.2.0-rc1.jar:META-INF/maven/org.slf4j/slf4j-api/pom.properties
    ```

    To resolve just exclude the `slf4j-api/pom.properties` from `com.twitter/parquet-format` package:
    To resolve it exclude `slf4j-api/pom.properties` from `parquet-format` package:

    ```
    mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
  2. djo revised this gist Feb 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build.sbt.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Conflict in the `sbt` dependencies when adding `parquet-format`:
    Conflicts in the `sbt` dependencies when adding `parquet-format`:

    ```
    java.lang.RuntimeException: deduplicate: different file contents found in the following:
  3. djo revised this gist Feb 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build.sbt.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Conflict between when adding `parquet-format` to the `sbt` dependencies
    Conflict in the `sbt` dependencies when adding `parquet-format`:

    ```
    java.lang.RuntimeException: deduplicate: different file contents found in the following:
  4. djo renamed this gist Feb 5, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. djo created this gist Feb 5, 2015.
    18 changes: 18 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    Conflict between when adding `parquet-format` to the `sbt` dependencies

    ```
    java.lang.RuntimeException: deduplicate: different file contents found in the following:
    path-to-cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.9.jar:META-INF/maven/org.slf4j/slf4j-api/pom.properties
    path-to-cache/com.twitter/parquet-format/jars/parquet-format-2.2.0-rc1.jar:META-INF/maven/org.slf4j/slf4j-api/pom.properties
    ```

    To resolve just exclude the `slf4j-api/pom.properties` from `com.twitter/parquet-format` package:

    ```
    mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
    {
    case PathList("META-INF", "maven","org.slf4j","slf4j-api", ps) if ps.startsWith("pom") => MergeStrategy.discard
    case x => old(x)
    }
    }
    ```