maven to the name of the specified war package

  1. Add the following code to pom.xml


  2. <build>  
  3.         < finalName > plugin </ finalName > #Specify   the name of the war package
  4.         <pluginManagement>  
  5.             <plugins>  
  6.                 <plugin>  
  7.                     <groupId>org.apache.maven.plugins</groupId>  
  8.                     <artifactId>maven-compiler-plugin</artifactId>  
  9.                     <version>2.3.2</version>  
  10.                     <configuration>  
  11.                         <encoding>${project.build.sourceEncoding}</encoding>  
  12.                         <source>1.7</source>  
  13.                         <target>1.7</target>  
  14.                     </configuration>  
  15.                 </plugin>  
  16.                 <plugin>  
  17.                     <groupId>org.apache.maven.plugins</groupId>  
  18.                     <artifactId>maven-surefire-plugin</artifactId>  
  19.                     <configuration>  
  20.                         <testFailureIgnore>true</testFailureIgnore>  
  21.                     </configuration>  
  22.                 </plugin>  
  23.             </plugins>  
  24.         </pluginManagement>  
  25.     </build>  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326193514&siteId=291194637