pom.xml 10.8 KB
Newer Older
hengwen's avatar
hengwen committed
1
<?xml version="1.0" encoding="UTF-8"?>
Jean Meurice's avatar
Jean Meurice committed
2
3
4
5
6
7
8
9
<!--

    (c) https://github.com/MontiCore/monticore

    The license generally applicable for this project
    can be found under https://github.com/MontiCore/monticore.

-->
hengwen's avatar
hengwen committed
10
11
12
13
14
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

hengwen's avatar
hengwen committed
15
    <groupId>montisim-server</groupId>
hengwen's avatar
hengwen committed
16
    <artifactId>rpc</artifactId>
hengwen's avatar
hengwen committed
17
    <version>${revision}</version>
hengwen's avatar
hengwen committed
18

hengwen's avatar
hengwen committed
19
    <properties>
hengwen's avatar
hengwen committed
20
        <revision>2.2.4</revision>
Jean Meurice's avatar
Jean Meurice committed
21
22
        <montisim.commons.version>1.0.11</montisim.commons.version>
        <montisim.simulation.version>2.0.4</montisim.simulation.version>
Jean Meurice's avatar
Jean Meurice committed
23
        <montisim.controller.version>1.0.4</montisim.controller.version>
Jean Meurice's avatar
Jean Meurice committed
24
        <montisim.carlang.version>1.0.2</montisim.carlang.version>
Jean Meurice's avatar
Upgrage    
Jean Meurice committed
25
        <montisim.rmimodelserver.version>1.1.4</montisim.rmimodelserver.version>
hengwen's avatar
hengwen committed
26
27
28
29
30
31
32
    </properties>

    <dependencies>
        <!-- RMI -->
        <dependency>
            <groupId>montisim</groupId>
            <artifactId>rmi-model-server</artifactId>
Jean Meurice's avatar
Upgrage    
Jean Meurice committed
33
            <version>${montisim.rmimodelserver.version}</version>
hengwen's avatar
hengwen committed
34
35
36
37
38
39
        </dependency>

        <!--simulation relatives-->
        <dependency>
            <groupId>montisim-simulation</groupId>
            <artifactId>environment</artifactId>
hengwen's avatar
hengwen committed
40
            <version>${montisim.simulation.version}</version>
hengwen's avatar
hengwen committed
41
42
43
44
        </dependency>
        <dependency>
            <groupId>montisim-simulation</groupId>
            <artifactId>vehicle</artifactId>
hengwen's avatar
hengwen committed
45
46
            <!--<version>1.0.7</version>-->
            <version>${montisim.simulation.version}</version>
hengwen's avatar
hengwen committed
47
48
49
50
        </dependency>
        <dependency>
            <groupId>montisim-simulation</groupId>
            <artifactId>sensors</artifactId>
hengwen's avatar
hengwen committed
51
            <version>${montisim.simulation.version}</version>
hengwen's avatar
hengwen committed
52
53
54
55
        </dependency>
        <dependency>
            <groupId>montisim-simulation</groupId>
            <artifactId>network</artifactId>
hengwen's avatar
hengwen committed
56
            <version>${montisim.simulation.version}</version>
hengwen's avatar
hengwen committed
57
58
59
60
        </dependency>
        <dependency>
            <groupId>montisim-simulation</groupId>
            <artifactId>util</artifactId>
hengwen's avatar
hengwen committed
61
            <version>${montisim.simulation.version}</version>
hengwen's avatar
hengwen committed
62
63
64
65
        </dependency>
        <dependency>
            <groupId>montisim-simulation</groupId>
            <artifactId>simulator</artifactId>
hengwen's avatar
hengwen committed
66
            <version>${montisim.simulation.version}</version>
hengwen's avatar
hengwen committed
67
68
69
70
71
        </dependency>

        <dependency>
            <groupId>montisim</groupId>
            <artifactId>commons</artifactId>
Jean Meurice's avatar
Jean Meurice committed
72
            <version>${montisim.commons.version}</version>
hengwen's avatar
hengwen committed
73
        </dependency>
hengwen's avatar
hengwen committed
74
75
76
77
78
79
80

        <dependency>
            <groupId>de.se_rwth.commons</groupId>
            <artifactId>se-commons-logging</artifactId>
            <version>1.7.8</version>
        </dependency>

hengwen's avatar
hengwen committed
81
82
83
        <dependency>
            <groupId>montisim-controller</groupId>
            <artifactId>library</artifactId>
Jean Meurice's avatar
Jean Meurice committed
84
            <version>${montisim.controller.version}</version>
hengwen's avatar
hengwen committed
85
86
87
88
        </dependency>
        <dependency>
            <groupId>montisim-controller</groupId>
            <artifactId>control</artifactId>
Jean Meurice's avatar
Jean Meurice committed
89
            <version>${montisim.controller.version}</version>
hengwen's avatar
hengwen committed
90
91
92
93
        </dependency>
        <dependency>
            <groupId>montisim-controller</groupId>
            <artifactId>navigation</artifactId>
Jean Meurice's avatar
Jean Meurice committed
94
            <version>${montisim.controller.version}</version>
hengwen's avatar
hengwen committed
95
96
        </dependency>
        <dependency>
hengwen's avatar
hengwen committed
97
            <groupId>org.apache.commons</groupId>
hengwen's avatar
hengwen committed
98
99
            <artifactId>commons-lang3</artifactId>
            <version>3.8.1</version>
hengwen's avatar
hengwen committed
100
        </dependency>
hengwen's avatar
hengwen committed
101
102


hengwen's avatar
hengwen committed
103
        <dependency>
hengwen's avatar
hengwen committed
104
105
106
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.6</version>
hengwen's avatar
hengwen committed
107
108
109
110
111
        </dependency>

        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-netty-shaded</artifactId>
112
            <version>1.19.0</version>
hengwen's avatar
hengwen committed
113
114
115
116
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-protobuf</artifactId>
117
            <version>1.19.0</version>
hengwen's avatar
hengwen committed
118
119
120
121
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-stub</artifactId>
122
            <version>1.19.0</version>
hengwen's avatar
hengwen committed
123
124
125
126
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>protoc-gen-grpc-java</artifactId>
127
            <version>1.19.0</version>
hengwen's avatar
hengwen committed
128
129
130
131
132
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-testing</artifactId>
133
            <version>1.19.0</version>
hengwen's avatar
hengwen committed
134
135
            <type>pom</type>
        </dependency>
136
137
138
139
140
141
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-testing</artifactId>
            <version>1.19.0</version>
            <scope>test</scope>
        </dependency>
hengwen's avatar
hengwen committed
142

hengwen's avatar
hengwen committed
143
144
145
146
147
        <!--For unittest-->
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>2.27.0</version>
hengwen's avatar
hengwen committed
148
149
150
151
152
153
154
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-csv</artifactId>
            <version>1.1</version>
hengwen's avatar
hengwen committed
155
156
        </dependency>

hengwen's avatar
hengwen committed
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
        <!--Simulator have an observer that is able to dump simulation result into a JSON file-->
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
            <version>1.1.1</version>
        </dependency>

        <!--Kafka dependencies for simulation result persistence-->
        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka_2.12</artifactId>
            <version>2.1.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka-clients</artifactId>
            <version>2.1.0</version>
        </dependency>


        <!--resolve a wired version issue in grpc-->
178
        <!--<dependency>
hengwen's avatar
hengwen committed
179
180
181
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>27.0.1-jre</version>
182
183
184
185
186
187
188
189
190
191
192
193
194
        </dependency>-->

        <!-- https://mvnrepository.com/artifact/log4j/log4j -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>


        <dependency>
            <groupId>de.monticore.lang.montisim</groupId>
            <artifactId>CarLang</artifactId>
Jean Meurice's avatar
Jean Meurice committed
195
            <version>${montisim.carlang.version}</version>
hengwen's avatar
hengwen committed
196
        </dependency>
hengwen's avatar
hengwen committed
197

198

hengwen's avatar
hengwen committed
199
200
201
202
    </dependencies>

    <build>
        <!--auto-protobuf java code generation-->
203
204
205
206
207
208
209
210
211
<!--        uncomment to generate protobuf code using maven-->
<!--        <extensions>-->
<!--            <extension>-->
<!--                <groupId>kr.motd.maven</groupId>-->
<!--                <artifactId>os-maven-plugin</artifactId>-->
<!--                <version>1.5.0.Final</version>-->
<!--            </extension>-->
<!--        </extensions>-->

hengwen's avatar
hengwen committed
212
213
214
215
216
217
218
219
220
221
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241

<!--        uncomment to generate protobuf code using maven -->
<!--            <plugin>-->
<!--                <groupId>org.xolstice.maven.plugins</groupId>-->
<!--                <artifactId>protobuf-maven-plugin</artifactId>-->
<!--                <version>0.5.1</version>-->
<!--                <configuration>-->
<!--                    <protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact>-->
<!--                    <pluginId>grpc-java</pluginId>-->
<!--                    <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.16.1:exe:${os.detected.classifier}</pluginArtifact>-->
<!--                </configuration>-->
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <goals>-->
<!--                            <goal>compile</goal>-->
<!--                            <goal>compile-custom</goal>-->
<!--                        </goals>-->
<!--                    </execution>-->
<!--                </executions>-->
<!--            </plugin>-->
hengwen's avatar
hengwen committed
242
243

            <plugin>
hengwen's avatar
hengwen committed
244
                <artifactId>maven-assembly-plugin</artifactId>
hengwen's avatar
hengwen committed
245
246
247
248
249
250
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>server.rpc.RpcServer</mainClass>
                        </manifest>
                    </archive>
hengwen's avatar
hengwen committed
251
252
253
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
Jean Meurice's avatar
Upgrage    
Jean Meurice committed
254
                    <!-- <finalName>${project.name}</finalName>
Jean Meurice's avatar
Tweaks    
Jean Meurice committed
255
                    <appendAssemblyId>false</appendAssemblyId>
Jean Meurice's avatar
Upgrage    
Jean Meurice committed
256
                    <outputDirectory>${project.basedir}/install</outputDirectory> -->
hengwen's avatar
hengwen committed
257
                </configuration>
hengwen's avatar
hengwen committed
258
259
260
261
262
263
264
265
266
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
hengwen's avatar
hengwen committed
267
            </plugin>
Jean Meurice's avatar
Jean Meurice committed
268
            
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.1.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <!--to be imported on other projects-->
                            <classifier>error-flag</classifier>
                            <includes>
                                <include>**/ErrorFlag.class</include>
                            </includes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
hengwen's avatar
hengwen committed
289
        </plugins>
Jean Meurice's avatar
Upgrage    
Jean Meurice committed
290
        <finalName>rpc</finalName>
hengwen's avatar
hengwen committed
291
    </build>
Pascal Maurice Porta's avatar
Pascal Maurice Porta committed
292
293
294
295
296
297
298
299
300
301
302
303
    
        <distributionManagement>
        <repository>
            <id>se-nexus</id>
            <url>https://nexus.se.rwth-aachen.de/content/repositories/embeddedmontiarc-releases/</url>
        </repository>
        <snapshotRepository>
            <id>se-nexus</id>
            <url>https://nexus.se.rwth-aachen.de/content/repositories/embeddedmontiarc-snapshots/</url>
        </snapshotRepository>
    </distributionManagement>

hengwen's avatar
hengwen committed
304

Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
305
</project>