pom.xml 14.1 KB
Newer Older
Christophe Demarey's avatar
Christophe Demarey committed
1
2
3
4
<?xml version="1.0"?>
<!--
  * OW2 FraSCAti Examples: Parent module
  *
5
  * Copyright (c) 2009-2010 INRIA, University of Lille 1
Christophe Demarey's avatar
Christophe Demarey committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
  * version 2 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  * Contact: frascati@ow2.org
  *
  * Author: Nicolas Dolet
  *
25
  * Contributor(s): Philippe Merle, Christophe Demarey, Clement Quinton
Christophe Demarey's avatar
Christophe Demarey committed
26
27
-->

28
<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/maven-v4_0_0.xsd">
Christophe Demarey's avatar
Christophe Demarey committed
29
30
  <modelVersion>4.0.0</modelVersion>
  
Christophe Demarey's avatar
Christophe Demarey committed
31
32
33
  <parent>
    <groupId>org.ow2.frascati</groupId>
    <artifactId>parent</artifactId>
34
    <version>1.4-SNAPSHOT</version>
Christophe Demarey's avatar
Christophe Demarey committed
35
36
  </parent>
  
37
38
39
40
41
42
  <groupId>org.ow2.frascati.examples</groupId>
  <artifactId>parent</artifactId>
  <packaging>pom</packaging>
  
  <name>OW2 FraSCAti Examples</name>
  
Christophe Demarey's avatar
Christophe Demarey committed
43
44
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45
    <logging.conf.file>../logging.properties</logging.conf.file>
46
    <org.ow2.frascati.class>org.ow2.frascati.FraSCAti</org.ow2.frascati.class>
47
    <org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAti</org.ow2.frascati.bootstrap>
48
    <org.ow2.frascati.composite>org.ow2.frascati.FraSCAti</org.ow2.frascati.composite>
Christophe Demarey's avatar
Christophe Demarey committed
49
50
  </properties>
  
Christophe Demarey's avatar
Christophe Demarey committed
51
52
53
54
  <!-- ===== -->
  <!-- Build -->
  <!-- ===== -->

Christophe Demarey's avatar
Christophe Demarey committed
55
56
57
58
59
60
61
  <build>
    <defaultGoal>package</defaultGoal>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
62
63
64
65
 
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
66
        <version>2.5</version>
67
        <configuration>
68
69
70
71
72
73
          <skipTests>false</skipTests>
          <useSystemClassLoader>false</useSystemClassLoader>
          <systemPropertyVariables>
            <org.ow2.frascati.class>${org.ow2.frascati.class}</org.ow2.frascati.class>
            <org.ow2.frascati.bootstrap>${org.ow2.frascati.bootstrap}</org.ow2.frascati.bootstrap>
            <org.ow2.frascati.composite>${org.ow2.frascati.composite}</org.ow2.frascati.composite>
74
            <java.util.logging.config.file>${logging.conf.file}</java.util.logging.config.file>
75
          </systemPropertyVariables>
76
77
        </configuration>
      </plugin>
78
    </plugins>
79
80
81
82
83
84
85

    <pluginManagement>
      <plugins>
        <!-- Compile the SCA composite. -->
        <plugin>
          <groupId>org.ow2.frascati.mojo</groupId>
          <artifactId>frascati-compiler-plugin</artifactId>
86
          <version>${project.version}</version>
87
88
89
90
91
92
93
94
95
96
          <executions>
            <execution>
              <id>compile-composite</id>
              <phase>generate-sources</phase>
              <goals>
                <goal>compile</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
97
            <loggingConfFile>${logging.conf.file}</loggingConfFile>
98
99
            <composite>${composite.file}</composite>
          </configuration>
100
101
102
103
104
105
106
107
108
          <!-- Required for FraSCAti EasyBPEL integration. -->
          <dependencies>
            <dependency>
              <groupId>xerces</groupId>
              <artifactId>xercesImpl</artifactId>
              <version>${xerces.version}</version>
              <scope>compile</scope>
            </dependency>
          </dependencies>
109
        </plugin>
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

       <!-- Execute Java. -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <!-- Use version 1.1.1 instead of 1.2 to be sure that provided artifacts are added to the classpath. -->
          <version>1.1.1</version>
          <configuration>
            <!-- Define Java system properties for FraSCAti. -->
            <systemProperties>
              <systemProperty>
                <key>org.ow2.frascati.class</key>
                <value>${org.ow2.frascati.class}</value>
              </systemProperty>
              <systemProperty>
                <key>org.ow2.frascati.bootstrap</key>
                <value>${org.ow2.frascati.bootstrap}</value>
              </systemProperty>
              <systemProperty>
                <key>org.ow2.frascati.composite</key>
                <value>${org.ow2.frascati.composite}</value>
              </systemProperty>
              <systemProperty>
                <key>fscript-factory</key>
                <value>org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory</value>
              </systemProperty>
            </systemProperties>
          </configuration>
        </plugin>

140
141
142
      </plugins>
    </pluginManagement>

Christophe Demarey's avatar
Christophe Demarey committed
143
144
  </build>

145
146
147
  <!-- ============ -->
  <!-- Dependencies -->
  <!-- ============ -->
Christophe Demarey's avatar
Christophe Demarey committed
148
149

  <dependencies>
150

Christophe Demarey's avatar
Christophe Demarey committed
151
152
    <dependency>
      <groupId>org.ow2.frascati</groupId>
153
      <artifactId>frascati-runtime-factory</artifactId>
154
      <version>${project.version}</version>
155
156
      <!-- scope is provided to allow to compile examples but -->
      <!-- to avoid to put FraSCAti systematically into generated WAR/ZIP/etc. -->
157
158
159
160
161
162
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.ow2.frascati</groupId>
      <artifactId>frascati-explorer-api</artifactId>
163
      <version>${project.version}</version>
164
165
      <!-- scope is provided to allow to compile FraSCAti Explorer plugins of examples but -->
      <!-- to avoid to put FraSCAti Explorer systematically into generated WAR/ZIP/etc. -->
166
      <scope>provided</scope>
Christophe Demarey's avatar
Christophe Demarey committed
167
    </dependency>
168

Christophe Demarey's avatar
Christophe Demarey committed
169
170
  </dependencies>
  
171
172
173
  <!-- ======== -->
  <!-- Profiles -->
  <!-- ======== -->
Christophe Demarey's avatar
Christophe Demarey committed
174
175
176
177
178
179

  <profiles>
    <!-- To execute an SCA composite type 'mvn -Prun'. -->
    <profile>
      <id>run</id>
      <build>
Christophe Demarey's avatar
Christophe Demarey committed
180
        <defaultGoal>org.ow2.frascati.mojo:frascati-launcher-plugin:1.3:exec</defaultGoal>
181
182
        <plugins>
          <plugin>
183
184
            <groupId>org.ow2.frascati.mojo</groupId>
            <artifactId>frascati-launcher-plugin</artifactId>
Christophe Demarey's avatar
Christophe Demarey committed
185
186
187
188
189
190
191
192
193
194
195
196
197
198
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <loggingConfFile>${logging.conf.file}</loggingConfFile>
              <composite>${composite.file}</composite>
              <service>${service.name}</service>
              <method>${method.name}</method>
              <methodParams>${method.params}</methodParams>
199
              <systemProperties>
200
201
202
                <org.ow2.frascati.class>${org.ow2.frascati.class}</org.ow2.frascati.class>
                <org.ow2.frascati.bootstrap>${org.ow2.frascati.bootstrap}</org.ow2.frascati.bootstrap>
                <org.ow2.frascati.composite>${org.ow2.frascati.composite}</org.ow2.frascati.composite>
203
              </systemProperties>
Christophe Demarey's avatar
Christophe Demarey committed
204
205
206
207
208
209
210
211
212
            </configuration>
          </plugin> 
        </plugins>
      </build>
    </profile>

    <!-- To execute an SCA composite with FraSCAti Explorer type 'mvn -Pexplorer'. -->
    <profile>
      <id>explorer</id>
213
214
215
216
217
      <dependencies>
        <!-- here FraSCAti Explorer is put in the classpath. -->
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-explorer-core</artifactId>
218
          <version>${project.version}</version>
219
220
        </dependency>
      </dependencies>
Christophe Demarey's avatar
Christophe Demarey committed
221
      <build>
222
        <defaultGoal>exec:java</defaultGoal>
Christophe Demarey's avatar
Christophe Demarey committed
223
224
225
226
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
227
228
229
230
231
232
233
234
235
236
237
            <configuration>
              <mainClass>org.ow2.frascati.explorer.FrascatiExplorerLauncher</mainClass>
              <arguments>
                <argument>${composite.file}</argument>
              </arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

238
239
240
241
242
243
244
245
246
    <!-- To execute an SCA composite with FraSCAti Explorer and the FScript plugin
         type 'mvn -Pexplorer-fscript'. -->
    <profile>
      <id>explorer-fscript</id>
      <dependencies>
        <!-- here FraSCAti Explorer is put in the classpath. -->
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-explorer-core</artifactId>
247
          <version>${project.version}</version>
248
249
250
251
252
        </dependency>
        <!-- Add OW2 FraSCAti Explorer FScript plugin -->
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-explorer-fscript-plugin</artifactId>
253
          <version>${project.version}</version>
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
        </dependency>
      </dependencies>
      
      <build>
        <defaultGoal>exec:java</defaultGoal>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <configuration>
              <mainClass>org.ow2.frascati.explorer.FrascatiExplorerLauncher</mainClass>
              <arguments>
                <argument>${composite.file}</argument>
              </arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- To execute FraSCAtiScript console type 'mvn -Pfscript-console'. -->
    <profile>
      <id>fscript-console</id>
      
      <build>
        <defaultGoal>exec:java</defaultGoal>
        
        <plugins>
          <!-- Run the FraSCAtiScript console --> 
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>            
            <configuration>
287
              <mainClass>org.ow2.frascati.fscript.console.Main</mainClass>
288
289
290
291
292
293
294
295
296
            </configuration>
          </plugin>
        </plugins>
      </build>

      <dependencies>
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-fscript-console</artifactId>
297
          <version>${project.version}</version>
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
        </dependency>
      </dependencies>
    </profile>

    <!-- To execute FraSCAtiScript console with FraSCAti Explorer type 'mvn -Pfscript-console-explorer'. -->
    <profile>
      <id>fscript-console-explorer</id>
      
      <build>
        <defaultGoal>exec:java</defaultGoal>
        
        <plugins>
          <!-- Run the FraSCAtiScript console --> 
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>            
            <configuration>
315
              <mainClass>org.ow2.frascati.fscript.console.Main</mainClass>
316
317
318
319
320
321
322
323
324
            </configuration>
          </plugin>
        </plugins>
      </build>
 
      <dependencies>
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-fscript-console</artifactId>
325
          <version>${project.version}</version>
326
327
328
329
        </dependency>
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-explorer-fscript-plugin</artifactId>
330
          <version>${project.version}</version>
331
332
333
334
        </dependency>
      </dependencies>
    </profile>

335
336
337
338
339
340
341
342
    <!-- To execute an SCA composite with FraSCAti Explorer type 'mvn -Pexplorer-jdk6'. -->
    <profile>
      <id>explorer-jdk6</id>
      <dependencies>
        <!-- here FraSCAti Explorer is put in the classpath. -->
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-explorer-core</artifactId>
343
          <version>${project.version}</version>
344
345
346
347
348
349
350
351
352
353
          <exclusions>
            <exclusion>
              <groupId>org.ow2.frascati</groupId>
              <artifactId>frascati-runtime-factory</artifactId>
            </exclusion>
          </exclusions>
        </dependency>
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-assembly-factory-jdk6</artifactId>
354
          <version>${project.version}</version>
355
356
357
358
359
360
361
362
        </dependency>
      </dependencies>
      <build>
        <defaultGoal>exec:java</defaultGoal>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
Christophe Demarey's avatar
Christophe Demarey committed
363
            <configuration>
364
              <mainClass>org.ow2.frascati.explorer.FrascatiExplorerLauncher</mainClass>
Christophe Demarey's avatar
Christophe Demarey committed
365
366
367
368
369
370
371
372
              <arguments>
                <argument>${composite.file}</argument>
              </arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
373

Christophe Demarey's avatar
Christophe Demarey committed
374
  </profiles>
375

Christophe Demarey's avatar
Christophe Demarey committed
376
  <modules>
377
    <module>frascati-test</module>
Clement Quinton's avatar
Clement Quinton committed
378
    <module>helloworld-pojo</module>
Christophe Demarey's avatar
Christophe Demarey committed
379
    <module>helloworld-annotated</module>
380
    <module>helloworld-property</module>
381
    <module>helloworld-fractal</module> 
382
    <module>helloworld-script</module> 
383
    <module>helloworld-spring</module> 
384
    <module>helloworld-osgi</module>
Christophe Demarey's avatar
Christophe Demarey committed
385
386
387
    <module>helloworld-rmi</module>
    <module>ws-parent</module>
    <module>helloworld-ws</module>
388
    <module>helloworld-servlet</module>
389
    <module>helloworld-jsonrpc</module>
Christophe Demarey's avatar
Christophe Demarey committed
390
    <module>calculator</module>
391
    <module>callback</module>
392
    <module>comanche</module>
Christophe Demarey's avatar
Christophe Demarey committed
393
394
395
396
397
398
399
400
    <module>weather</module>
    <module>verify-mail</module>
    <module>isbn-test</module>
    <module>dictionary</module>
    <module>twitter-rest</module>
    <module>counter-rest</module>
    <module>twitter-weather</module>
    <module>chat</module>
401
    <module>reconfig</module>
402
    <module>availability-intent</module>
403
    <module>examples-native</module>
404
<!-- <module>helloworld-upnp</module>  -->
405
    <module>ohloh-proxy</module>
406
407
408
409
410
    <module>bpel-parent</module>
    <module>echo-bpel</module>
    <module>factorial-bpel</module>
    <module>sales-bpel</module>
    <module>crisis</module>
411
    <module>nrbc</module>
Christophe Demarey's avatar
Christophe Demarey committed
412
413
414
  </modules>

</project>