Chen Bucheng I 2022-06-24 07:44:21 阅读数:55
effect ： List of remote repositories where plug-ins are found . and repository similar , It's just repository Is management jar The repository that packages depend on ,pluginRepositories It's a repository for managing plug-ins . maven A plug-in is a special type of component . For this reason , The plug-in repository is independent of other repositories .pluginRepositories The structure of the element and repositories The structure of the element is similar to . Every pluginRepository Element specifies a Maven Can be used to find the remote address of the new plug-in .
<pluginRepositories> <!-- Contains the information needed to connect to the remote plug-in Repository . See profiles/profile/repositories/repository Description of the elements --> <pluginRepository> <releases> <enabled /> <updatePolicy /> <checksumPolicy /> </releases> <snapshots> <enabled /> <updatePolicy /> <checksumPolicy /> </snapshots> <id /> <name /> <url /> <layout /> </pluginRepository> </pluginRepositories>
effect ： Activate... Manually profiles A list of , according to profile The order of application is defined activeProfile. This element contains a set of activeProfile Elements , Every activeProfile They all contain one profile id. Any in activeProfile As defined in profile id, Regardless of the setting of the environment , Their corresponding profile Will be activated . If there is no match profile, Then nothing will happen . for example ,env-test It's a activeProfile, It's in pom.xml（ perhaps profile.xml） In the corresponding id Of profile Will be activated . If you can't find one during the run profile,Maven It will run as usual .
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> ... <activeProfiles> <!-- To activate profile id --> <activeProfile>env-test</activeProfile> </activeProfiles> ... </settings>
copyright：author[Chen Bucheng I]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/175/20210628191923962y.html