Skip to content

Commit 9c51ca4

Browse files
committed
Execute compute task from the command-line rather than using IDE
1 parent 0293e45 commit 9c51ca4

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,10 @@ merges partial results.
154154
```bash
155155
cluster unit deploy --version 1.0.0 --path=/opt/ignite/downloads/ignite-essentials-developer-training-1.0-SNAPSHOT.jar essentialsCompute
156156
```
157-
3. Execute the `ComputeApp` program from your IDE.
157+
3. Execute the `ComputeApp` program with the following command:
158+
159+
```shell
160+
mvn exec:java
161+
```
162+
163+
Or run directly from your preferred IDE.

pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,22 @@
2929
<plugin>
3030
<groupId>org.apache.maven.plugins</groupId>
3131
<artifactId>maven-compiler-plugin</artifactId>
32-
<version>3.11.0</version>
32+
<version>3.14.0</version>
3333
<configuration>
3434
<release>11</release>
3535
<source>11</source>
3636
<target>11</target>
3737
</configuration>
3838
</plugin>
39+
<plugin>
40+
<groupId>org.codehaus.mojo</groupId>
41+
<artifactId>exec-maven-plugin</artifactId>
42+
<version>3.5.0</version>
43+
<configuration>
44+
<executable>java</executable>
45+
<mainClass>training.ComputeApp</mainClass>
46+
</configuration>
47+
</plugin>
3948
</plugins>
4049
</build>
4150
</project>

0 commit comments

Comments
 (0)