OW2 Consortium dream

Rev

Rev 2188 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
  * 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
-->
<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">

  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.objectweb.dream.dreamcore.examples</groupId>
    <artifactId>parent</artifactId>
    <version>2.0-SNAPSHOT</version>
  </parent>

  <groupId>org.objectweb.dream.dreamcore.examples</groupId>
  <artifactId>dream-core-helloworld</artifactId>
  <name>Dream Core Helloworld example</name>
  <description>
    HelloWorld example for the Dream Core project.
  </description>
  <version>2.0.1-SNAPSHOT</version>

  <scm>
    <connection>
      ${scm.connection}/dreamcore/dream-core/examples/helloworld
    </connection>
    <developerConnection>
      ${scm.developerConnection}/dreamcore/dream-core/examples/helloworld
    </developerConnection>
    <url>${scm.url}/dreamcore/dream-core/examples/helloworld</url>
  </scm>

  <dependencies>
    <dependency>
      <groupId>org.objectweb.fractal</groupId>
      <artifactId>fractal-api</artifactId>
      <version>2.0.2</version>
    </dependency>

    <dependency>
      <groupId>org.objectweb.dream.dreamannotation</groupId>
      <artifactId>dream-annotation</artifactId>
      <version>1.0.3</version>
    </dependency>

    <dependency>
      <groupId>org.objectweb.dream.dreamadl</groupId>
      <artifactId>dream-adl</artifactId>
      <version>2.2</version>
    </dependency>

    <dependency>
      <groupId>org.objectweb.dream.dreamcore</groupId>
      <artifactId>dream-core</artifactId>
      <version>2.1</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>net.sf.alchim</groupId>
        <artifactId>spoon-maven-plugin</artifactId>
        <version>0.6.1</version>
        <configuration>
          <cfg>${basedir}/src/main/config/spoon.cfg.xml</cfg>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>recompile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <!-- Source packaging -->
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <!-- to run the HelloWorld class with "mvn -Prun" -->
  <profiles>
    <profile>
      <id>run</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <build>
        <defaultGoal>compile</defaultGoal>
        <resources>
          <resource>
            <directory>${basedir}/src/main/resources</directory>
            <filtering>true</filtering>
          </resource>
        </resources>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>java</goal>
                </goals>
                <phase>compile</phase>
              </execution>
            </executions>
            <configuration>
              <mainClass>helloworld.Main</mainClass>
              <arguments>
                <!-- to use mono-threaded client component. -->
                <argument>-mono</argument>
                <!-- to use client component with thread pool. 
                  <argument>
                  -pool
                  </argument>
                -->
              </arguments>
              <systemProperties>
                <systemProperty>
                  <key>fractal.provider</key>
                  <value>org.objectweb.fractal.julia.Julia</value>
                </systemProperty>
                <systemProperty>
                  <key>julia.config</key>
                  <value>
                    julia-dreamcore-helloworld.cfg,julia-dream-activities-bundled.cfg
                  </value>
                </systemProperty>
              </systemProperties>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>