mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 17:59:03 +00:00
Gracefully handle profiles in settings.xml with no <activation>
See gh-3483
This commit is contained in:
+3
-1
@@ -165,7 +165,9 @@ public class MavenSettings {
|
||||
for (Profile profile : profiles) {
|
||||
org.apache.maven.model.Profile modelProfile = new org.apache.maven.model.Profile();
|
||||
modelProfile.setId(profile.getId());
|
||||
modelProfile.setActivation(createModelActivation(profile.getActivation()));
|
||||
if (profile.getActivation() != null) {
|
||||
modelProfile.setActivation(createModelActivation(profile.getActivation()));
|
||||
}
|
||||
modelProfiles.add(modelProfile);
|
||||
}
|
||||
return modelProfiles;
|
||||
|
||||
Reference in New Issue
Block a user