How to launch a marina from inside intellij?

How can I run a jersey or spring mvc application from intellij (final version) using jetty and debug api call and break the endpoint?

I will not configure it and should run $ mvnDebug jetty: run.

I want to click a button and start with my .war project. Any ideas? THX

[suppose: I have the marina installed and the plugin configured .... I can work with mvnDebug jetty: run from the cmd line and connect to the debug session from intenllij, but sometimes I get the following, and they are annoying:

ERROR: Unable to load this JVM TI agent twice, check your java command line to duplicate jdwp parameters. Error initializing VM]

+5
source share
1 answer

You can also add a mooring plugin to maven:

<build> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.2.2.v20140723</version> </plugin> </plugins> </build> 

And then run the maven command to start the server and deploy the application:

 mvn jetty:run 
+13
source

Source: https://habr.com/ru/post/1213495/


All Articles