Closed manuEbg closed 3 years ago
I did not have time yet to read the full error message, but I believe this could be related to JEP 320, i.e. the removal of the CORBA support from the Java standard library. https://openjdk.java.net/jeps/320 (Link is currently broken for me, don't know why)
Previous versions of the OMC used a CORBA interface that is now still optionally available. It seems that Mo|E also still optionally supports this old interface. The support for CORBA can be dropped, so you may be able to get Mo|E to compile if you deactivate the CORBA-related code.
Hm... can't be just that. There is more. Seems that all dependencies are failing? :raised_eyebrow:
I tried to reproduce the issue on my machine, but failed. The following steps worked perfectly fine for me:
mkdir MoPE
cd MoPE
git clone https://github.com/THM-MoTE/mope-server.git
git clone https://github.com/THM-MoTE/EnhancedWatchService.git
git clone https://github.com/THM-MoTE/recently.git
git clone https://github.com/THM-MoTE/omc-java-api.git
cd mope-server
sbt
sbt:MoPE-server> compile
sbt --version
:
[info] 1.2.8
sbt script version: 1.4.7
java -version
:
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9)
OpenJDK 64-Bit Server VM (build 11.0.10+9, mixed mode)
The OS is Manjaro Linux.
ARGH, I see now what is happening. :facepalm:
I was thinking you want to install mope-server
using sbt
, but as you said in the issue description, you actually wanted to compile omc-java-api
. The thing is that this project does not have a build.sbt
file, so I do not think it should be built using sbt, but rather with gradle, as you did in your second attempt. So back to the start to find the gradle issue...
OK, the gradle build actually runs perfectly fine, as you can see when you just run gradle compileJava
:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 536ms
2 actionable tasks: 2 up-to-date`
There are only errors in the javadoc
task (creating HTML version of documentation) and the test
task (running unit tests). The test errors can be traced to these lines:
None of these errors are critical for the function of the Mo|E server, however, which is why the compilation of the whole server and the server application itself are working fine.
So your gradle build worked without updateing dependencies?
The Absence of build.sbt
has also made me a bit uneasy... however the DevSetup for Mope-Server( https://github.com/THM-MoTE/mope-server#developer-setup ) explicitly states sbt compile
.
The gradle build also works with the original dependencies. The api seems to work fine as far as we can tell
Closeing the issue for now assuming that Gradle is the way to go
Connected to https://github.com/MopeSWTP-SS21/MopeSWTP/issues/11 I've been trying to solve the problem during
sbt compile
of omc-java-api. (Error description in WIKI https://github.com/MopeSWTP-SS21/MopeSWTP/wiki/Development-Environment#mope-dev )To fix this I updated the following lines
sbt.version=1.5.0
omc-java-api/plugins.sbt
omc-java-api/build.gradle
Now I get the following feedback after
sbt compile
:Im not quite sure, but to me it looks like the Dependencies are still missing. However, when I run
gradle build
i get the following output:So i read 46 test completed, and i think you can only run the tests if you have the dependencies?
Any Ideas on how to move forward?