Skip to content

Commit a976b18

Browse files
author
Nicolai Parlog
committed
Mavenize project (remove .idea directory)
1 parent 7a7da2b commit a976b18

24 files changed

+428
-286
lines changed

.gitignore

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
1-
.idea/workspace.xml
2-
.idea/kotlinc.xml
3-
/out
4-
/classes
5-
/mods
1+
# scripts
2+
classes/
3+
mods/
4+
5+
### Maven ###
6+
target/
7+
mods-mvn/
8+
9+
# Eclipse
10+
.metadata
11+
bin/
12+
tmp/
13+
*.tmp
14+
*.bak
15+
*.swp
16+
*~.nib
17+
local.properties
18+
.settings/
19+
.loadpath
20+
.recommenders
21+
*.launch
22+
.project
23+
.classpath
24+
25+
# Intellij
26+
.idea
27+
*.iws
28+
out
29+
*.iml
30+
modules.xml
31+
32+
# NetBeans
33+
nbproject/private/
34+
build/
35+
nbbuild/
36+
dist/
37+
nbdist/
38+
.nb-gradle/

.idea/codeStyleSettings.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.idea/dictionaries/nipa.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.idea/encodings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.idea/monitor.iml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.idea/monitor.observer.alpha.iml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/monitor.observer.beta.iml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/monitor.observer.iml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/monitor.persistence.iml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/monitor.rest.iml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.idea/monitor.statistics.iml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/uiDesigner.xml

Lines changed: 0 additions & 124 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,35 @@ Then there are some branches that explore how things can break:
3131

3232
## Setup
3333

34-
This demo was developed against build 158 of the [Jigsaw early access prototype](https://jdk9.java.net/jigsaw/).
35-
For it to work the Java 9 variants of `javac`, `jar`, and `java` must be available on the command line via `javac9`, `jar9`, and `java9`, e.g. by symlinking them.
34+
This demo was developed against JDK 9+181 (first official version of [Java 9](http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html)).
35+
For it to work, the Java 9 variants of `javac`, `jar`, and `java` must be available on the command line via `javac9`, `jar9`, and `java9`, e.g. by symlinking ([Linux, MacOS](https://stackoverflow.com/q/1951742/2525313), [Windows](https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/)) them.
3636

37-
The root directory contains a number of shell scripts:
37+
This is a multi-module Maven project, which your IDE should be able to import. If you're using Maven directly, make sure you have 3.5.0 or higher.
38+
39+
40+
## Build and Execution
41+
42+
This being a Maven project means you can build and run with with Maven, but to really see how the module system works, I recommend to use the scripts.
43+
44+
### Maven
45+
46+
To build and run with Maven execute the following in the project's root:
47+
48+
```
49+
mvn clean install
50+
mvn exec:exec -pl .
51+
```
52+
53+
Unfortunately, Jetty doesn't come up due to a `NoClassDefFoundError` (of `org.eclipse.jetty.http.pathmap.PathSpec`).
54+
Need to inspect that...
55+
56+
### Scripts
57+
58+
The root directory contains a number of Linux shell scripts:
3859

3960
* `compile.sh`: compiles the modules one by one
4061
* `multi-compile.sh`: compiles all modules at once
41-
* `dry-run`: launches the application with `--dry-run`, which aborts before calling the main method
42-
* `run`: launches the application
62+
* `dry-run.sh`: launches the application with `--dry-run`, which aborts before calling the main method
63+
* `run.sh`: launches the application
4364

44-
To reduce setup efforts for IntelliJ users, I decided to leave my `.idea` folder in here.
45-
Let's see whether it helps...
65+
Adapting them for Windows should be straight forwards except for where `$(find ...)` is used, which you might have to replace with a list of the actual files.

0 commit comments

Comments
 (0)