The project was working well before, but suddenly can not update war file in "target" directory.When I want to "Build Artifacts", error shows: Error:Cannot build Artifact 'XXX:war exploded' because it is included into a circular dependency
What is the wrong with this?
the artifacts :
It means that instead of deploying a war file, it will deploy a directory with the exact same tructure as a war file, but just not zipped into a war archive.
WAR files are convenient because they are a single package that is easy to copy, and the contents of the WAR file are compressed making it quite a compact package. The second way is to deploy all the individual files that make up a web application. This is called an exploded deployment, or an exploded WAR.
The solution is to remove "MavenDemo:war" artifact and "MavenDemo:war exploded" artifact from the project, and rebuild the project、rebuild artifacts. set the deployment artifact from MavenDemo:war to MaterialManager:war.
I think the problem of this project is that the "MavenDemo:war" artifact and "MavenDemo:war exploded" artifact are repeated. So the solution is to remove them from the project.
1:
2:
3:
4:
And then, Everytime after I make some update in my code, I can click "Run" Button to deploy the updated project to Tomcat successfully.
Hope it can help somebody else ~
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With