Part of the jar package in the project is based on the Pom file dependency, part of the BuildPath into the Web-inf/lib directory, and finally when using MAVEN packaging, found unable to put the jar package Web-inf/lib under the war package, The class that introduced the jar in the Web-inf/lib directory could not be compiled with an error.
How to resolve:
Add the following Maven plugin to the Pom file:
<build>
<plugins>
<plugin>
<artifactid>maven-compiler-plugin</ artifactid>
<configuration>
<source>1.7</source>
<target>1.7</target >
<encoding>UTF-8</encoding>
<compilerArguments>
<!--<extdirs>${ Basedir}/webroot/web-inf/lib</extdirs>-
<extdirs>${basedir}/src/main/webapp/web-inf/lib </extdirs>
</compilerArguments>
</configuration>
</plugin>
</ Plugins>
</build>
After adding this code, re-use MAVEN to package the compilation can be in the Web-inf/lib directory of Jar package and Pom file dependent jar package into the war package.