com.sun.enterprise.module.maven
Class RunMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.sun.enterprise.module.maven.RunMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class RunMojo
extends org.apache.maven.plugin.AbstractMojo

Launches the module system by using all the dependencies as modules.

Not specifying "@execute phase=compile" so that it runs quickly even with a large project.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
RunMojo()
           
 
Method Summary
protected  ModulesRegistry createModuleRegistry()
          Creates a fully configured module registry.
 void execute()
           
static String toModuleName(String groupId, String artifactId)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunMojo

public RunMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

createModuleRegistry

protected ModulesRegistry createModuleRegistry()
                                        throws IOException
Creates a fully configured module registry.

Throws:
IOException

toModuleName

public static String toModuleName(String groupId,
                                  String artifactId)


Copyright © 2012 Oracle Corporation. All Rights Reserved.