-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include js verticles in Java code #577
Comments
@tpfau You need: <dependency>
<groupId>io.reactiverse</groupId>
<artifactId>es4x</artifactId>
<version>0.17.0</version>
</dependency> Perhaps I should fix that pom to require the main jar too. That dependency is just the generated code, all the vertx stack modules, so you don't need to pull them from NPM. |
TASK: Investigate if we can add a dependency to the main jar, of if this would create a huge circular dependency problem. |
Thanks for the quick response.
Interestingly, when I remove the es4x dependency completely, the deployment succeeds (well vertx starts to run), however, when then trying to access the verticle via the eventbus it fails, indicating that there was no consumer registered at the given address. |
@pmlopes are there any examples using vert.x 4 with es4x combining Java and Javascript verticles using maven as a build tool? |
Hi, What I needed to add were dependencies for graalvm:
Which es4x does not seem to depend on (should it)?
I assume this is due to it running on java and not graalvm, but I'm currently not sure how best to change this (and actually if I should change this). |
This is somewhat related to #223.
I'm currently trying to include some js verticles into a bigger java project. As a minimal example I have a helloVert.js :
And a ServerVerticle.java:
I'm using a maven build file including :
And I get the following error:
Am I just missing dependencies, or should those be added to es4x? Or am I doing something absolutely wrong here (which is entirely possible)?
The text was updated successfully, but these errors were encountered: