开源软件名称(OpenSource Name):johnpoth/jshell-maven-plugin开源软件地址(OpenSource Url):https://github.com/johnpoth/jshell-maven-plugin开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):jshell-maven-pluginMaven Plugin for the Java Shell Tool ( JShell ) Run it$mvn compile com.github.johnpoth:jshell-maven-plugin:1.3:run
| Welcome to JShell -- Version 10
| For an introduction type: /help intro
jshell> Now you can start using your project’s runtime classpath: jshell> var foo = new org.apache.camel.component.beanclass.ClassComponent()
foo ==> org.apache.camel.component.beanclass.ClassComponent@4d1b0d2a
jshell> To you use your project’s test classpath, add -DtestClasspath to the command and make sure you have compiled your test classes: $mvn test-compile com.github.johnpoth:jshell-maven-plugin:1.3:run If you notice some resources missing, you may have to invoke the $mvn install com.github.johnpoth:jshell-maven-plugin:1.3:run -DskipTests Once you project has been built properly, and you haven’t updated your source files, you can skip the building phase and invoke the plugin directly: $mvn com.github.johnpoth:jshell-maven-plugin:1.3:run Options
Reminder: plugin parameters when passed through the command line should be prefixed with 'jshell.' e.g: mvn com.github.johnpoth:jshell-maven-plugin:1.3:run -Djshell.scripts="script0,script1" Adding to pom.xmlTo use the plugin’s shortened prefix jshell, declare the plugin in your pom.xml <pluginManagement>
<plugins>
<plugin>
<groupId>com.github.johnpoth</groupId>
<artifactId>jshell-maven-plugin</artifactId>
<version>1.3</version>
</plugin>
</plugins>
</pluginManagement> And now you’ll be able to run it by typing mvn jshell:run $mvn jshell:run
| Welcome to JShell -- Version 10
| For an introduction type: /help intro
jshell> Works on Java 9, 10 and 11+ Enjoy! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论