1、
<profiles> <profile> <!-- 选项1 --> <id>item1</id> <dependencies> <dependency> <groupId>lllllll</groupId> <artifactId>lllllll</artifactId> <version>${llllll.version}</version> <scope>provided</scope>----------编译时依赖 </dependency> </dependencies> <activation> <activeByDefault>true</activeByDefault>----------默认依赖 </activation> </profile> <profile> <!-- 选项2 --> <id>switem2</id> <dependencies> <dependency> <groupId>kkkkkkk</groupId> <artifactId>kkkkkkk</artifactId> <version>kkkkkk</version> <scope>provided</scope> </dependency> </dependencies> </profile> </profiles>