What is the problem? Let's look at the standard structure of a war project:
$ mvn archetype: create -DgroupId = com.mycompany.app \
> -DartifactId = my-webapp -DarchetypepeArtifactId = maven-archetype-webapp
...
$ tree my-webapp /
my-webapp /
| - pom.xml
`- src
`- main
| - resources
`- webapp
| - WEB-INF
| `- web.xml
`- index.jsp
5 directories, 3 files
No need to configure anything, just put the JSP under src/main/webapp/WEB-INF/jsp and there you go.
EDIT: I do not understand why you have the following line in the configuration of your maven-war-plugin:
<warSourceDirectory>${basedir}/web/WEB-INF</warSourceDirectory>
What is the expected behavior? Why aren't you using the default value of ${basedir}/src/main/webapp ?
Pascal thivent
source share