![JAR search and dependency download from the Maven repository](/logo.png)
shiver.me.timbers.plugins.invoker.multi.DefaultMultiInvokerLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-invoker-maven-plugin Show documentation
Show all versions of multi-invoker-maven-plugin Show documentation
This plugin can be used to invoke the current maven project multiple times with different profiles or
properties.
The newest version!
package shiver.me.timbers.plugins.invoker.multi;
import org.apache.maven.shared.invoker.InvocationRequest;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import static java.lang.String.format;
/**
* @author Karl Bennett
*/
@Component(role = MultiInvokerLogger.class, hint = "default")
class DefaultMultiInvokerLogger implements MultiInvokerLogger {
@Requirement
private MavenStrings mavenStrings;
DefaultMultiInvokerLogger() {
}
DefaultMultiInvokerLogger(MavenStrings mavenStrings) {
this.mavenStrings = mavenStrings;
}
@Override
public void log(MultiInvokerConfiguration configuration, InvocationRequest request) {
configuration.getLog().info(
format(
"Invoking (%s): mvn %s%s%s",
mavenStrings.toArtifactId(configuration),
mavenStrings.toGoals(request),
mavenStrings.toProfiles(request),
mavenStrings.toProperties(configuration, request)
)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy