public Mojo lookupMojo( String groupId, String artifactId, String version, String goal, PlexusConfiguration pluginConfiguration ) throws Exception { return testCase.lookupMojo( groupId, artifactId, version, goal, pluginConfiguration ); }
/** * 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 ); }
/** * 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 ); }
/** * 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 ) ); }
/** * 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 ); }
/** * 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 ); }
public Mojo lookupMojo( String groupId, String artifactId, String version, String goal, PlexusConfiguration pluginConfiguration ) throws Exception { return testCase.lookupMojo( groupId, artifactId, version, goal, pluginConfiguration ); }
/** * 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 ); }
/** * 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 ); }
/** * 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 ) ); }
@Override public Mojo lookupMojo(String goal, File pom) throws Exception { return super.lookupMojo(goal, pom); }
/** * 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 ); }
/** * 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 ); }