GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codehaus-plexus/plexus-interactivity: Prompts the user on the console

BranchesTags
Open more actions menu

Latest commit

 

History

154 Commits
154 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
plexus-interactivity-api
plexus-interactivity-api
 
 
src/site
src/site
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Plexus Interactivity

Maven Central GitHub CI Reproducible Builds License

Asks the user a question on the console. This is what an interactive Maven plugin uses to prompt — the archetype plugin's "Define value for property…" comes from here.

Prompter handles the common cases: a plain question, a question with a default, a question restricted to a list of allowed answers, and a password prompt that does not echo. InputHandler and OutputHandler are the lower-level pieces underneath.

Status

Maintained, quietly. The API is small and settled; expect dependency updates rather than new features.

Using it

<dependency>
  <groupId>org.codehaus.plexus</groupId>
  <artifactId>plexus-interactivity-api</artifactId>
</dependency>

Check the badge above for the current version. Note the artifact is plexus-interactivity-api; plexus-interactivity is the aggregator.

@Inject
Prompter prompter;

String name = prompter.prompt( "Project name" );
String scope = prompter.prompt( "Scope", List.of( "compile", "test" ), "compile" );
String secret = prompter.promptForPassword( "Password" );

Check the badge above for the current version.

A plugin that prompts should check MavenSession.getRequest().isInteractiveMode() first, so it does not hang a batch-mode build.

Requirements

Java 8 or later.

Documentation

  • Project site
  • Javadoc
  • Release notes

Contributing

See CONTRIBUTING.md. In short: mvn verify builds, and run mvn spotless:apply before pushing or CI will fail on formatting.

Please report security vulnerabilities privately — see SECURITY.md, not a public issue.

About

Prompts the user on the console

codehaus-plexus.github.io/plexus-interactivity/

Topics

maven

Resources

Readme

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

4 stars

Watchers

4 watching

Forks

5 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.