pom.xml 20.6 KB
Newer Older
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
<?xml version="1.0"?>
<!-- 
* EasySOA 
* 
* Copyright (c) 2011-2012 Inria, University of Lille 1 
* 
* 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: Michel Dirix 
* 
* Contributor(s): Antonio Souza Neto 
-->

<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">

    <parent>
      <groupId>org.ow2.frascati</groupId>
      <artifactId>frascati-parent</artifactId>
      <version>1.5-SNAPSHOT</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.easysoa</groupId>
    <artifactId>frascati-studio</artifactId>

42
    <name>FraSCAti Studio</name>
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

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <config.directory>..</config.directory>
        <java.util.logging.config.file>${config.directory}/logging.properties</java.util.logging.config.file>
        <cxf.config.file>${config.directory}/frascati-cxf.xml</cxf.config.file>

        <composite.file>easysoa</composite.file>
        <!--<service.name>r</service.name> <method.name>run</method.name> -->

        <frascati.version>1.5-SNAPSHOT</frascati.version>

        <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>
        <org.ow2.frascati.binding.uri.base>http://localhost:8095</org.ow2.frascati.binding.uri.base>

        <xerces.version>2.9.1</xerces.version>

        <hibernate.version>3.6.0.Final</hibernate.version>

        <hibernate.connection.driver_class>com.mysql.jdbc.Driver</hibernate.connection.driver_class>
        <hibernate.dialect>org.hibernate.dialect.MySQLDialect</hibernate.dialect>
        <hibernate.connection.url>jdbc:mysql://localhost:3306/easysoasimplified</hibernate.connection.url>
        <hibernate.connection.username>root</hibernate.connection.username>
        <hibernate.connection.password></hibernate.connection.password>
<!--         <hibernate.connection.url>jdbc:mysql://mysql-studio-frascati.jelastic.com/easysoa?autoReconnect=true</hibernate.connection.url> -->
<!--         <hibernate.connection.username>root</hibernate.connection.username> -->
Michel Dirix's avatar
Michel Dirix committed
71
<!--         <hibernate.connection.password></hibernate.connection.password> -->
72 73 74
<!-- 		<hibernate.connection.url>jdbc:mysql://mysql-stutio-frascati-dev.jelastic.dogado.eu/studio?autoReconnect=true</hibernate.connection.url> -->
<!-- 		<hibernate.connection.username>root</hibernate.connection.username> -->
<!-- 		<hibernate.connection.password></hibernate.connection.password> -->
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

    </properties>

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

    <build>
        <defaultGoal>package</defaultGoal>

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>

        <extensions>
            <!-- Enabling the use of SSH -->
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
            </extension>
        </extensions>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <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>
                        <org.ow2.frascati.binding.uri.base>${org.ow2.frascati.binding.uri.base}</org.ow2.frascati.binding.uri.base>
                        <java.util.logging.config.file>${java.util.logging.config.file}</java.util.logging.config.file>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
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

            <!-- Copy jar to be used in tests -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.4</version>
                <executions>
                  <execution>
                    <id>copy</id>
                    <phase>clean</phase>
                    <goals>
                      <goal>copy</goal>
                    </goals>
                    <configuration>
                      <artifactItems>
                        <artifactItem>
                          <groupId>org.eclipse.stp.sca.osoa.java</groupId>
                          <artifactId>osoa-java-api</artifactId>
                          <version>2.0.1.2</version>
                          <type>jar</type>
                        </artifactItem>
                      </artifactItems>
                      <!-- other configurations here -->
                      <outputDirectory>src/test/resources/lib</outputDirectory>
                    </configuration>
                  </execution>
                </executions>
              </plugin>
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 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
        </plugins>

        <pluginManagement>
            <plugins>
                <!-- Compile with Java 1.6 -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                </plugin>

                <!-- Compile the SCA composite. -->
                <plugin>
                    <groupId>org.ow2.frascati.mojo</groupId>
                    <artifactId>frascati-compiler-plugin</artifactId>
                    <version>${frascati.version}</version>
                    <executions>
                        <execution>
                            <id>compile-composite</id>
                            <phase>generate-sources</phase>
                            <goals>
                                <goal>compile</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <loggingConfFile>${java.util.logging.config.file}</loggingConfFile>
                        <composite>${composite.file}</composite>
                    </configuration>
                    <!-- Required for FraSCAti EasyBPEL integration. -->
                    <dependencies>
                        <dependency>
                            <groupId>xerces</groupId>
                            <artifactId>xercesImpl</artifactId>
                            <version>${xerces.version}</version>
                            <scope>compile</scope>
                        </dependency>
                    </dependencies>
                </plugin>

                <!-- 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>org.ow2.frascati.binding.uri.base</key>
                                <value>${org.ow2.frascati.binding.uri.base}</value>
                            </systemProperty>
                            <systemProperty>
                                <key>fscript-factory</key>
                                <value>org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory</value>
                            </systemProperty>
                            <systemProperty>
                                <key>java.util.logging.config.file</key>
                                <value>${java.util.logging.config.file}</value>
                            </systemProperty>
                            <!-- Set the Apache CXF configuration file to load. -->
                            <systemProperty>
                                <key>cxf.config.file.url</key>
                                <value>file:${cxf.config.file}</value>
                            </systemProperty>
                        </systemProperties>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.ow2.frascati.mojo</groupId>
                    <artifactId>frascati-launcher-plugin</artifactId>
                    <version>${frascati.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>

    </build>


    <!-- ============ -->
    <!-- Dependencies -->
    <!-- ============ -->
    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.5.5</version>
        </dependency>

        <!-- OW2 FraSCAti Implementation Velocity Module. -->
        <dependency>
            <groupId>org.ow2.frascati</groupId>
            <artifactId>frascati-implementation-velocity</artifactId>
            <version>${frascati.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.frascati</groupId>
            <artifactId>frascati-binding-rest</artifactId>
            <version>${frascati.version}</version>
        </dependency>
        <!-- OW2 FraSCAti Binding HTTP Module. -->
        <dependency>
            <groupId>org.ow2.frascati</groupId>
            <artifactId>frascati-binding-http</artifactId>
            <version>${frascati.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.frascati</groupId>
            <artifactId>frascati-interface-wsdl</artifactId>
            <version>${frascati.version}</version>
        </dependency>
        <dependency>
           <groupId>org.ow2.frascati</groupId>
           <artifactId>frascati-implementation-script-javascript</artifactId>
282
           <version>${frascati.version}</version>
283 284 285 286
        </dependency>
        <dependency>
            <groupId>org.ow2.frascati</groupId>
            <artifactId>frascati-implementation-script</artifactId>
287
            <version>${frascati.version}</version>
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
        </dependency>
        <dependency>
            <groupId>org.ow2.frascati</groupId>
            <artifactId>frascati-introspection-impl</artifactId>
            <version>${frascati.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.frascati.factory</groupId>
            <artifactId>frascati-factory-tools</artifactId>
            <version>${frascati.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.frascati.mojo</groupId>
            <artifactId>frascati-contribution-plugin</artifactId>
            <version>${frascati.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-search</artifactId>
            <version>3.3.0.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate.javax.persistence</groupId>
            <artifactId>hibernate-jpa-2.0-api</artifactId>
            <version>1.0.0.Final</version>
        </dependency>
315

316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
        <dependency>
            <groupId>jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>1.1</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
            <version>1.1</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>${hibernate.version}</version>
        </dependency>
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.shared</groupId>
            <artifactId>maven-invoker</artifactId>
            <version>2.0.11</version>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.14</version>
        </dependency>
Michel Dirix's avatar
Michel Dirix committed
346 347 348 349 350
        <dependency>
			<groupId>org.scribe</groupId>
			<artifactId>scribe</artifactId>
			<version>1.3.0</version>
		</dependency>
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369

        <!-- TODO find a solution to remove these dependencies (used just in some 
            applications, not for the studio) -->
        <dependency>
            <groupId>org.ow2.frascati</groupId>
            <artifactId>frascati-binding-ws</artifactId>
            <version>${frascati.version}</version>
        </dependency>


    </dependencies>

    <!-- ======== -->
    <!-- Profiles -->
    <!-- ======== -->


    <profiles>

Michel Dirix's avatar
Michel Dirix committed
370
<!--     To execute an SCA composite type 'mvn -Prun'. -->
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
        <profile>
            <id>run</id>
            <build>
                <defaultGoal>org.ow2.frascati.mojo:frascati-launcher-plugin:exec</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>org.ow2.frascati.mojo</groupId>
                        <artifactId>frascati-launcher-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <loggingConfFile>${java.util.logging.conf.file}</loggingConfFile>
                            <composite>${composite.file}</composite>
                            <service>${service.name}</service>
                            <method>${method.name}</method>
                            <methodParams>${method.params}</methodParams>
                            <systemProperties>
                                <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>
                                <org.ow2.frascati.binding.uri.base>${org.ow2.frascati.binding.uri.base}</org.ow2.frascati.binding.uri.base>
                                Set the Apache CXF configuration file to load.
                                <cxf.config.file.url>file:${cxf.config.file}</cxf.config.file.url>
                            </systemProperties>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

Michel Dirix's avatar
Michel Dirix committed
407
<!--         To execute an SCA composite with FraSCAti Explorer type 'mvn -Pexplorer'. -->
408 409 410
        <profile>
            <id>explorer</id>
            <dependencies>
Michel Dirix's avatar
Michel Dirix committed
411
<!--             here FraSCAti Explorer is put in the classpath. -->
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
                <dependency>
                    <groupId>org.ow2.frascati</groupId>
                    <artifactId>frascati-explorer-core</artifactId>
                    <version>${frascati.version}</version>
                </dependency>
            </dependencies>
            <properties>
                <org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAtiFractal</org.ow2.frascati.bootstrap>
            </properties>
            <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>

Michel Dirix's avatar
Michel Dirix committed
438 439
<!-- 		 To execute an SCA composite with FraSCAti Remote Introspection with   -->
<!-- 		 FScript type 'mvn -Premote-fscript'. -->
440 441 442 443 444 445 446 447 448 449 450 451 452 453
        <profile>
            <id>remote-fscript</id>
            <dependencies>
                <dependency>
                    <groupId>org.ow2.frascati</groupId>
                    <artifactId>frascati-introspection-fscript-impl</artifactId>
                    <version>${frascati.version}</version>
                </dependency>
            </dependencies>
            <properties>
                <org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAtiJDTFractalRest</org.ow2.frascati.bootstrap>
            </properties>
        </profile>
        
Michel Dirix's avatar
Michel Dirix committed
454
<!--         To execute an SCA composite with FraSCAti Remote Introspection type 'mvn -Premote'. -->
455 456 457 458 459 460 461 462 463 464 465 466 467 468
	    <profile>
	      <id>remote</id>
	      <dependencies>
	        <dependency>
	          <groupId>org.ow2.frascati</groupId>
	          <artifactId>frascati-introspection-impl</artifactId>
	          <version>${project.version}</version>
	        </dependency>
	      </dependencies>
	      <properties>
	        <org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAtiJDTRest</org.ow2.frascati.bootstrap>
	      </properties>
	    </profile>

Michel Dirix's avatar
Michel Dirix committed
469
<!--         To execute an SCA composite with FraSCAti Web Explorer type 'mvn -Pweb'. -->
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
        <profile>
            <id>web</id>
            <dependencies>
                <dependency>
                    <groupId>org.ow2.frascati</groupId>
                    <artifactId>frascati-web-explorer</artifactId>
                    <version>${frascati.version}</version>
                </dependency>
            </dependencies>
            <properties>
                <org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAtiWebExplorer</org.ow2.frascati.bootstrap>
            </properties>
        </profile>

    </profiles>


</project>