in src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java [56:71]
protected File getBundleFileName() throws MojoExecutionException {
File file = project.getArtifact().getFile();
if (isBundleFile(file)) {
return file;
} else {
getLog().debug("No bundle found in primary artifact " + file + ", checking secondary ones...");
for (Artifact artifact : project.getAttachedArtifacts()) {
if (isBundleFile(artifact.getFile())) {
return file;
}
getLog().debug("No bundle found in secondary artifact " + file);
}
}
throw new MojoExecutionException(
"No attached bundle found for this Maven project, for standalone usage use goal 'install-file' instead!");
}