I'm aware there are other questions on this topic, but having tried many of the suggested answers, the dependency jars are still not included. Choose WindowPrefsJRebel - Click Agent Settings - Choose Plugins Tab - Click custom plugins - add the. If theres no JRebel plugin for your IDE, you can also edit the JRebel configuration manually. How do I make maven assembly plugin include junit jar inside the jar with dependencies, so that java -cp mytestapp-0.0.1-SNAPSHOT-jar-with-dependencies.jar You can also disable other plugins you do not need. When should you use this plugin Enable the JRebel Gradle plugin IDE configuration JRebel Gradle plugin configuration for use with multi. In this tutorial, to run tests, we used install and package phases and configured Maven Surefire Plugin. Therefore when I try to run MyTest: java -cp mytestapp-0.0.1-SNAPSHOT-jar-with-dependencies.jar Įxception in thread "main" : org/junit/AssertĪt (MyTest.java:16) Absolute vs relative paths in rebel.xml files Excluding modules from rebel.xml generation Generating rebel-remote.xml files Advanced configuration JRebel Gradle plugin. When using Windows, run activate-gui.cmd. You can start the activation utility by running activate-gui.sh script in a nix environment. So the final jar with dependencies doesn't include junit dependency. To activate JRebel standalone you have two options, either to use the activation wizard or to use the command line tool. Mytestapp-0.0.1-SNAPSHOT-jar-with-dependencies.jar:
0 Comments
Leave a Reply. |