public final class Mojos extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.codehaus.plexus.util.xml.Xpp3Dom |
getConfiguration(org.apache.maven.plugin.MojoExecution mojoExecution) |
static String |
getProperty(org.apache.maven.project.MavenProject project,
org.apache.maven.execution.MavenSession session,
String name)
Returns a mandatory Maven property.
|
static int |
waitFor(ProcessBuilder processBuilder,
org.apache.maven.plugin.logging.Log log)
Launches and waits for a process to complete.
|
public static org.codehaus.plexus.util.xml.Xpp3Dom getConfiguration(org.apache.maven.plugin.MojoExecution mojoExecution)
mojoExecution - an instance of MojoExecutionpublic static String getProperty(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, String name)
project - an instance of MavenProjectsession - an instance of MavenSessionname - the name of the propertypublic static int waitFor(ProcessBuilder processBuilder, org.apache.maven.plugin.logging.Log log) throws IOException, InterruptedException
processBuilder - the process builderlog - the Maven logIOException - if an I/O error occurs while running the processInterruptedException - if the thread was interruptedCopyright © 2024. All rights reserved.