Plug-in: maven-war-plugin 1. test Project dependency: for Maven projects, add the plug-in to the pom file of the web project: [java] <plugin> <artifactId> maven-war-plugin </artifactId> <version> 2.1-beta-1 </version> <configuration> <attachClasses> true </attachClasses> </configuration> </plugin> this way, a-classes is generated when the web project is packaged. jar package, which can be used in the test project. However, if you want to rely on this jar package in the test project, you should write it as follows: [java] <dependency> <groupId> com. taobao. tae </groupId> <artifactId> taeappcenter-web </artifactId> <version> 1.0.4-SNAPSHOT </version> <classifier> classifier </classifier> </dependency> property value: classes. 2. In our continuous integration environment (Jenkins), how can we also calculate the code coverage of web projects? Cause: For the war package generated by the web project by default, we use the maven-war-plugin plug-in to generate a jar package with the-classes label, since Clover is based on the source code, Clover uses the packaging format defined in pom of the web Project for plug-in packaging by default when calculating the coverage rate, the generated jar packages with the-classes label are not piling up, so we cannot test the web project coverage in our test code. Solution: configure the shell command in jenkins: Modify the packaging method in the pom file in the web: Change war to jar, and then modify the pom file in the qatest file to remove the classify attribute of the web dependency. Thinking: in fact, our web project should not contain too many business logic, most of which are only presented. The specific business logic is placed in biz or other modules, of course, it is another question for web engineering with a large number of complex pages.