pom.xml 11.1 KB
Newer Older
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
1
<!-- (c) https://github.com/MontiCore/monticore -->
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
2
3
4
5
<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>

6
7
8
9
    <groupId>montisim</groupId>
    <artifactId>rmi-model-server</artifactId>
    <version>1.1.3</version>
    <packaging>jar</packaging>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
10

11
    <name>rmi-model-server</name>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
12

13
    <properties>
Jean Meurice's avatar
Jean Meurice committed
14
        <!-- USE THESE TO SET THE VERSIONS OF THE DEPENDENCIES FOR ALL THE SUB-PROJECTS -->
15
        <commons.version>1.0.9</commons.version>
16
        <hardware_emulator.version>1.0.0</hardware_emulator.version>
Jean Meurice's avatar
Jean Meurice committed
17

18
        <!-- .. SE-Libraries .................................................. -->
kusmenko@se-rwth.de's avatar
update    
kusmenko@se-rwth.de committed
19
20
21
22
        <monticore.version>4.5.4.08.11.2017</monticore.version>
        <se-commons.version>1.7.7</se-commons.version>
        <mc.grammars.assembly.version>0.0.8</mc.grammars.assembly.version>
        <SIUnit.version>0.0.10-SNAPSHOT</SIUnit.version>
23
24
25
26
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <!-- .. Plugins ....................................................... -->
kusmenko@se-rwth.de's avatar
update    
kusmenko@se-rwth.de committed
27
28
29
30
        <monticore.plugin>4.5.3.1</monticore.plugin>
        <assembly.plugin>2.5.4</assembly.plugin>
        <compiler.plugin>3.3</compiler.plugin>
        <source.plugin>2.4</source.plugin>
31

32
        <!-- .. Misc .......................................................... -->
kusmenko@se-rwth.de's avatar
update    
kusmenko@se-rwth.de committed
33
34
35
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>3.4.6</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>com.101tec</groupId>
            <artifactId>zkclient</artifactId>
            <version>0.2</version>
        </dependency>
        <dependency>
            <groupId>montisim</groupId>
            <artifactId>commons</artifactId>
            <version>${commons.version}</version>
        </dependency>
        <dependency>
            <groupId>montisim</groupId>
            <artifactId>hardware_emulator</artifactId>
            <version>${hardware_emulator.version}</version>
        </dependency>
    </dependencies>

    <!-- == PROJECT BUILD SETTINGS =========================================== -->
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
70
71
72

    <build>
        <plugins>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
73
74
75
            <plugin>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.1</version>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
76
77
78
79
80
81
82
            </plugin>

            <!-- MontiCore Generation -->
            <plugin>
                <groupId>de.monticore.mojo</groupId>
                <artifactId>monticore-maven-plugin</artifactId>
                <version>${monticore.plugin}</version>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
83
                <configuration>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
84
85
                    <skip>false</skip>
                    <script>de/monticore/monticore_noemf.groovy</script>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
86
                </configuration>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
                <dependencies>
                    <dependency>
                        <groupId>org.antlr</groupId>
                        <artifactId>antlr4</artifactId>
                        <version>4.7.1</version>
                    </dependency>
                    <!-- https://mvnrepository.com/artifact/org.antlr/antlr4-runtime -->
                    <dependency>
                        <groupId>org.antlr</groupId>
                        <artifactId>antlr4-runtime</artifactId>
                        <version>4.7.1</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Other Configuration -->
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${compiler.plugin}</version>
                <configuration>
                    <useIncrementalCompilation>true</useIncrementalCompilation>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>

120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.1.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <minimizeJar>true</minimizeJar>
                            <transformers>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <mainClass>de.rwth.monticore.EmbeddedMontiArc.simulators.rmimodelserver.RMIServer</mainClass>
                                </transformer>
                            </transformers>
                            <outputFile>${project.basedir}/install/${project.name}.jar</outputFile>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
143
            <!-- Source Jar Configuration -->
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
144
            <plugin>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>${source.plugin}</version>
                <executions>
                    <execution>
                        <id>create source jar</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                        <configuration>
                            <excludeResources>false</excludeResources>
                            <includes>
                                <include>**/*.java</include>
                                <include>**/*.ftl</include>
                            </includes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- to add copyright information automatically-->
            <plugin>
                <groupId>com.mycila</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>3.0</version>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
170
                <configuration>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
171
172
173
174
175
176
177
178
179
180
181
                    <header>${project.baseUri}/src/license/se/license.txt</header>
                    <properties>
                        <owner>Michael von Wenckstern</owner>
                        <email>vonwenckstern@se-rwth.de</email>
                    </properties>
                    <excludes>
                        <exclude>**/README</exclude>
                        <exclude>src/test/resources/**</exclude>
                        <exclude>src/main/resources/**</exclude>
                        <exclude>src/license/**</exclude>
                    </excludes>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
182
183
184
185
                </configuration>
                <executions>
                    <execution>
                        <goals>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
186
                            <goal>format</goal>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
187
                        </goals>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
188
                        <phase>process-sources</phase>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
189
190
                    </execution>
                </executions>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
191
192
193
194
195
            </plugin>
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
                <version>4.3.0</version>
196
                <configuration></configuration>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
197
198
199
200
201
202
203
204
205
206
207
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.7</version>
                <configuration>
                    <format>xml</format>
                    <maxmem>256m</maxmem>
                    <!-- aggregated reports for multi-module projects -->
                    <aggregate>true</aggregate>
                </configuration>
208
            </plugin>
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231

            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>server.rpc.RpcServer</mainClass>
                        </manifest>
                    </archive>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                </configuration>
            </plugin>

kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
232
233
234
        </plugins>
    </build>

235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
    <repositories>
        <repository>
            <id>central</id>
            <url>https://repo1.maven.org/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>eclipse</id>
            <url>https://repo.eclipse.org/content/groups/releases/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>jcenter</id>
            <url>https://jcenter.bintray.com/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>topobyte</id>
            <url>http://mvn.topobyte.de/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>



    <!-- == DISTRIBUTION ==================================================== -->

    <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>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
292
293


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