maven-profile-selector
Installation
SKILL.md
Maven Profile Selector
This skill helps you select and manage Maven profiles for different network configurations.
When to Use This Skill
Use this skill when the user:
- Switch between different network environments (e.g., development, staging, production) that require different Maven profiles.
Workflow
- Ensure
mvnis installed and available in the system PATH. - Check the
settings.xmlfile for available profiles relative tomvn, such asmvn'sconfdirectory. - Present the user with a list of available profiles and their descriptions.
- Allow the user to select a profile.
- Ask the user whether to change profile, and if confirmed, set the selected profile as the active profile for Maven commands.
- For all subsequent Maven commands, use the selected profile until the user decides to switch again. Replace './mvnw' with
mvnand add-P <selected_profile>.
Example
Related skills