Why springMVC3.0 does not display the background verification information

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.