Closed liangyiliang closed 5 months ago
There is no cnf/central.xml
. There is a cnf/central.mvn
which does indeed perform the function of scoping the dependencies.
If you look in this file it should be obvious how to add more dependencies. It follows the Maven Group:Artifact:Version format. In your case org.java-websocket:Java-WebSocket:1.5.6
. you will still have to add the Bundle Symbolc Name to the -buildpath
, what you did looks ok although the version is not required, it will the version solution from the central.mvn
list.
If you use Eclipse with Bndtools then you get a lot of help with these dependencies and the jars are immediately build after each detailed change you make.
We're currently on 6.0, and closing 6.1. Any reason not to use this latest version?
Hi - apologies for the late reply. We have resolved the issue with adding dependencies, thanks!
We're currently on 6.0, and closing 6.1. Any reason not to use this latest version?
In our current project we do not yet want to deal with temporal models - at least for now, we just want to build a quick prototype to work with non-temporal models without dealing with temporal ones. That's why we are still on Alloy 5.1.0. In the near future we will switch to using the latest version.
Thank you!
Hi,
Please excuse me if this is not the right place to ask this question.
I am working on a project that extends Alloy 5.1.0's
org.alloytools.alloy.application
package with a feature that uses WebSocket to transmit some model details into an external application. I have elected to use theorg.Java-WebSocket
package.I have been trying to compile a version of Alloy 5.1.0 that includes the jar for
org.Java-WebSocket
, but I can't seem to get it to work.This is what I have done:
In
cnf/central.xml
, I added these lines:In
bnd.bnd
fromorg.alloytools.alloy.application
, I added the package into-buildpath
:Finally, in
settings.gradle
I added these lines underdependencies
:But it appears that once I run
./gradlew build
and execute the resultant.jar
file underorg.alloytools.alloy.dist
, Java would give me an exception:So it seems that
org.java-websocket
hasn't been bundled into thejar
file.Is there anything else that I need to do for this to work?
Thank you!