honeyandsw / vertx-microservices-workshop-scala Goto Github PK
View Code? Open in Web Editor NEWScala Vert.x project inspired by vertx-microservices-workshop
Scala Vert.x project inspired by vertx-microservices-workshop
ServiceDiscovery
- Vert.x Service Discovery
- Event Bus Service
- event bus service vs. event bus
Future
- Futures and Promises
- Async service interface
- Verticle? Service?
- Service Proxy
Using the Launcher in fat jars
To use the Launcher class in a fat-jar just set the Main-Class of the MANIFEST to io.vertx.core.Launcher. In addition, set the Main-Verticle MANIFEST entry to the name of your main verticle.
By default, it executed the run command. However, you can configure the default command by setting the Main-Command MANIFEST entry. The default command is used if the fat jar is launched without a command.
sbt - Configure packaging
: Read MANIFEST in build.sbt
packageOptions in (Compile, packageBin) += {
val file = new java.io.File("META-INF/MANIFEST.MF")
val manifest = Using.fileInputStream(file)( in => new java.util.jar.Manifest(in) )
Package.JarManifest( manifest )
}
object Build extends AutoPlugin
는 왜 호출되는 것일까?!Multi-project
- sbt - Multi-project builds
- Buidling Multi-module Projects With Sbt
Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.scala-lang#scala-compiler;2.12.0 ...
[info] Resolving jline#jline;2.14.1 ...
[info] Done updating.
[error] Modules were resolved with conflicting cross-version suffixes in {file:/Users/Naver/IdeaProjects/vertx-microservices-workshop-scala/}common:
[error] io.vertx:vertx-sql-common _2.12, <none>
[error] io.vertx:vertx-jdbc-client _2.12, <none>
[error] io.vertx:vertx-redis-client _2.12, <none>
[error] io.vertx:vertx-web _2.12, <none>
[error] io.vertx:vertx-service-discovery _2.12, <none>
[trace] Stack trace suppressed: run 'last common/*:update' for the full output.
[trace] Stack trace suppressed: run 'last audit/*:ssExtractDependencies' for the full output.
[trace] Stack trace suppressed: run 'last common/*:ssExtractDependencies' for the full output.
[trace] Stack trace suppressed: run 'last quote/*:ssExtractDependencies' for the full output.
[trace] Stack trace suppressed: run 'last dashboard/*:ssExtractDependencies' for the full output.
[error] (common/*:update) Conflicting cross-version suffixes in: io.vertx:vertx-sql-common, io.vertx:vertx-jdbc-client, io.vertx:vertx-redis-client, io.vertx:vertx-web, io.vertx:vertx-service-discovery
[error] (audit/*:ssExtractDependencies) Conflicting cross-version suffixes in: io.vertx:vertx-sql-common, io.vertx:vertx-jdbc-client, io.vertx:vertx-redis-client, io.vertx:vertx-web, io.vertx:vertx-service-discovery
[error] (common/*:ssExtractDependencies) Conflicting cross-version suffixes in: io.vertx:vertx-sql-common, io.vertx:vertx-jdbc-client, io.vertx:vertx-redis-client, io.vertx:vertx-web, io.vertx:vertx-service-discovery
[error] (quote/*:ssExtractDependencies) Conflicting cross-version suffixes in: io.vertx:vertx-sql-common, io.vertx:vertx-jdbc-client, io.vertx:vertx-redis-client, io.vertx:vertx-web, io.vertx:vertx-service-discovery
[error] (dashboard/*:ssExtractDependencies) Conflicting cross-version suffixes in: io.vertx:vertx-sql-common, io.vertx:vertx-jdbc-client, io.vertx:vertx-redis-client, io.vertx:vertx-web, io.vertx:vertx-service-discovery
[error] Total time: 30 s, completed 2016. 11. 11 오후 9:11:27</pre><br/>See complete log in <a href="/Users/Naver/Library/Logs/IntelliJIdea15/sbt.last.log">/Users/Naver/Library/Logs/IntelliJIdea15/sbt.last.log</a>
A shell which starts every module is needed 🤓
DeploymentManager.createVerticles
- PortfolioVerticle => JavaVerticleFactory
=> java.lang.ClassCastException: io.vertx.workshop.portfolio.PortfolioVerticle cannot be cast to io.vertx.core.Verticle
- GeneratorConfigVerticle => ScalaVerticleFactory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.