Giter Club home page Giter Club logo

vertx-microservices-workshop-scala's People

Contributors

honeyandsw avatar pflanzenmoerder avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

vertx-microservices-workshop-scala's Issues

Set Main-Class/Main-Verticle

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 )
}

Conflicting cross-version suffixes

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>

SBT Script

A shell which starts every module is needed 🤓

JavaVerticleFactory called

DeploymentManager.createVerticles
- PortfolioVerticle => JavaVerticleFactory
=> java.lang.ClassCastException: io.vertx.workshop.portfolio.PortfolioVerticle cannot be cast to io.vertx.core.Verticle
- GeneratorConfigVerticle => ScalaVerticleFactory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.