Commit 858ec9c9 authored by Philippe Merle's avatar Philippe Merle
Browse files

Added instructions about examples/pom.xml

parent 50f8659b
* OW2 FraSCAti Examples: Parent module
* Copyright (c) 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
* 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
* Contact:
* Author: Philippe Merle
* Contributor(s):
This directory contains a set of FraSCAti examples.
How to use examples/pom.xml
The pom.xml file present at the root of this directory defines common
Maven elements reused by all FraSCAti example's pom.xml files.
To reuse these common Maven definitions, your pom.xml must contain:
examples/pom.xml properties
The examples/pom.xml file defines the following FraSCAti properties:
- frascati.version:
The current version of FraSCAti.
The directory where configuration files are present.
By default, it is the examples/ directory.
- java.util.logging.config.file:
The file to configure Java logging.
By default, it is the ${}/ file.
- cxf.config.file:
The file to configure Apache CXF.
By default, it is the ${}/frascati-cxf.xml file.
See at for details on how to configure Apache CXF.
- org.ow2.frascati.class:
The class used to instantiate FraSCAti.
By default, it is the org.ow2.frascati.FraSCAti class.
- org.ow2.frascati.bootstrap:
The class used to bootstrap FraSCAti.
By default, it is the org.ow2.frascati.bootstrap.FraSCAti class.
This property must be overloaded when the FraSCAti composite contains specific <binding> or <implementation>.
This is the case when using FraSCAti Explorer, FScript, Remote Management, and Web Explorer.
Current FraSCAti bootstrap values are:
- org.ow2.frascati.bootstrap.FraSCAti:
Basic FraSCAti bootstrap.
- org.ow2.frascati.bootstrap.FraSCAtiJDT:
Add support for JDT compiler.
- org.ow2.frascati.bootstrap.FraSCAtiJDK6:
Add support for JDK6 compiler.
- org.ow2.frascati.bootstrap.FraSCAtiFractal:
Add support for <frascati:implementation.fractal>.
To use with FraSCAti Explorer, and FraSCAti FScript.
- org.ow2.frascati.bootstrap.FraSCAtiJDTRest:
Add support for JDT compiler and <>.
To use with FraSCAti Remote Management.
- org.ow2.frascati.bootstrap.FraSCAtiJDTFractalRest:
Add support for JDT compiler, <frascati:implementation.fractal> and <>.
To use with FraSCAti Remote Management + FScript.
- org.ow2.frascati.bootstrap.FraSCAtiWebExplorer:
To use with FraSCAti Web Explorer.
- org.ow2.frascati.composite:
The SCA composite of FraSCAti.
By default, it is the org.ow2.frascati.FraSCAti composite.
- org.ow2.frascati.binding.uri.base:
The base URI to use for related bindings, i.e., where binding uri starting by /.
This is the case for REST bindings of FraSCAti Remote Management and Web Explorer.
By default, it is http://localhost:8765
This property can be overloaded as following:
$ mvn -Dorg.ow2.frascati.binding.uri.base=http://hostname:port/path ...
Then related bindings will be exposed on http://hostname:port/path/...
- composite.file:
The SCA composite file to compile, to execute, etc.
The service name to execute.
The method name to execute.
- method.params:
The parameters for the method to execute.
All these properties can be overloaded:
- in your pom.xml as follows:
- when running Maven:
$ mvn -DpropertyName=propertyValue ...
examples/pom.xml plugins
The examples/pom.xml file configures the following Maven plugins:
- maven-compiler-plugin:
To compile Java sources.
- maven-surefire-plugin:
To execute Java unit tests.
- frascati-compiler-plugin:
To compile the SCA ${composite.file} composite file.
examples/pom.xml profiles
The examples/pom.xml file provides the following Maven profiles:
- run:
Run the SCA ${composite.file} composite.
$ mvn -Prun
- explorer:
Run the FraSCAti Explorer.
$ mvn -Pexplorer
- explorer-fscript:
Run the FraSCAti Explorer with its FScript plugin.
$ mvn -Pexplorer-fscript
- fscript-console:
Run the FraSCAti FScript console.
$ mvn -Pfscript-console
- fscript-console-explorer:
Run the FraSCAti FScript console and the FraSCAti Explorer.
$ mvn -Pfscript-console-explorer
- explorer-jdk6:
Run the FraSCAti Explorer with the JDK6 compiler.
$ mvn -Pexplorer-jdk6
- jmx:
Add support for FraSCAti JMX.
$ mvn -Pjmx
- remote-fscript:
Add support for FraSCAti Remote Management plus FScript.
$ mvn -Premote-fscript
- remote:
Add support for FraSCAti Remote Management.
$ mvn -Premote
- uml:
Add support for FraSCAti UML Sequence Diagram Aspect.
$ mvn -Puml
- web:
Add support for FraSCAti Web Explorer.
$ mvn -Pweb
- one-jar:
Generate an executable jar containing all required dependencies.
$ mvn -Pone-jar
- all:
Add support for all FraSCAti modules.
$ mvn -Pall
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment