Oleg Kaplun
Oleg Kaplun

Reputation: 122

IntelliJ Jetty plugin does not extract war

I'm using IJ Ultimate 2020.3 and trying to set up a Jetty Server run configuration.

AFAIK, in order to start Jetty with a war artifact it is needed to be located in $JETTY_HOME/webapps directory.

But, it looks like the Jetty plugin of my IJ refuses to copy the war (exploded, or any other) artifact to that directory, which lead the Jetty server to fail.

I was able to start the Jetty server (from IJ) only after manually copying the war file into the webapps directory, so looks like the only problem is the 'copy' step.

Any ideas?

Upvotes: 1

Views: 304

Answers (2)

Oleg Kaplun
Oleg Kaplun

Reputation: 122

Thanks @CrazyCoder, this is a progress for me. problem is that my output console suggests that it does not search for the artifact in the location it is set: artifact config

console output

Upvotes: 0

CrazyCoder
CrazyCoder

Reputation: 402235

IntelliJ IDEA doesn't copy the artifact into webapps, instead it instructs Jetty to load the artifact directly from the location that you have configured as the artifact output directory.

Artifact used for deployment:

artifact

Artifact output directory:

output directory

Startup logs showing that artifact is loaded directory from its output directory and not from webapps:

logs

Upvotes: 1

Related Questions