public PlexusConfiguration extractPluginConfiguration( String artifactId, File pom ) throws Exception { return testCase.extractPluginConfiguration( artifactId, pom ); }
public PlexusConfiguration extractPluginConfiguration( String artifactId, Xpp3Dom pomDom ) throws Exception { return testCase.extractPluginConfiguration( artifactId, pomDom ); }
/** * @param artifactId * @param pom * @return the plexus configuration * @throws Exception */ protected PlexusConfiguration extractPluginConfiguration( String artifactId, File pom ) throws Exception { Reader reader = ReaderFactory.newXmlReader( pom ); Xpp3Dom pomDom = Xpp3DomBuilder.build( reader ); return extractPluginConfiguration( artifactId, pomDom ); }
/** * Configure the mojo * * @param mojo * @param artifactId * @param pom * @return a Mojo instance * @throws Exception */ protected Mojo configureMojo( Mojo mojo, String artifactId, File pom ) throws Exception { validateContainerStatus(); PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom ); ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub(); configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() ); return mojo; }
/** * 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 PlexusConfiguration extractPluginConfiguration( String artifactId, Xpp3Dom pomDom ) throws Exception { return testCase.extractPluginConfiguration( artifactId, pomDom ); }
public PlexusConfiguration extractPluginConfiguration( String artifactId, File pom ) throws Exception { return testCase.extractPluginConfiguration( artifactId, pom ); }
/** * @param artifactId * @param pom * @return the plexus configuration * @throws Exception */ protected PlexusConfiguration extractPluginConfiguration( String artifactId, File pom ) throws Exception { Reader reader = ReaderFactory.newXmlReader( pom ); Xpp3Dom pomDom = Xpp3DomBuilder.build( reader ); return extractPluginConfiguration( artifactId, pomDom ); }
/** * Configure the mojo * * @param mojo * @param artifactId * @param pom * @return a Mojo instance * @throws Exception */ protected Mojo configureMojo( Mojo mojo, String artifactId, File pom ) throws Exception { validateContainerStatus(); PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom ); ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub(); configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() ); return mojo; }
/** * 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 ); }