spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Create canonical place in the documentation for WAR deployments

Open odrotbohm opened this issue 11 years ago • 2 comments

Currently the documentation of how to get a WAR deployment up and running with Boot is spread between multiple places.

It would be cool to have a canonical place to be able to point user to that need WAR deployments.

odrotbohm avatar Dec 17 '14 14:12 odrotbohm

For what it's worth, I agree with this motion. It was definitely a challenge for a newbie to piece together the resources needed for WAR deployments.

As a side note: I think it would also be nice to mention that the repackaging phase of the spring boot plugin, if packaging as a WAR, will automatically do things like move src/main/resources under the WEB-INF folder (or link to where this information resides). Spring Boot was almost nixed from my project because of this missing fact

MatthewEdge avatar Jan 14 '15 17:01 MatthewEdge

@MatthewEdge It's Maven's war plugin, not Boot's repackaging, that copies files under src/main/resources into WEB-INF/classes. From the Maven war plugin documentation:

The default resource directory for all Maven projects is src/main/resources which will end up in [...] WEB-INF/classes in the WAR

wilkinsona avatar Jan 29 '15 12:01 wilkinsona