<plugin> <!-- NOTE: We don't need a groupId specification because the group is org.apache.maven.plugins ...which is assumed by default. --> <!-- http://maven.apache.org/plugins/maven-assembly-plugin/usage.html --> <artifactId>maven-assembly-plugin</artifactId> <version>3.3.0</version> <configuration> <descriptorRefs>
<!-- 这个地方是配置包含依赖的jar后缀名 --> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> <executions> <execution> <id>make-assembly</id> <!-- this is used for inheritance merges --> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin>