Package hudson.maven
Class ExecutedMojo
java.lang.Object
hudson.maven.ExecutedMojo
- All Implemented Interfaces:
Serializable
Persisted record of mojo execution.
This information is first recorded in the maven process, then sent over the remoting layer to the controller, then persisted via XStream.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Used during the HTML rendering to cache the index. -
Field Summary
Modifier and TypeFieldDescriptionfinal String
Plugin artifact ID.final String
MD5 hash of the plugin jar.final long
How long did it take to execute this goal? in milli-seconds.final String
Optional execution ID, when the same mojo gets executed multiple times.final String
Mojo name.final String
Plugin group ID.final String
Plugin version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns duration in a human readable text.Returns a hyperlink for the plugin name if there's one.protected Object
Lots ofExecutedMojo
s tend to have the same groupId, artifactId, etc., so interning them help with memory consumption.
-
Field Details
-
groupId
Plugin group ID. -
artifactId
Plugin artifact ID. -
version
Plugin version. -
goal
Mojo name. -
executionId
Optional execution ID, when the same mojo gets executed multiple times. -
duration
public final long durationHow long did it take to execute this goal? in milli-seconds. (precision might not be 1ms) -
digest
MD5 hash of the plugin jar.
-
-
Constructor Details
-
ExecutedMojo
-
-
Method Details
-
readResolve
Lots ofExecutedMojo
s 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". -
getDurationString
Returns duration in a human readable text. -
getReadableExecutionId
-
getPluginLink
Returns a hyperlink for the plugin name if there's one. Otherwise null. -
getGoalLink
-