Skip to content

Commit 34d6288

Browse files
committed
Add a jshell profile to launch jshell
1 parent 1e6ed73 commit 34d6288

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

pom.xml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.scijava</groupId>
66
<artifactId>pom-scijava-base</artifactId>
7-
<version>18.0.1-SNAPSHOT</version>
7+
<version>18.1.0-SNAPSHOT</version>
88
<packaging>pom</packaging>
99

1010
<name>SciJava Base POM</name>
@@ -308,6 +308,7 @@
308308
<scijava-maven-plugin.version>2.2.0</scijava-maven-plugin.version>
309309

310310
<!-- Other Maven plugins -->
311+
<jshell-maven-plugin.version>1.4</jshell-maven-plugin.version> <!-- com.github.johnpoth -->
311312
<javafx-maven-plugin.version>8.8.3</javafx-maven-plugin.version> <!-- com.zenjava -->
312313
<impsort-maven-plugin.version>1.9.0</impsort-maven-plugin.version> <!-- net.revelc.code -->
313314
<formatter-maven-plugin.version>2.23.0</formatter-maven-plugin.version> <!-- net.revelc.code.formatter -->
@@ -1602,6 +1603,31 @@
16021603
</build>
16031604
</profile>
16041605

1606+
<!--
1607+
The jshell profile launches jshell with the project's runtime classpath.
1608+
Launch it using: mvn -Pjshell
1609+
-->
1610+
<profile>
1611+
<id>jshell</id>
1612+
<build>
1613+
<plugins>
1614+
<!-- JShell Maven plugin - https://github.com/johnpoth/jshell-maven-plugin -->
1615+
<plugin>
1616+
<groupId>com.github.johnpoth</groupId>
1617+
<artifactId>jshell-maven-plugin</artifactId>
1618+
<version>${jshell-maven-plugin.version}</version>
1619+
<executions>
1620+
<execution>
1621+
<goals>
1622+
<goal>run</goal>
1623+
</goals>
1624+
</execution>
1625+
</executions>
1626+
</plugin>
1627+
</plugins>
1628+
</build>
1629+
</profile>
1630+
16051631
<!--
16061632
For debugging. E.g. for Eclipse, pass -DdebugPort=8000,suspend=y
16071633
and add a Debug Configuration for a Remote Java Application.

0 commit comments

Comments
 (0)