Deployment and Artifiacts Issue
Hi all,
I have a simple spring/jsf project with maven and Jboss wildfly or Tomee server, I tried both.
Lets focus on wildfly:
- I synch my project, then 2 artifacts are created. One war and one exploded.
- Even when I do not deploy an artifact, the wildfly server trying to deploy 2 war files
WFLYSRV0027: Starting deployment of "NIS_Prototype_war_exploded"
WFLYSRV0027: Starting deployment of "spring-non-boot-project-1.0-SNAPSHOT"
It finds the second one and deploys it. The first one is a custom artifact which I had created before but then deleted.
So three questions:
1) How do I get rid of the 2 deployments that wildfly is looking for even though no artifact is deployed?
2) Why is a Project synch creating 2 artifacts automatically?
3) When I create a manual exploded artifact intellij selects the out directory
All this is quite confusing and it creates duplicate deployments for wildfly and for tomee.
Thank you
Please sign in to leave a comment.
The deployment of WAR to the Tomcat/EE/JBoss server puts the generated WAR/WAR Folder under the webapps folder of the app server, so even if you don't deploy new ones, the previously deployed package is still in the target folder, and will be started once the server started.
Can you share the IDEA and JBoss wildfly server you used? Also, please share a sample pom.xml, and then I'll try to reproduce it.
Hi Jacky,
thanks for responding to this. With support I found the issue.
Somehow old deployment instructions have been left in the standalone.xml under the deployment tag for the wildfly server.
After removing these I just let intellij create the war and exploded war artifacts and used the run configuration to add the exploded war as deployed artifact. Now it works.
Kind regards,
Wolfgang