public void execute()

in tooling/maven/src/main/java/org/apache/karaf/minho/tooling/maven/PackageMojo.java [32:51]


    public void execute() throws MojoExecutionException, MojoFailureException {
        getLog().info("Creating Minho runtime package");
        if (name != null && version != null) {
            try {
                Runtime runtime = new Runtime(name, version, properties);
                dependencies.forEach(dependency -> {
                    runtime.getDependencies().add(dependency);
                });
                runtime.createPackage();
            } catch (Exception e) {
                throw new MojoExecutionException("Can't create runtime package", e);
            }
        } else {
            try {
                Runtime.createPackage(new FileInputStream(minhoBuild));
            } catch (Exception e) {
                throw new MojoExecutionException("Can't create runtime package", e);
            }
        }
    }