Tabnine Logo
AbstractMojoTestCase.lookupMojo
Code IndexAdd Tabnine to your IDE (free)

How to use
lookupMojo
method
in
org.apache.maven.plugin.testing.AbstractMojoTestCase

Best Java code snippets using org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo (Showing top 13 results out of 315)

origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

public Mojo lookupMojo( String groupId, String artifactId, String version, String goal,
              PlexusConfiguration pluginConfiguration )
  throws Exception
{
  return testCase.lookupMojo( groupId, artifactId, version, goal, pluginConfiguration );
}
origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the actual subprojects pom
 *
 * @param goal
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
public Mojo lookupMojo( String goal, File pom )
  throws Exception
{
  return testCase.lookupMojo( goal, pom );
}
origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the subproject pom
 *
 * @param goal
 * @param pluginPom
 * @return a Mojo instance
 * @throws Exception
 */
public Mojo lookupMojo( String goal, String pluginPom )
  throws Exception
{
  return testCase.lookupMojo( goal, pluginPom );
}
origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the subproject pom
 *
 * @param goal
 * @param pluginPom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo lookupMojo( String goal, String pluginPom )
  throws Exception
{
  return lookupMojo( goal, new File( pluginPom ) );
}
origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the actual subprojects pom
 *
 * @param goal
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo lookupEmptyMojo( String goal, File pom )
  throws Exception
{
  File pluginPom = new File( getBasedir(), "pom.xml" );
  Xpp3Dom pluginPomDom = Xpp3DomBuilder.build( ReaderFactory.newXmlReader( pluginPom ) );
  String artifactId = pluginPomDom.getChild( "artifactId" ).getValue();
  String groupId = resolveFromRootThenParent( pluginPomDom, "groupId" );
  String version = resolveFromRootThenParent( pluginPomDom, "version" );
  return lookupMojo( groupId, artifactId, version, goal, null );
}
origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the actual subprojects pom
 *
 * @param goal
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo lookupMojo( String goal, File pom )
  throws Exception
{
  File pluginPom = new File( getBasedir(), "pom.xml" );
  Xpp3Dom pluginPomDom = Xpp3DomBuilder.build( ReaderFactory.newXmlReader( pluginPom ) );
  String artifactId = pluginPomDom.getChild( "artifactId" ).getValue();
  String groupId = resolveFromRootThenParent( pluginPomDom, "groupId" );
  String version = resolveFromRootThenParent( pluginPomDom, "version" );
  PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom );
  return lookupMojo( groupId, artifactId, version, goal, pluginConfiguration );
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

public Mojo lookupMojo( String groupId, String artifactId, String version, String goal,
              PlexusConfiguration pluginConfiguration )
  throws Exception
{
  return testCase.lookupMojo( groupId, artifactId, version, goal, pluginConfiguration );
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the subproject pom
 *
 * @param goal
 * @param pluginPom
 * @return a Mojo instance
 * @throws Exception
 */
public Mojo lookupMojo( String goal, String pluginPom )
  throws Exception
{
  return testCase.lookupMojo( goal, pluginPom );
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the actual subprojects pom
 *
 * @param goal
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
public Mojo lookupMojo( String goal, File pom )
  throws Exception
{
  return testCase.lookupMojo( goal, pom );
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the subproject pom
 *
 * @param goal
 * @param pluginPom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo lookupMojo( String goal, String pluginPom )
  throws Exception
{
  return lookupMojo( goal, new File( pluginPom ) );
}
origin: org.nuiton/maven-helper-plugin

@Override
public Mojo lookupMojo(String goal, File pom) throws Exception {
  return super.lookupMojo(goal, pom);
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the actual subprojects pom
 *
 * @param goal
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo lookupEmptyMojo( String goal, File pom )
  throws Exception
{
  File pluginPom = new File( getBasedir(), "pom.xml" );
  Xpp3Dom pluginPomDom = Xpp3DomBuilder.build( ReaderFactory.newXmlReader( pluginPom ) );
  String artifactId = pluginPomDom.getChild( "artifactId" ).getValue();
  String groupId = resolveFromRootThenParent( pluginPomDom, "groupId" );
  String version = resolveFromRootThenParent( pluginPomDom, "version" );
  return lookupMojo( groupId, artifactId, version, goal, null );
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Lookup the mojo leveraging the actual subprojects pom
 *
 * @param goal
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo lookupMojo( String goal, File pom )
  throws Exception
{
  File pluginPom = new File( getBasedir(), "pom.xml" );
  Xpp3Dom pluginPomDom = Xpp3DomBuilder.build( ReaderFactory.newXmlReader( pluginPom ) );
  String artifactId = pluginPomDom.getChild( "artifactId" ).getValue();
  String groupId = resolveFromRootThenParent( pluginPomDom, "groupId" );
  String version = resolveFromRootThenParent( pluginPomDom, "version" );
  PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom );
  return lookupMojo( groupId, artifactId, version, goal, pluginConfiguration );
}
org.apache.maven.plugin.testingAbstractMojoTestCaselookupMojo

Javadoc

Lookup the mojo leveraging the actual subprojects pom

Popular methods of AbstractMojoTestCase

  • setUp
  • tearDown
  • getContainer
  • assertNotNull
  • configureMojo
    Configure the mojo with the given plexus configuration
  • extractPluginConfiguration
  • fail
  • finalizeMojoConfiguration
  • getBasedir
  • getPluginDescriptorLocation
  • getPluginDescriptorPath
  • getPublicDescriptorStream
  • getPluginDescriptorPath,
  • getPublicDescriptorStream,
  • getVariableValueFromObject,
  • getVariablesAndValuesFromObject,
  • lookup,
  • lookupConfiguredMojo,
  • lookupEmptyMojo,
  • newMavenSession,
  • newMojoExecution

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BoxLayout (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now