-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Unable to run the sample project with the given steps #13
Comments
Have you removed the spring-boot-maven-plugin plugin from the POM's before you installed the backends to your local maven repository as described in the note in step 2? I know this is an ugly workaround. But the reflections library does not find the classes for Spring Boot JARs automatically because of the BOOT-INF folder. Also maybe try it with the new release 1.4.0 (I updated the reflections library). However, the workaround above is still needed. Best regards, |
Hi @stefan-ka Yes, I had already tried removing 'spring-boot-maven-plugin' from the pom.xml files. Regards, |
Interesting. I reproduced the steps and it works for me. Which Java version are you using @ravindrasubedi? |
@stefan-ka I am using JDK 1.8 |
@ravindrasubedi |
Dear @stefan-ka I would like to follow up on this open issue. I'm currently working on LakesideMutual and wanted to try out the discovery function of your Context Mapper. I followed the detailed steps in your README but the discovery function is failing, but with a different error message than @ravindrasubedi experienced. My system:
My Procedure: Now I'm by no means an expert in gradle, I tried to resolve the following issue by adding an additional repository to your gradle build file according to the official gradle central websites: The resulting code snippet from the gradle file is:
Now the issue kept coming up, that is why I turned to an extra maven project. The resulting Java class: The resulting pom file: I removed the Spring Boot Maven Plugin from each backend project and build them all with The stacktrace mentions that multiple slf4j bindings were found, I have removed to URLs because they contain paths from my personal machine. The question arises, might these bindings be the problem? In case you need further details feel free to contact me. |
Hi @j-ruch Should be fixed now ;) Could you check whether it works for you as well? The problem were just some outdated dependencies in the Gradle build; we haven't touched the project for a while. Best regards, |
Hi @stefan-ka thanks a lot for the quick support! I performed the following actions:
The file 'gradle-wrapper.properties' in the inner LakesideMutual Example project contains the following line:
IntelliJ automatically installed the correct, pre-defined JDK via built-in Amazon Corretto JDK. The build worked out fine. But I received the following error while executing the main class 'LakesideMutualContextMapDiscoverer' I assumed that there might be a problem with the built-in JDK 11 and switched to OpenJDK 20 back again. I had to update Gradle to 8.10. I saw that you changed the ''gradle-wrapper.properties in the outer project. Thus I changed it to the latest gradle release in the inner 'gradle-wrapper.properties':
This update led to a new issue (see stacktrace attachement): I had to update the 'gradle.build' file to use a new specification for the JDK and remove the force attribute for the mime pull dependency. (see file attachement with the new build file, change the file ending to .gradle again) Then the build worked with a JDK20 and Gradle 8.10. |
Hi @j-ruch Sorry, I totally forgot about the LakesideMutual example. I updated Gradle now and for me, at least with Java 11, it seams to work again. The main() still fails with some formatting exceptions but at least it produces a CML-file. Sorry, thats what I can do today... There are still issues to be solved for newer Java versions and with the CML formatting. But maybe you can also generate a CML file now? Best regards, |
Hi @stefan-ka It would be great if you would find the time to fix the setup entirely somewhen. In case you need any further help, you can send me a message to verify it on my end. |
I have followed the steps to run the given example.
However I am getting below error :
15:03:03.939 [main] WARN org.reflections.Reflections - given scan urls are empty. set urls in the configuration
Exception in thread "main" java.lang.IllegalArgumentException: The Context Map must at least contain one Bounded Context to be serialized!
at org.contextmapper.discovery.ContextMapSerializer.serializeContextMap(ContextMapSerializer.java:42)
at com.tcs.isn.LakesideMutualContextMapDiscoverer.main(LakesideMutualContextMapDiscoverer.java:48)
The text was updated successfully, but these errors were encountered: