What are the conventional locations for for JSPs, JavaScript, CSS, Images in Maven web projects?

前端 未结 2 1620
我寻月下人不归
我寻月下人不归 2020-12-15 22:47

I need to convert a traditional J2EE web application into a new Maven web project. In traditional project JSPs are under WebApp/jsps folder, JavaScript & CS

2条回答
  •  -上瘾入骨i
    2020-12-15 23:21

    Take a look at this article on the usage of the maven war plugin. It has a simple project structure.

    Quoting from above link,

     |-- pom.xml  
     `-- src
         `-- main
             |-- java
             |   `-- com
             |       `-- example
             |           `-- projects
             |               `-- SampleAction.java
             |-- resources
             |   `-- images
             |       `-- sampleimage.jpg
             |   `-- js
             |       `-- scripts.js
             |   `-- css
             |       `-- styles.css
             `-- webapp
                 |-- WEB-INF
                 |   `-- web.xml
                 |-- index.jsp
                 `-- jsp
                     `-- websource.jsp
    

提交回复
热议问题