helloworld-remote
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.objectweb.fractal.fraclet.java.examples.advanced</groupId>
<artifactId>helloworld-remote</artifactId>
<version>3.2.3</version>
</dependency><?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.fractal.fraclet.java.examples.advanced</groupId>
<artifactId>parent</artifactId>
<version>3.2.3</version>
</parent>
<artifactId>helloworld-remote</artifactId>
<name>Fraclet/FractalRMI HelloWorld</name>
<description>HelloWorld example developed with Fraclet</description>
<dependencies>
<dependency>
<groupId>org.objectweb.fractal.fractalrmi</groupId>
<artifactId>fractal-rmi</artifactId>
<version>0.3.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.julia</groupId>
<artifactId>julia-runtime</artifactId>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.julia</groupId>
<artifactId>julia-asm</artifactId>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.julia</groupId>
<artifactId>julia-mixins</artifactId>
</dependency>
</dependencies>
<properties>
<fractalrmi.registry.port>1234</fractalrmi.registry.port>
<server.main.class>org.objectweb.fractal.rmi.ServerLauncher</server.main.class>
<server.arg>server-host</server.arg>
<client.main.class>org.objectweb.fractal.rmi.ClientLauncher</client.main.class>
<client.arg.1>HelloWorld</client.arg.1>
<client.arg.2>remote-node=/server-host</client.arg.2>
</properties>
<profiles>
<profile>
<id>run.registry</id>
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<executable>
${JAVA_HOME}/bin/java
</executable>
<arguments>
<argument>
-Dfractal.provider=org.objectweb.fractal.julia.Julia
</argument>
<argument>
-Djulia.config=fractal-rmi.cfg
</argument>
<argument>-cp</argument>
<classpath />
<argument>
org.objectweb.fractal.rmi.registry.Registry
</argument>
<argument>
${fractalrmi.registry.port}
</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>run.server</id>
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<executable>
${JAVA_HOME}/bin/java
</executable>
<arguments>
<argument>
-Dfractal.provider=org.objectweb.fractal.julia.Julia
</argument>
<argument>
-Djulia.config=fractal-rmi.cfg
</argument>
<argument>-cp</argument>
<classpath />
<argument>
${server.main.class}
</argument>
<argument>
${server.arg}
</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>run.client</id>
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<executable>
${JAVA_HOME}/bin/java
</executable>
<arguments>
<argument>
-Dfractal.provider=org.objectweb.fractal.julia.Julia
</argument>
<argument>
-Djulia.config=fractal-rmi.cfg
</argument>
<argument>-cp</argument>
<classpath />
<argument>
${client.main.class}
</argument>
<argument>
${client.arg.1}
</argument>
<argument>
${client.arg.2}
</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>