Class EnforceExtension
java.lang.Object
org.apache.maven.AbstractMavenLifecycleParticipant
org.apache.maven.extensions.enforcer.EnforceExtension
@Named("enforcer")
public class EnforceExtension
extends org.apache.maven.AbstractMavenLifecycleParticipant
Extends every MavenProject with the maven-enforcer-plugin, adding executions as defined in
.mvn/enforcer-extension.xml
- Since:
- 3.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterProjectsRead
(org.apache.maven.execution.MavenSession session) private static String
private static org.apache.maven.model.PluginExecution
getPluginExecution
(org.codehaus.plexus.util.xml.Xpp3Dom execution) Methods inherited from class org.apache.maven.AbstractMavenLifecycleParticipant
afterSessionEnd, afterSessionStart
-
Field Details
-
ENFORCER_EXTENSION_XML
- See Also:
-
POM_PROPERTIES
- See Also:
-
-
Constructor Details
-
EnforceExtension
public EnforceExtension()
-
-
Method Details
-
afterProjectsRead
public void afterProjectsRead(org.apache.maven.execution.MavenSession session) throws org.apache.maven.MavenExecutionException - Overrides:
afterProjectsRead
in classorg.apache.maven.AbstractMavenLifecycleParticipant
- Throws:
org.apache.maven.MavenExecutionException
-
getPluginExecution
private static org.apache.maven.model.PluginExecution getPluginExecution(org.codehaus.plexus.util.xml.Xpp3Dom execution) -
get
-