How to deploy a maven artifact to app-server?

The Deployment tab of the Run/Debug configuration for JBoss (or Tomcat) has an option to run a Maven goal before launch. Unfortunately I cannot find a way to deploy the artifact that was created from this goal. Is this possible somehow ?

Thanks for any hint.

P.S.: The reason I want to do this: The artifacts that are created from IntelliJ are not identical to those created from Maven (even though the IntelliJ project was created from the Maven pom file). The Maven project contains sub-projects, which generate custom-assemblies (via the Maven Assembly Plugin). IntelliJ does not create the correct artifacts for these,

Please sign in to leave a comment.