Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f3e8db98876e353490daac8a74a0d42d5a253e53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
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
<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.eclipse.viatra.examples.cps</groupId>
	<artifactId>org.eclipse.viatra.examples.cps.parent</artifactId>
	<version>0.1.0-SNAPSHOT</version>
	<name>CPS Demonstrator</name>
	<url></url>
	<packaging>pom</packaging>
	<modules>
		<!-- Target platform -->
		<module>releng/org.eclipse.viatra.examples.cps.target</module>

		<!-- Domains -->
		<module>releng/org.eclipse.viatra.examples.cps.domain.parent</module>

		<!-- Generator -->
		<module>generator/org.eclipse.viatra.examples.cps.generator</module>
		<module>generator/org.eclipse.viatra.examples.cps.planexecutor</module>

		<!-- Queries -->
		<module>queries/org.eclipse.viatra.examples.cps.queries</module>

		<!-- Addons -->
		<module>addons/org.eclipse.viatra.examples.cps.queries.validation</module>
		<module>addons/org.eclipse.viatra.examples.cps.mwe2integration.example</module>
		

		<!-- M2M Transformations -->
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.launcher</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.util</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.batch.simple</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.batch.optimized</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.batch.eiq</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.batch.viatra</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.incr.expl</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.incr.qrt</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.incr.aggr</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2m.incr.viatra</module>

		<!-- M2T Transformations -->
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2t</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2t.distributed</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.m2t.jdt</module>
		
		<!-- Serializers -->
		<module>transformations/org.eclipse.viatra.examples.cps.xform.serializer</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.serializer.eclipse</module>
		<module>transformations/org.eclipse.viatra.examples.cps.xform.serializer.javaio</module>
		
		<!--  Application -->
		<module>application/org.eclipse.viatra.examples.cps.application.ui</module>
		<module>releng/org.eclipse.viatra.examples.cps.application.dependencies.feature</module>
		<module>releng/org.eclipse.viatra.examples.cps.application.feature</module>
		<module>releng/org.eclipse.viatra.examples.cps.application.product</module>
		
		<!-- Tests -->
		<module>tests/org.eclipse.viatra.examples.cps.generator.tests</module>
		<module>tests/org.eclipse.viatra.examples.cps.tests.util</module>
		<module>tests/org.eclipse.viatra.examples.cps.xform.m2m.tests</module>
		<module>tests/org.eclipse.viatra.examples.cps.xform.m2t.tests</module>
		<module>tests/org.eclipse.viatra.examples.cps.xform.serializer.test</module>
		
		<!--  p2 repository -->
		<module>releng/org.eclipse.viatra.examples.cps.update</module>
	</modules>
	<profiles>
		<profile>
			<id>cps.view.gef5</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<modules>
				<module>addons/org.eclipse.viatra.examples.cps.view</module>
			</modules>
		</profile>
	</profiles>
	<properties>
		<tycho.version>1.0.0</tycho.version>
		<xtend.compiler.version>2.10.0</xtend.compiler.version>
		<viatra.repository.url>http://download.eclipse.org/viatra/updates/integration</viatra.repository.url>
		<viatra.compiler.version>1.7.0-SNAPSHOT</viatra.compiler.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<java.version>1.7</java.version>
		<maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>
	</properties>
	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-packaging-plugin</artifactId>
				<version>${tycho.version}</version>
				<configuration>
					<strictBinIncludes>false</strictBinIncludes>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-maven-plugin</artifactId>
				<version>${tycho.version}</version>
				<extensions>true</extensions>
			</plugin>
			<plugin>
		        <artifactId>maven-toolchains-plugin</artifactId>
		    </plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>target-platform-configuration</artifactId>
				<version>${tycho.version}</version>
				<configuration>
					<target>
						<artifact>
							<groupId>org.eclipse.viatra.examples.cps</groupId>
							<artifactId>org.eclipse.viatra.examples.cps.target</artifactId>
							<version>${project.version}</version>
							<relativePath>releng/org.eclipse.viatra.examples.cps.target/pom.xml</relativePath>
						</artifact>
					</target>
					<environments>
						<environment>
							<os>win32</os>
							<ws>win32</ws>
							<arch>x86_64</arch>
						</environment>
						<environment>
							<os>linux</os>
							<ws>gtk</ws>
							<arch>x86_64</arch>
						</environment>
						<environment>
							<os>macosx</os>
							<ws>cocoa</ws>
							<arch>x86_64</arch>
						</environment>
					</environments>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-surefire-plugin</artifactId>
				<version>${tycho.version}</version>
				<configuration>
					<!-- <argLine>-Xmx2048m -XX:MaxPermSize=256m ${tycho.testArgLine} ${cps.test.vmargs}</argLine> -->
					<excludes>
		            	<exclude>**/IntegrationTest*.java</exclude>
						<exclude>**/integration/*.java</exclude>
						<exclude>**/scenarios/*.java</exclude>
						<exclude>**/queries/*.java</exclude>
		            </excludes>
		            <failIfNoTests>false</failIfNoTests>
				</configuration>
				<!-- <executions>
		         <execution>
		            <id>unit-test</id>
		            <goals>
		              <goal>test</goal>
		            </goals>
		            <phase>test</phase>
		            <configuration>
		            	<excludes>
		            		<exclude>**/IntegrationTest*.java</exclude>
		            	</excludes>
		            	<includes>
		            		<include>**/*Test.java</include>
		            	</includes>
		            </configuration>
		          </execution>
		        </executions> -->
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-toolchains-plugin</artifactId>
                    <version>1.1</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>toolchain</goal>
                            </goals>
                            <configuration>
                             <toolchains>
                                 <jdk>
                                     <id>JavaSE-${java.version}</id>
                                 </jdk>
                             </toolchains>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
			     <plugin>
                    <groupId>org.eclipse.tycho</groupId>
                    <artifactId>tycho-compiler-plugin</artifactId>
                    <version>${tycho.version}</version>
                    <configuration>
                        <source>${java.version}</source>
                        <target>${java.version}</target>
                        <!-- add JavaFX to classpath (jfxswt.jar for Java 8) -->
                        <extraClasspathElements>
                            <extraClasspathElement>
                                <groupId>com.oracle</groupId>
                                <artifactId>javafxswt</artifactId>
                                <version>8.0.0-SNAPSHOT</version>
                                <systemPath>${java.home}/lib/jfxswt.jar</systemPath>
                                <scope>system</scope>
                            </extraClasspathElement>
                        </extraClasspathElements>
                        <useJDK>BREE</useJDK>
                        <useProjectSettings>true</useProjectSettings>
                        <excludeResources>
                            <excludeResource>**/.gitignore</excludeResource>
                        </excludeResources>
                        <compilerArgs>
                          <compilerArg>-err:-forbidden</compilerArg>
                        </compilerArgs>
                    </configuration>
                </plugin>
				<plugin>
					<groupId>org.eclipse.xtend</groupId>
					<artifactId>xtend-maven-plugin</artifactId>
					<version>${xtend.compiler.version}</version>
					<configuration>
						<!-- need to prefix by basedir to generate to currently built module -->
						<outputDirectory>${basedir}/xtend-gen</outputDirectory>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-clean-plugin</artifactId>
					<version>2.5</version>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<repositories>
		<repository>
			<id>viatra.update</id>
			<layout>p2</layout>
			<url>${viatra.repository.url}</url>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>viatra-snapshots</id>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<url>https://repo.eclipse.org/content/repositories/viatra-snapshots/</url>
		</pluginRepository>
	</pluginRepositories>
</project>

Back to the top