SBT Assembly - Deduplicate error & Exclude error

sbt assembly

java.lang.RuntimeException: deduplicate: different file contents found in the following:

三种方法:

1.

seq(assemblySettings: _*)

name := "StreamTest"

version := "1.0"

scalaVersion := "2.10.4"

libraryDependencies += ***

libraryDependencies += ***

libraryDependencies ++= Seq(
    exclude("***", "***").
)

2.更新build.sbt

import AssemblyKeys._

seq(assemblySettings: _*)

name := "SparkStreamingKinesis"

version := "1.0"

scalaVersion := "2.10.4"

libraryDependencies += ****

assemblyMergeStrategy in assembly := {
    case PathList(ps @ _*) if ps.last endsWith ".RSA" => MergeStrategy.first
    case x =>
       val oldStrategy = (assemblyMergeStrategy in assembly).value
       oldStrategy(x)
}

3.简单暴力,但不一定能保证工程稳定

找到重复报错的包,其中发生冲突的库的配置文件,直接删掉。-----我本人就是直接如此暴力解决。干脆利落。但可能会出现其他问题,一定留备份。

时间: 2024-10-01 19:29:57

SBT Assembly - Deduplicate error & Exclude error的相关文章

sbt assembly编译打包时报: deduplicate: different file contents found in the following:

参考文章: http://blog.csdn.net/oopsoom/article/details/41318599 [error] (marathon/*:assembly) deduplicate:different file contents found in the following: [error] META-INF/aop.xml [error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/kamon/kamon

PHP-问题处理Fatal error: Uncaught Error: Call to undefined function simplexml_load_file()

1.问题 今天重新安装了ubuntu,PHP,MySQL,Apache,到测试CMS项目时发生一个错误: Fatal error: Uncaught Error: Call to undefined function simplexml_load_file() 2.解决: 2.1 安装php-xml: sudo apt-get install php-xml 2.2重启apache服务: sudo service apache2 restart

usr/bin/mysqladmin: refresh failed; error: 'Unknown error'

debian wheezy 升级后, 因为授权错误, 导致密码给修改, 在debian的mysql safe下也无法进入. 我在/etc/mysql/my.cnf 里面已经修改了bind-address 为局域网ip 进而执行了 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; 然后重载授权表: FLUSH PRIVILEGES; 然后重启后, 虽然可以远程链接, 但是debia

[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

[[email protected] scripts]# ./mysql_install_db --user=mysql --basedir=/app/servers/mysql-5.5.20 --datadir=/app/servers/mysql-5.5.20/data/ 加上--datadir=/app/servers/mysql-5.5.20/data/ 问题解决!!! [ERROR] Fatal error: Can't open and lock privilege tables:

ERROR: transport error 202: bind failed: Address already in use

ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:

Data Flow ->> Excel Connection遇到错误:[Excel Source [16]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.....

在SSIS下做Excel导入数据的时候遇到下面的错误 [Excel Source [16]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0209303. T

Fix to "Error Value: Error: rpmdb open failed"

"An internal system error has occured A problem that we were not expecting has occured.Please report this bug in your distribution bugtracker withthe error description"Under more details it says: Error Type: <class 'yum.Errors.YumBaseError'&g

BIP Requests Are Failing With Error &quot;OPP Error Oracle.apps.xdo.XDOException: Error Creating Lock Fil

In this Document   Symptoms   Cause   Solution   References Applies to: BI Publisher (formerly XML Publisher) - Version 12.1 to 12.2 [Release 12.1 to 12.2] Information in this document applies to any platform. Symptoms BiP Requests are failing: ERROR

【转】fatal error C1189: #error : missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS

转自:http://blog.csdn.net/friendan/article/details/46576699 fatal error C1189: #error :  missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS 今天使用FFMPEG出现以上错误 解决方法: 在libavutil\common.h文件头部加上以下宏定义即可: #ifdef __cplusplus#define __STDC_CONSTAN