Class IkeEnvMojo

All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo

@Mojo(name="env", projectRequired=false, aggregator=true) public class IkeEnvMojo extends AbstractGoalMojo
Print runtime environment diagnostics — terminal/console capability, stdin, and relevant system properties.

Investigative tooling for the interactive-prompt work (IKE-Network/ike-issues#385). The decisive question for how an IkePrompter should render is whether the runner gave Maven a real terminal. System.console() answers it: non-null means a real terminal (inline prompts work), null means piped (degrade to an own-line label).

Run it from both IntelliJ's Maven tool window and the Terminal tool window and compare the output — that settles, by measurement, what each context actually provides.

Read-only. Usage: mvn ike:env

  • Constructor Details

    • IkeEnvMojo

      public IkeEnvMojo()
      Creates this goal instance.
  • Method Details

    • runGoal

      protected GoalReportSpec runGoal() throws org.apache.maven.api.plugin.MojoException
      Specified by:
      runGoal in class AbstractGoalMojo
      Throws:
      org.apache.maven.api.plugin.MojoException