Class MavenProjectConfigCollector


  • @Component(role=org.apache.maven.AbstractMavenLifecycleParticipant.class)
    public class MavenProjectConfigCollector
    extends org.apache.maven.AbstractMavenLifecycleParticipant
    Collects settings from a maven project and stores them in the a config file for later use by MavenProjectSupplier. Must be installed as a maven extension to run.
    • Constructor Detail

      • MavenProjectConfigCollector

        public MavenProjectConfigCollector()
    • Method Detail

      • assertSupportedProject

        public static Path assertSupportedProject​(org.apache.maven.execution.MavenSession session)
        Assert that the project is one whose configuration we can support.
        Parameters:
        session - The session.
        Returns:
        The project directory.
      • afterProjectsRead

        public void afterProjectsRead​(org.apache.maven.execution.MavenSession session)
        Overrides:
        afterProjectsRead in class org.apache.maven.AbstractMavenLifecycleParticipant
      • afterSessionEnd

        public void afterSessionEnd​(org.apache.maven.execution.MavenSession session)
        Overrides:
        afterSessionEnd in class org.apache.maven.AbstractMavenLifecycleParticipant