File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ $ mvn package -pl servers/study-server -am -Dpowsybl-ws-commons.version=1.6.0-SN
27
27
[INFO] Study Server [jar]
28
28
```
29
29
30
+ ### Faster Multithreaded compile (useful for the long subsequent commands)
31
+
32
+ add ` -T 2.0C ` (optionally adjust the number of threads) to the mvn command line flags to build in parallel.
33
+ This has the downside of interleaving the output of all builds. An alternative is to use ` mvnd ` which displays
34
+ an interactive progress and dumps all the build logs at the end in the correct order and has ` -T2.0C ` on by default and starts faster.
35
+
30
36
### Full java recompile for one project and dependencies
31
37
A full java recompile for all dependent libs for one project can be done like this (adapt version numbers to match current versions in source poms)
32
38
```
@@ -106,6 +112,20 @@ $ mvn package -pl servers/study-server -am \
106
112
TODO: can the version finding be automated?
107
113
TODO: should we use .mvn/maven.config to record versions and maintain the list ?
108
114
115
+ ### Rebuild only all docker images
116
+
117
+ ```
118
+ # in maven4, aggregators automatically represent their reactor children
119
+ $ cd backend/servers
120
+ $ mvn install -Dpowsybl.docker.install
121
+ ```
122
+
123
+ ```
124
+ # maven3, semi manual hack project list with ls, to be tweaked to have the correct project list
125
+ $ cd backend/servers
126
+ $ mvn install -Dpowsybl.docker.install \
127
+ -pl $(echo $(ls -d */) | sed -e 's/ /,/g')
128
+ ```
109
129
110
130
### Full java recompile for all docker images
111
131
A full java recompile and docker image generation for all projects
You can’t perform that action at this time.
0 commit comments