class OpearPackageMojo extends AbstractCommonMojo {

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        resolveDependencies(project.getDependencies(), true);
        try {
            final File finalFile = assembleOpear();
            attachArtifact(finalFile);
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to assemble the opear file.", e);
        }
    }

}