in tooling/maven/src/main/java/org/apache/karaf/minho/tooling/maven/ArchiveMojo.java [32:51]
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("Creating Minho runtime archive");
if (name != null && version != null) {
try {
Runtime runtime = new Runtime(name, version, properties);
dependencies.forEach(dependency -> {
runtime.getDependencies().add(dependency);
});
runtime.createArchive();
} catch (Exception e) {
throw new MojoExecutionException("Can't create runtime archive", e);
}
} else {
try {
Runtime.createArchive(new FileInputStream(minhoBuild));
} catch (Exception e) {
throw new MojoExecutionException("Can't create runtime archive", e);
}
}
}