Example usage for org.apache.maven.project MavenProject setIssueManagement

List of usage examples for org.apache.maven.project MavenProject setIssueManagement

Introduction

In this page you can find the example usage for org.apache.maven.project MavenProject setIssueManagement.

Prototype

public void setIssueManagement(IssueManagement issueManagement) 

Source Link

Usage

From source file:com.autentia.mvn.plugin.release.bugzilla.BugzillaReleaseMojo.java

License:Open Source License

public static void main(final String[] args) {
    try {//from w  w w .j av a 2s  .  c o m
        if (args == null || args.length < 4) {
            printUsage();
        }

        final MavenProject project = new MavenProject();
        final IssueManagement issueManagement = new IssueManagement();
        project.setIssueManagement(issueManagement);
        final BugzillaReleaseMojo mojo = new BugzillaReleaseMojo();
        mojo.setProject(project);
        Prompter prompter = null;
        prompter = new com.autentia.mvn.plugin.release.bugzilla.Prompter();
        mojo.setPrompter(prompter);

        int argsIndex = 0;
        while (argsIndex < args.length) {
            argsIndex = processArgs(argsIndex, mojo, args);
        }

        mojo.execute();
    } catch (final InitializationException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    } catch (final MojoExecutionException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}