How to build cloudsimplus source and cloudsimplus-examples together #420
-
Hi all, I'm trying to merge the two maven projects (cloudsimplus and cloudsimplus-examples) so that I can skim through the simulator source code while trying the examples using the search functionality of VSCode - much like I would do with original cloudsim, since both the simulator and the examples are bundled under the same gradle/maven project. However, I have zero experience with such building tools, can you give me a help? I tried creating a new folder containing both source codes (simulator and examples) and merging the related maven projects via a multi-module root pom.xml, but it didn't work Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
Hello @deRemo You can create a multi-module project by introducing a new pom.xml file inside the root folder where you place both API and examples project. The release 7.2.0 has exactly this file you can copy. If you use IntelliJ, you can just open the root folder that you can navigate and build both projects. But keep in mind that you don't need to change the framework code to create your simulations. You're expected to just extend existing classes if you need to implement some new feature. If you are changing the framework code, you're probably doing something wrong. If you do that, you endup with a custom version of the framework that will be difficult to update when new official versions are released. |
Beta Was this translation helpful? Give feedback.
-
You are right, but I'm no maven expert and I would like to work on the internals for bug-fixing.
|
Beta Was this translation helpful? Give feedback.
-
Hi @manoelcampos, I used the pom.xml that you linked me, changed the module names (cloudsim-plus -> cloudsimplus) and removed the ones I don't need. However, cloudsimplus-examples is still tied to the maven's version of cloudsimplus, it seems like I necessarily have to make the changes I was saying above, unless I'm missing something. |
Beta Was this translation helpful? Give feedback.
-
To make sure that Intellij jumps to the source code, instead of the compiled classes:
|
Beta Was this translation helpful? Give feedback.
-
您好!您发的邮件我已收到!
|
Beta Was this translation helpful? Give feedback.
Hello @deRemo
You can create a multi-module project by introducing a new pom.xml file inside the root folder where you place both API and examples project. The release 7.2.0 has exactly this file you can copy.
If you use IntelliJ, you can just open the root folder that you can navigate and build both projects.
But keep in mind that you don't need to change the framework code to create your simulations. You're expected to just extend existing classes if you need to implement some new feature. If you are changing the framework code, you're probably doing something wrong. If you do that, you endup with a custom version of the framework that will be difficult to update when new official versi…