问题
I'm using IntelliJ IDEA and I'm building and deploying the web-application project every time I'm running it. All of this happens magically within IntelliJ IDEA.
However, now I'm supposed to manually deploy it on a test server's wildfly, so I need an artifact file (WAR or EAR) to drop in the standalone/deployments directory on the test server's running WildFly10.
I can't for the life of me find where IntelliJ Idea exports the WAR / EAR artifacts so I could copy paste it to the said directory on the test server. Any help is appreciated.
回答1:
Please follow the steps :
- Click on Edit Configurations.
- Click on Deployment and add your artifact.
- Apply these changes.
- You can see a Build Artifacts under Build.
- Click on Build Artifacts and it will create a war/jar to the respective folder.
If I'm wrong somewhere let me know.
来源:https://stackoverflow.com/questions/38562829/where-is-the-war-file-built-in-intellij-idea-located