pom.xml 7.45 KB
Newer Older
1
2
<?xml version="1.0"?>
<!--
3
  * OW2 FraSCAti Explorer
Philippe Merle's avatar
Philippe Merle committed
4
  * Copyright (c) 2008-2010 INRIA
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  *
  * 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
-->
20
<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">
21
22
  <modelVersion>4.0.0</modelVersion>

23
24
25
26
  <!-- ===================== -->
  <!-- General Information   -->
  <!-- ===================== -->

27
  <groupId>org.ow2.frascati</groupId>
28
  <artifactId>frascati-explorer</artifactId>
29
  <packaging>pom</packaging>
30

31
  <name>OW2 FraSCAti Explorer</name>
32
33
  <inceptionYear>2008</inceptionYear>

34
35
36
  <parent>
    <groupId>org.ow2.frascati</groupId>
    <artifactId>parent</artifactId>
37
    <version>1.4-SNAPSHOT</version>
38
39
  </parent>
  
40
41
42
43
44
  <!-- ============= -->
  <!-- Properties    -->
  <!-- ============= -->

  <properties>
45
    <fractal-explorer.version>1.1.4</fractal-explorer.version>
46
47
    <beanshell.version>2.0b4</beanshell.version>
    <truezip.version>6.6</truezip.version>
48
    <org.jdesktop.version>1.0.3</org.jdesktop.version>
Christophe Demarey's avatar
Christophe Demarey committed
49
50
51
    <org.ow2.frascati.class>org.ow2.frascati.FraSCAti</org.ow2.frascati.class>
    <org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAti</org.ow2.frascati.bootstrap>
    <org.ow2.frascati.composite>org.ow2.frascati.FraSCAti</org.ow2.frascati.composite>
52
53
  </properties>

54
55
56
57
  <!-- ============= -->
  <!-- Dependencies  -->
  <!-- ============= -->

Christophe Demarey's avatar
Christophe Demarey committed
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
  <dependencyManagement>
    <dependencies>
      <!-- Fractal Explorer -->
      <dependency>
        <groupId>org.objectweb.fractal.fractalexplorer</groupId>
        <artifactId>fractal-explorer</artifactId>
        <version>${fractal-explorer.version}</version>
        <exclusions>
            <!-- Use fractal-util >= 1.1.2 
          (FractalExplorer relies on fractal-adl 2.2 that relies on fractal-util 1.0) -->    
          <exclusion>
            <groupId>org.objectweb.fractal</groupId>
            <artifactId>fractal-util</artifactId>
          </exclusion>
          <!-- Use a fractal-adl version >= 2.3.1 (Get the possibility to name arguments) -->
          <exclusion>
            <groupId>org.objectweb.fractal.fractaladl</groupId>
            <artifactId>fractal-adl</artifactId>
          </exclusion>
          <!-- Don't use a too old version of xerces (API incompatibility) -->    
          <exclusion>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
          </exclusion>
          <!-- Use an asm version >= 3.0 --> 
          <exclusion>
            <groupId>asm</groupId>
            <artifactId>asm</artifactId>
          </exclusion>
          <!-- Fractal RMI unused by FraSCAti. --> 
          <exclusion>
            <groupId>org.objectweb.fractal.fractalrmi</groupId>
            <artifactId>fractal-rmi</artifactId>
          </exclusion>
          <!-- Fractal ADL Dumper unused by FraSCAti. --> 
          <exclusion>
            <groupId>org.objectweb.fractal.fractaladl.dumper</groupId>
            <artifactId>dumper</artifactId>
          </exclusion>
          <!-- Bugged version of ow_trace -->
          <exclusion>
            <groupId>org.objectweb.util.misc</groupId>
            <artifactId>ow-trace</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>org.beanshell</groupId>
        <artifactId>bsh</artifactId>
        <version>${beanshell.version}</version>
      </dependency>

      <!-- Truezip -->
      <dependency>
        <groupId>de.schlichtherle.io</groupId>
        <artifactId>truezip</artifactId>
        <version>${truezip.version}</version>
      </dependency>
117
118

      <!-- FraSCAti FScript -->
Christophe Demarey's avatar
Christophe Demarey committed
119
120
      <dependency>
        <groupId>org.ow2.frascati</groupId>
121
        <artifactId>frascati-fscript-core</artifactId>
122
        <version>${project.version}</version>
Christophe Demarey's avatar
Christophe Demarey committed
123
124
125
126
127
128
129
130
131
132
133
        <exclusions>
          <exclusion>
            <groupId>org.objectweb.fractal.fscript</groupId>
            <artifactId>fscript-console</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.ow2.frascati.examples</groupId>
            <artifactId>helloworld-rmi-server</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
134

Christophe Demarey's avatar
Christophe Demarey committed
135
136
    </dependencies> 
  </dependencyManagement>
137

138
139
140
141
142
143
144
145
146
  <dependencies> 
  </dependencies> 

  <!-- ====== -->
  <!-- Build  -->
  <!-- ====== -->

  <build>
    <plugins>
147
      <!-- Compile with Java 1.5 -->
148
149
150
151
152
153
154
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
    </plugins>
  </build>

155
156
157
158
159
160
161
162
163
  <!-- ========= -->
  <!-- Profiles  -->
  <!-- ========= -->

  <!-- To execute FraSCAti Explorer type 'mvn -Pexplorer'. -->
  <profiles>
    <profile>
      <id>explorer</id>
      <build>
Christophe Demarey's avatar
Christophe Demarey committed
164
        <defaultGoal>exec:java</defaultGoal>          
165
166
167
168
169
170
        <plugins>
          <!-- Run the Explorer -->
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <configuration>
Christophe Demarey's avatar
Christophe Demarey committed
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
              <mainClass>org.ow2.frascati.explorer.FrascatiExplorerLauncher</mainClass>
              <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>
              </systemProperties>
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>run</id>
      <build>
        <defaultGoal>exec:exec</defaultGoal>
        <plugins>
          <!-- Run a FraSCAti Domain with predefined composites -->
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <configuration>
              <executable>java</executable>
              <arguments>
                <argument>-cp</argument>
205
                <classpath />
206
207
208
209
210
211
212
213
214
215
216
                <argument>org.ow2.frascati.explorer.FrascatiExplorerLauncher</argument>
                <!-- Load composites in the domain by default with following args: -->
                <!-- <argument>composite-name</argument> -->
              </arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

217
218
219
220
  <!-- ======== -->
  <!-- Modules  -->
  <!-- ======== -->
  <modules>
221
    <module>api</module>
222
223
224
    <module>core</module>
    <module>fscript-plugin</module>
  </modules>
225
226

</project>