in src/main/java/org/apache/sling/maven/projectsupport/ArtifactDefinition.java [221:247]
public void initDefaults(String groupId, String artifactId, String version,
String type, String classifier, int startLevel) {
if (this.bundles == null) {
if (this.groupId == null && StringUtils.isNotEmpty(groupId)) {
this.groupId = groupId;
}
if (this.artifactId == null && StringUtils.isNotEmpty(artifactId)) {
this.artifactId = artifactId;
}
if (this.version == null && StringUtils.isNotEmpty(version)) {
this.version = version;
}
if (this.type == null && StringUtils.isNotEmpty(groupId)) {
this.type = type;
}
if (this.classifier == null && StringUtils.isNotEmpty(classifier)) {
this.classifier = classifier;
}
if (this.startLevel == 0) {
this.startLevel = startLevel;
}
} else {
for (ArtifactDefinition bundle : this.bundles) {
bundle.initDefaults(groupId, artifactId, version, type, classifier, startLevel);
}
}
}