Although hardly a comprehensive list, these are the most common default lifecycle phases executed.
There are two other Maven lifecycles of note beyond the default list above. They are
緲昏瘧鍐呭錛屾憳鑷?IBM
鐢熷懡鍛ㄦ湡
鍦∕aven2涓湁浜?jiǎn)鏄幖嫯鐨勭敓鍛藉懆鏈熸蹇靛Q岃屼笖閮芥彁渚涗笌涔嬪搴旂殑鍛戒護(hù)錛屼嬌寰楅」鐩瀯寤烘洿鍔犳竻鏅版槑浜?jiǎn)銆備富瑕佺殑鐢熷懡鍛ㄦ湡闃舵錛?/p>
<build>
聽 <plugins>
聽聽聽 <plugin>
聽聽聽聽聽 <groupId>org.apache.maven.plugins</groupId>
聽聽聽聽聽 <artifactId>maven-jar-plugin</artifactId>
聽聽聽聽聽 <configuration>
聽聽聽聽聽聽聽 <archive>
聽聽聽聽聽聽聽聽聽 <addMavenDescriptor>false</addMavenDescriptor>
聽聽聽聽聽聽聽 </archive>
聽聽聽聽聽 </configuration>
聽聽聽 </plugin>
聽 </plugins>
</build>
濡傛灉鏄?war 鍖咃紝鍦?Plugin 涓厤緗?/p>
<build>
聽 <plugins>
聽聽聽 <plugin>
聽聽聽聽聽 <groupId>org.apache.maven.plugins</groupId>
聽聽聽聽聽 <artifactId>maven-war-plugin</artifactId>
聽聽聽聽聽 <configuration>
聽聽聽聽聽聽聽 <archive>
聽聽聽聽聽聽聽聽聽 <addMavenDescriptor>false</addMavenDescriptor>
聽聽聽聽聽聽聽 </archive>
聽聽聽聽聽 </configuration>
聽聽聽 </plugin>
聽 </plugins>
</build>
榪欎釜鏄湪 maven-archiver 涓緗殑錛屽彲浠ユ煡鐪嬩唬鐮併?/p>
聽