-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ You have to install the [same requirements](/docs/getting_started/#additional-so | |
|
||
### Get the code | ||
|
||
Please find the MOSAIC code in the Github repository [here](https://github.com/eclipse/mosaic). Let's say you would like to contribute your changes, so you fork the repository first, and read [guideline how to contribute](https://github.com/eclipse/mosaic/blob/main/CONTRIBUTING.md). | ||
Please find the MOSAIC code in the GitHub repository [here](https://github.com/eclipse/mosaic). Let's say you would like to contribute your changes, so you fork the repository first, and read [guideline how to contribute](https://github.com/eclipse/mosaic/blob/main/CONTRIBUTING.md). | ||
|
||
```bash | ||
git clone [email protected]:<github-username>/mosaic.git eclipse-mosaic | ||
|
@@ -37,18 +37,17 @@ mvn clean install | |
The entry class `MosaicStarter` has a lot of dependencies which need to be referenced during startup, so we recommend that you use the package functionality of maven and then run the bundle. Everything else would be overly complicated. Also, we don't build "fat jars" so you won't be able to run any jar directly. The following is almost the same procedure as presented in the non-developer guides, just that you build the bundle locally. | ||
|
||
- Run `mvn clean install` | ||
- Unzip one of the `bundle/target/eclipse-mosaic-24.1-SNAPSHOT.*` archives to a destination of your choice | ||
- Unzip one of the `bundle/target/eclipse-mosaic-{{< version of="mosaic_snapshot" >}}.zip/tar` archives to a destination of your choice | ||
- Run the `mosaic.sh/bat` files, which will do all the magic for you (have a look inside if you ask yourself if there's a more direct way to start from console). | ||
|
||
### Use IntelliJ IDEA | ||
|
||
- Start IntelliJ IDEA and choose `Open or Import` (see figure 1). | ||
- Start IntelliJ IDEA and choose `Open or Import` (see Figure 1). | ||
- Choose the cloned `eclipse-mosaic` repository | ||
- For IntelliJ there's already a [pre-defined run configuration](https://github.com/eclipse/mosaic/blob/main/rti/mosaic-starter/MosaicStarter.run.xml) in the repo which should work right away when you run it (see figure 2). | ||
- For IntelliJ there's already a [pre-defined run configuration](https://github.com/eclipse/mosaic/blob/main/rti/mosaic-starter/MosaicStarter.run.xml) in the repo which should work right away when you run it (see Figure 2). | ||
|
||
Good to know: | ||
- When changing any pom.xml you need to: `Rightclick on root-module > Maven > Reload project` | ||
- When making changes to `runtime.json | logback.xml | hosts.json` you need to re-run `mvn validate`, in order to copy them into the target folder. | ||
- When changing any `pom.xml` you need to: `Rightclick on root-module > Maven > Reload project` | ||
|
||
{{< figure src="images/open-project.png" title="Open the project" numbered="true" width="300">}} | ||
{{< figure src="images/run.png" title="Run MosaicStarter" numbered="true" width="400" >}} | ||
|
@@ -57,8 +56,15 @@ Good to know: | |
|
||
Given that you execute the code from source, some important file locations change: | ||
|
||
| Bundled | From Source | | ||
| :------------- | :------------- | | ||
| Bundled | From Source | | ||
|:--------------------------|:--------------------------------------------------------| | ||
| `<mosaic-root>/scenarios` | `<mosaic-root>/bundle/src/assembly/resources/scenarios` | | ||
| `<mosaic-root>/etc` | `<mosaic-root>/rti/mosaic-starter/target/classes/etc` | | ||
| `<mosaic-root>/logs` | `<mosaic-root>/rti/mosaic-starter/logs` | | ||
| `<mosaic-root>/etc` | `<mosaic-root>/rti/mosaic-starter/etc` | | ||
| `<mosaic-root>/logs` | `<mosaic-root>/rti/mosaic-starter/logs` | | ||
|
||
### Combine Mosaic (Windows IntelliJ IDE) with ns3 (WSL) | ||
|
||
- In your WSL environment, download the `eclipse-mosaic-{{< version of="mosaic_snapshot" >}}.zip/tar` and install ns-3 and federate ( | ||
using `ns3_installer.sh`). | ||
- Copy the resulting `bin` folder (with the fully compiled ns3) into the `eclipse-mosaic/rti/mosaic-starter` folder | ||
- Now it should behave as if you run everything from WSL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters