maven 插件的应用
在pom.xml里配置 以测试插件介绍为主
 <build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
			     <version>2.2.1</version>
			     <executions>
			                 <execution>
			                      <phase>compile</phase>
			                      <goals>   
			                           <goal>
			                       jar
			                           </goal>
			                      
			                           <goal>
			                       test-jar
			                           </goal>
			                      </goals>
			                   </execution>
			      </executions>
			</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.14</version>
					<configuration>
						<!-- 设置包含的测试类 -->
						 <includes>  
						<include>
						**/Test*
						</include> 
						</includes>
						<!-- 设置不进行测试的类  -->
						<excludes> 
						<exclude>App*</exclude> 
						</excludes>
						
					</configuration>
				</plugin>
		</plugins>
	</build>

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号