Task 2.3: Migrate Commons CLI
Open
Nobody has claimed this yet.
Team : Platform
Type : Task
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Task Description
Replace dot.commons-cli with standard commons-cli:commons-cli dependency
Status: 🔄 PENDING
Scope
- Update import statements from repackaged Commons CLI to standard
- Remove
dot.commons-clifrom POM files - Add standard
commons-cli:commons-clidependency to BOM - Test command-line interface functionality
Implementation Plan
-
Dependency Update:
- Remove
com.dotcms.lib:dot.commons-clifrom BOM and dotCMS POM - Add standard
commons-cli:commons-clito BOM with appropriate version - Update dotCMS POM to use standard dependency
- Remove
-
Code Migration:
- Find all imports:
com.dotcms.repackage.org.apache.commons.cli.* - Replace with:
org.apache.commons.cli.* - Limited usage expected based on analysis
- Find all imports:
-
Testing:
- Test command-line interface functionality
- Verify CLI parsing works correctly
- Run related unit tests
Acceptance Criteria
- [ ] All Commons CLI imports updated from repackaged to standard
- [ ] Standard Commons CLI dependency added to BOM
- [ ] Repackaged Commons CLI dependency removed from POM files
- [ ] All CLI functionality tests pass
- [ ] No functional regressions in command-line processing
- [ ] Integration tests pass
Claude Assistance Benefits
- Import Updates: Claude can quickly identify and update all Commons CLI imports
- Usage Analysis: Analyze how Commons CLI is used in the codebase
- Testing Support: Help identify CLI test cases that need verification
- Compatibility Check: Verify version compatibility with existing code
Related
- Epic: #32675 - Remove Repackaged Dependencies
- Phase: 2 - Low-Risk Migrations
- Priority: Low
- Estimated Effort: 1 day (with Claude assistance)
Technical Notes
- Commons CLI is used for command-line argument parsing
- Usage is limited in the codebase
- Verify compatibility with existing CLI interfaces
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the BOM and dotCMS POM entries for com.dotcms.lib:dot.commons-cli, then search the codebase for com.dotcms.repackage.org.apache.commons.cli imports. Update the dependency and imports as described, and run the related unit and integration tests to verify CLI parsing and command-line processing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, cli
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100