pom.xml 10.1 KB
Newer Older
Jean Meurice's avatar
Jean Meurice committed
1
2
3
4
5
6
7
8
<!--

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

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

-->
Jean Meurice's avatar
Jean Meurice committed
9
10
<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>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
11

12
13
14
15
    <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
16

17
    <name>rmi-model-server</name>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
18

19
    <properties>
Jean Meurice's avatar
Jean Meurice committed
20
        <!-- USE THESE TO SET THE VERSIONS OF THE DEPENDENCIES FOR ALL THE SUB-PROJECTS -->
21
        <commons.version>1.0.9</commons.version>
22
        <hardware_emulator.version>1.0.0</hardware_emulator.version>
Jean Meurice's avatar
Jean Meurice committed
23

24
        <!-- .. SE-Libraries .................................................. -->
kusmenko@se-rwth.de's avatar
update    
kusmenko@se-rwth.de committed
25
26
27
28
        <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>
29
30
31
32
        <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
33
34
35
36
        <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>
37

38
        <!-- .. Misc .......................................................... -->
kusmenko@se-rwth.de's avatar
update    
kusmenko@se-rwth.de committed
39
40
41
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
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
70
71
72
73
74
75
    </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
76
77
78

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

Jean Meurice's avatar
Jean Meurice committed
84
85
86
87
88
89
90
91
92
93
94
95
            <!-- Run the tests where the test/resources are located -->
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-M3</version>
                <configuration>
                    <workingDirectory>${project.basedir}/install</workingDirectory>
                    <forkCount>1</forkCount>
                    <reuseForks>true</reuseForks>
                    <argLine>-Xmx2048m -XX:MaxPermSize=1024m</argLine>
                </configuration>
            </plugin>

Jean Meurice's avatar
Jean Meurice committed
96
            <!-- Compiler plugin -->
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
97
98
99
100
101
102
103
104
105
106
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${compiler.plugin}</version>
                <configuration>
                    <useIncrementalCompilation>true</useIncrementalCompilation>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>

Jean Meurice's avatar
Jean Meurice committed
107
            <!-- Shade plugin: Create jar in install folder -->
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
            <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
131
            <!-- Source Jar Configuration -->
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
132
            <plugin>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
                <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>
Jean Meurice's avatar
Jean Meurice committed
153

kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
154
155
156
157
158
            <!-- 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
159
                <configuration>
Jean Meurice's avatar
Jean Meurice committed
160
                    <header>${project.baseUri}/license/se/license.txt</header>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
161
162
163
164
165
166
167
                    <properties>
                        <owner>Michael von Wenckstern</owner>
                        <email>vonwenckstern@se-rwth.de</email>
                    </properties>
                    <excludes>
                        <exclude>src/test/resources/**</exclude>
                        <exclude>src/main/resources/**</exclude>
Jean Meurice's avatar
Jean Meurice committed
168
                        <exclude>license/se/license.txt</exclude>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
169
                    </excludes>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
170
171
172
173
                </configuration>
                <executions>
                    <execution>
                        <goals>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
174
                            <goal>format</goal>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
175
                        </goals>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
176
                        <phase>process-sources</phase>
Petyo Bogdanov Ilov's avatar
Petyo Bogdanov Ilov committed
177
178
                    </execution>
                </executions>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
179
            </plugin>
Jean Meurice's avatar
Jean Meurice committed
180

kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
181
182
183
184
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
                <version>4.3.0</version>
185
                <configuration></configuration>
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
186
            </plugin>
Jean Meurice's avatar
Jean Meurice committed
187

kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
188
189
190
191
192
193
194
195
196
197
            <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>
198
            </plugin>
199

kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
200
201
202
        </plugins>
    </build>

203
204
205
206
207
208
209
210
211
212
213
    <repositories>
        <repository>
            <id>central</id>
            <url>https://repo1.maven.org/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
Jean Meurice's avatar
Jean Meurice committed
214
215
216
217
218
219
220
221
222
223
        <repository>
            <id>senexus</id>
            <url>https://nexus.se.rwth-aachen.de/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
224
225
226
227
228
229
230
231
232
233
234
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
        <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
269
270


Jean Meurice's avatar
Jean Meurice committed
271
</project>