Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

deduplicate: different file contents found when use sbt-assembly #14

Open
almothafar opened this issue Jun 1, 2016 · 0 comments
Open

Comments

@almothafar
Copy link

Simply I have stopper issue here, i'm trying to get jar file for play application with sbt-assembly like here :

https://www.playframework.com/documentation/2.5.x/Deploying#Using-the-SBT-assembly-plugin

just to make sure its working exactly like my environment my plugins.sbt:

// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.3")

// Web plugins
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
addSbtPlugin("org.irundaia.sbt" % "sbt-sassify" % "1.4.2")

// Play enhancer - this automatically generates getters/setters for public fields
// and rewrites accessors of these fields to use the getters/setters. Remove this
// plugin if you prefer not to have this feature, or disable on a per project
// basis using disablePlugins(PlayEnhancer) in your build.sbt
addSbtPlugin("com.typesafe.sbt" % "sbt-play-enhancer" % "1.1.0")

// Play Ebean support, to enable, uncomment this line, and enable in your build.sbt using
// enablePlugins(PlayEbean). Note, uncommenting this line will automatically bring in
// Play enhancer, regardless of whether the line above is commented out or not.
addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "3.0.1")

// Gulp play
addSbtPlugin("com.github.mmizutani" % "sbt-play-gulp" % "0.1.1")

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")

My build.sbt:

name := """App Name"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean)

scalaVersion := "2.11.8"

libraryDependencies ++= Seq(
  javaJdbc,
  cache,
  javaWs,
  filters,
  evolutions,
  "mysql" % "mysql-connector-java" % "5.1.38",
  "com.typesafe.play" %% "play-mailer" % "5.0.0-M1",
  "org.mapstruct" % "mapstruct-jdk8" % "1.1.0.Beta1",
  "org.mapstruct" % "mapstruct-processor" % "1.1.0.Beta1",
  "commons-io" % "commons-io" % "2.4",
  "org.apache.poi" % "poi" % "3.14",
  "org.apache.poi" % "poi-ooxml" % "3.14" % "provided"
)

libraryDependencies ~= {
  _ map {
    case m if m.organization == "com.typesafe.play" =>
      m.exclude("commons-logging", "commons-logging")
    case m => m
  }
}

mainClass in assembly := Some("play.core.server.ProdServerStart")

fullClasspath in assembly += Attributed.blank(PlayKeys.playPackageAssets.value)

Then when I do activator assembly I get:

[error] deduplicate: different file contents found in the following:
[error] com/github/mmizutani/playgulp/javascript/ReverseGulpAssets.class
[error] C:\Users\almothafar\.ivy2\cache\com.github.mmizutani\play-gulp_2.11\jars\play-gulp_2.11-0.1.1.jar:com/github/mmizutani/playgulp/javascript/ReverseGulpAssets.class
[error] deduplicate: different file contents found in the following:
[error] com/github/mmizutani/playgulp/routes$javascript.class
[error] C:\Users\almothafar\.ivy2\cache\com.github.mmizutani\play-gulp_2.11\jars\play-gulp_2.11-0.1.1.jar:com/github/mmizutani/playgulp/routes$javascript.class
[error] deduplicate: different file contents found in the following:
[error] com/github/mmizutani/playgulp/routes.class
[error] C:\Users\almothafar\.ivy2\cache\com.github.mmizutani\play-gulp_2.11\jars\play-gulp_2.11-0.1.1.jar:com/github/mmizutani/playgulp/routes.class
[error] Total time: 20 s, completed Jun 1, 2016 2:31:26 PM

The problem simply is the files inside the javascript folder com/github/mmizutani/playgulp/javascript conflicts with the one in com/github/mmizutani/playgulp and routes conflicts too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant