Reputation: 577
I have a very simple spring boot project with dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
When I build this , web-inf folder gets created in target directory, and packages everything in classes, and lib folder.
I want to have one xml file ("jboss-deployment-structure.xml") at the root of the web-inf, ("web-inf/jboss-deployment-structure.xml") where should I put it in the src folder?
I tried creating "public/jboss-deployment-structure.xml" folder in src, but no luck.
Upvotes: 13
Views: 32732
Reputation: 446
Maybe a little bit late, but in order to put your xml file inside WEB-INF, if you are using Maven, the correct placement will be:
src/main/webapp/WEB-INF/jboss-deployment-structure.xml
Upvotes: 17
Reputation: 1786
For a regular maven project if you need to have a structure of
target/WEB-INF/blabla.xml
then you should put
src/main/resources/WEB-INF/blabla.xml
I hope that will help.
Upvotes: 2
Reputation: 110
I had the same problem working with the Spring boot projects.
This kind of project usually comes with embedded modules like Apache tomcat and prepared for use Spring annotations.
For change configurations and make your web application easily configurable I suggest to create from scratch. See this url for more information:
http://projects.spring.io/spring-boot/
In my case I changed to:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
and I create my own structure.
Upvotes: 1