in src/main/java/org/apache/sling/maven/slingstart/PreparePackageMojo.java [594:613]
private Artifact getBaseArtifact(final Model model, final String classifier, final String type) throws MojoExecutionException {
try {
final org.apache.sling.provisioning.model.Artifact baseArtifact = ModelUtils.findBaseArtifact(model);
final Artifact a = ModelUtils.getArtifact(this.project, this.mavenSession, this.artifactHandlerManager, this.resolver,
baseArtifact.getGroupId(),
baseArtifact.getArtifactId(),
baseArtifact.getVersion(),
type,
classifier);
if (a == null) {
throw new MojoExecutionException(
String.format("Project doesn't have a base dependency of groupId %s and artifactId %s",
baseArtifact.getGroupId(), baseArtifact.getArtifactId()));
}
return a;
} catch ( final MavenExecutionException mee) {
throw new MojoExecutionException(mee.getMessage(), mee.getCause());
}
}