Comments (3)
i guess problem is in play-mailer
Well, the problem is that the resources in different dependencies overlap and aren't identical.
In the case of mailcap.default and mimetypes.default, I suspect the files are actually really similar and you can configure the assemblyMergeStrategy to just pick one.
In case of the overlap between jakarta.activation-api and javax.activation, I guess it would be best to pick one and exclude the other dependency from your dependency tree?
from play-mailer.
I succeed in making jar with following code added in build.sbt
excludeDependencies ++= Seq(
ExclusionRule("javax.activation")
)
Again following question may not be appropriate to this place. Again would be grateful with advice where to look and ask next.
I am curious what exactly is happening here so I could understand the situation better. This is my take on it.
At some point while 'building' jar, 'engine' will download all dependencies from all 'components' that are used in the project. At some other point while injecting the objects 'engine' will stumble upon an object, that has to be injected, that is typed as an interface. Next, the engine will search in, I assume, classpath for a class that implement that interface but will find multiple classes that implement given interface and that's where a collision occurs.
Am I on the right path of understanding this or?
Thx
from play-mailer.
This is not play-mailer specific, you should ask further questions in https://github.com/sbt/sbt-assembly
from play-mailer.
Related Issues (20)
- Compilation error when used with Play 2.6.18 and compile time injection HOT 2
- Unable to disable TLS v1.0 with play-mailer 5.0 (using Play 2.5.x) HOT 12
- Authentication Failure With Gmail in Play-Mailer 6.0.1 HOT 1
- Email sent goes to spam HOT 3
- New release or using the last dev version HOT 8
- office365 smtp session HOT 2
- Cross build for Scala 2.13.0
- No logs in mock mode (play 2.7) HOT 1
- .addTo() needs to be properly escaped or UTF-8 encoded HOT 1
- Unresolved dependencies path for 8.0.0 HOT 2
- NTLM authentication HOT 2
- Get a nullpointerexception when trying to send mail HOT 1
- Not establishing StartTLS connection HOT 1
- Streaming attachments HOT 3
- [2.x] How to send a mail using TLSv1.2 or TLSv1.3 HOT 4
- Error - no object DCH for MIME type multipart/mixed HOT 1
- Add support for DKIM signing
- Switch to Jakarta Mail
- publish 9.0.0-M2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-mailer.