Deploy to Wildfly deployments dir instead of project's target dir?

I have created a Wildfly server and I pointed it to the C:\dev\wildfly dir.

However, when I deploy the application via the run configurations, the webapp is always deployed to the project's target directory (using an exploded WAR).

How do you deploy to the Wildfly server's C:\dev\wildfly\standalone\deployments dir (like Eclipse did) instead of the C:\projects\myproject\target\MyProject-0.5-SNAPSHOT.war dir?

Thanks

2 comments

Does IntelliJ always deploy to the project dir? I'm new to IntelliJ, sorry.

0

Hello,

Yes, IDEA always deploys artifacts from project target dir.
This allows to control deployment lifecycle and also makes artifact update faster.

Regards,
Michael

0

Please sign in to leave a comment.