public final class ExecutedMojo extends Object implements Serializable
This information is first recorded in the maven process, then sent over the remoting layer to the master, then persisted via XStream.
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecutedMojo.Cache
Used during the HTML rendering to cache the index.
|
| Modifier and Type | Field and Description |
|---|---|
String |
artifactId
Plugin artifact ID.
|
String |
digest
MD5 hash of the plugin jar.
|
long |
duration
How long did it take to execute this goal? in milli-seconds.
|
String |
executionId
Optional execution ID, when the same mojo gets executed multiple times.
|
String |
goal
Mojo name.
|
String |
groupId
Plugin group ID.
|
String |
version
Plugin version.
|
| Constructor and Description |
|---|
ExecutedMojo(MojoInfo mojo,
long duration) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDurationString()
Returns duration in a human readable text.
|
String |
getGoalLink(ExecutedMojo.Cache c) |
String |
getPluginLink(ExecutedMojo.Cache c)
Returns a hyperlink for the plugin name if there's one.
|
String |
getReadableExecutionId() |
protected Object |
readResolve()
Lots of
ExecutedMojos tend to have the same groupId, artifactId, etc., so interning them help
with memory consumption. |
public final String groupId
public final String artifactId
public final String version
public final String goal
public final String executionId
public final long duration
public final String digest
public ExecutedMojo(MojoInfo mojo, long duration)
protected Object readResolve()
ExecutedMojos tend to have the same groupId, artifactId, etc., so interning them help
with memory consumption.
TODO: better if XStream has a declarative way of marking fields as "target for intern".public String getDurationString()
public String getReadableExecutionId()
public String getPluginLink(ExecutedMojo.Cache c)
public String getGoalLink(ExecutedMojo.Cache c)
Copyright © 2016–2017. All rights reserved.