P E N C I L
Login
Maven phase + goal

  1. Lifecyle-phase:
    Maven lifecyle (ex: lifecyle clean) contains multiple phase (pre-clean, clean, post-clean)
    mvn clean:  mean run life cycle clean
  2. Plugin-goal
    Plugin has a set of goal. Each goal is bind (by default) to a phase-
  3. Pom.xml
    For example, pom.xml uses plugin https://github.com/spotify/dockerfile-maven
    The "action": mvn dockerfile:build
    In plugin definitions:
    <plugin>
         ........
        <execution>
           <id>whatever</id>
           <goals> <goal> push (specific to plugin and can be called manually ex: dockerfile:push) </goal></goals>
           <phase>package</phase>
               </execution>
         </plugin>
  4. command line
    1. mvn clean                   (run whole cylce clean)
    2. mvn package               ( run up to a phase package)
    3. mvn dcokerfile:puhse  (run all phases upto phase linked to goal docker:push)