Mavenのフェーズについて

pom_sampleA

1<groupId>aaa.bbb</groupId> 2<artifactId>aaa.bbb.sampleA</artifactId> 3<version>0.0.1</version> 4 5<build> 6 <plugins> 7 <plugin> 8 <groupId>org.apache.maven.plugins</groupId> 9 <artifactId>maven-install-plugin</artifactId> 10 <version>3.1.1</version> 11 <executions> 12 <execution> 13 <phase>package</phase> 14 <goals> 15 <goal>install-file</goal> 16 </goals> 17 </execution> 18 </executions> 19 </plugin> 20 </plugins> 21</build> 22<dependencyManagement> 23 <dependencies> 24 <dependency> 25 <groupId>aaa.bbb.ccc</groupId> 26 <artifactId>aaa.bbb.ccc.sampleB</artifactId> 27 <version>0.0.1</version> 28 <classifier>shaded</classifier> 29 </dependency> 30 </dependencies> 31</dependencyManagement>

pom_sampleB

1<groupId>aaa.bbb.ccc</groupId> 2<artifactId>aaa.bbb.ccc.sampleB</artifactId> 3<version>0.0.1</version> 4 5<build> 6 <plugins> 7 <plugin> 8 <groupId>org.apache.maven.plugins</groupId> 9 <artifactId>maven-shade-plugin</artifactId> 10 <version>3.4.1</version> 11 <configuration> 12 省略 13 </configuration> 14 <executions> 15 <execution> 16 <phase>package</phase> 17 <goals> 18 <goal>shade</goal> 19 </goals> 20 </execution> 21 </executions> 22 </plugin> 23 </plugins> 24</build> 25<dependencyManagement> 26 <dependencies> 27 <dependency> 28 <groupId>●●●</groupId> 29 <artifactId>▲▲▲</artifactId> 30 <version>x.x.x</version> 31 </dependency> 32 <dependency> 33 <groupId>●●●</groupId> 34 <artifactId>▲▲▲</artifactId> 35 <version>x.x.x</version> 36 </dependency> 37 <dependency> 38 <groupId>●●●</groupId> 39 <artifactId>▲▲▲</artifactId> 40 <version>x.x.x</version> 41 </dependency> 42 </dependencies> 43</dependencyManagement>

mavenのフェーズについて疑問点があるため質問させてください
mavenにはライフサイクルというものがあり、そのサイクルにそって各フェーズが実行されていくものかと認識しています

では、上記のpomのようにpackageフェーズに複数プラグイン登場した場合
実行の優先度としてはmaven-install-pluginとmaven-shade-pluginのどちらが先に実行されるのでしょうか?

コメントを投稿

0 コメント