This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch pom
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-samples.git

commit cb58a5613fdd9cf80ba7ba35044b11e3aa2709f6
Author: Arnout Engelen <[email protected]>
AuthorDate: Mon Feb 12 11:32:36 2018 +0100

    Add pom.xml to akka-sample-cluster-java
---
 akka-sample-cluster-java/README.md |  2 +-
 akka-sample-cluster-java/pom.xml   | 64 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 1 deletion(-)

diff --git a/akka-sample-cluster-java/README.md 
b/akka-sample-cluster-java/README.md
index 644f288..61656c5 100644
--- a/akka-sample-cluster-java/README.md
+++ b/akka-sample-cluster-java/README.md
@@ -21,7 +21,7 @@ The small program together with its configuration starts an 
ActorSystem with the
 
 You can read more about the cluster concepts in the 
[documentation](http://doc.akka.io/docs/akka/2.5.0/java/cluster-usage.html).
 
-To run this sample, type `sbt "runMain 
sample.cluster.simple.SimpleClusterApp"` if it is not already started.
+To run this sample, type `sbt "runMain 
sample.cluster.simple.SimpleClusterApp"` if it is not already started. If you 
are using maven, use `mvn compile exec:java 
-Dexec.mainClass="sample.cluster.simple.SimpleClusterApp"` instead. To pass 
parameters to maven add `-Dexec.args="..."`.
 
 `SimpleClusterApp` starts three actor systems (cluster members) in the same 
JVM process. It can be more interesting to run them in separate processes. Stop 
the application and then open three terminal windows.
 
diff --git a/akka-sample-cluster-java/pom.xml b/akka-sample-cluster-java/pom.xml
new file mode 100644
index 0000000..bcb92c9
--- /dev/null
+++ b/akka-sample-cluster-java/pom.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd";>
+
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>akka-sample-cluster-java</artifactId>
+  <groupId>com.typesafe.akka.samples</groupId>
+  <name>Akka Cluster in Java</name>
+  <version>empty</version>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <profiles>
+    <profile>
+      <id>2.12.4</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <properties>
+        <scalaBinaryVersion>2.12</scalaBinaryVersion>
+      </properties>
+    </profile>
+    <profile>
+      <id>2.11.8</id>
+      <properties>
+        <scalaBinaryVersion>2.11</scalaBinaryVersion>
+      </properties>
+    </profile>
+  </profiles>
+
+  <dependencies>
+    <dependency>
+      <groupId>com.typesafe.akka</groupId>
+      <artifactId>akka-cluster-tools_${scalaBinaryVersion}</artifactId>
+      <version>2.5.9</version>
+    </dependency>
+    <dependency>
+      <groupId>com.typesafe.akka</groupId>
+      <artifactId>akka-cluster-metrics_${scalaBinaryVersion}</artifactId>
+      <version>2.5.9</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.1</version>
+        <configuration>
+          <source>1.8</source>
+          <target>1.8</target>
+          <fork>true</fork>
+          <compilerArgs>
+            <arg>-Xlint</arg>
+          </compilerArgs>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to