您必须使用“ default-jar”作为ID:
<plugin> <artifactId>maven-jar-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <id>only-bootstrap</id> <goals><goal>jar</goal></goals> <phase>package</phase> <configuration> <classifier>bootstrap</classifier> <includes> <include>sun*</include> </includes> </configuration> </execution> <execution> <id>default-jar</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <excludes> <exclude>sun*</exclude> </excludes> </configuration> </execution> </executions> </plugin>



