You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improving maven rules
* Update README
* Enabling scope and removing spring boot rules
* Improving the regex to identify the cursor rules
* Minor refactoring
- Rule 4: Use Build Profiles for Environment-Specific Configurations
16
16
- Rule 5: Keep POMs Readable and Maintainable
17
17
- Rule 6: Manage Repositories Explicitly
18
+
- Rule 7: Centralize Version Management with Properties
18
19
19
20
## Rule 1: Effective Dependency Management
20
21
@@ -408,3 +409,156 @@ Description: Prefer dependencies from Maven Central. If custom repositories are
408
409
</dependencies>
409
410
</project>
410
411
```
412
+
413
+
## Rule 7: Centralize Version Management with Properties
414
+
415
+
Title: Use Properties to Manage Dependency and Plugin Versions
416
+
Description: Define all dependency and plugin versions in the `<properties>` section rather than hardcoding them throughout the POM. This centralizes version management, makes updates easier, reduces duplication, and helps maintain consistency across related dependencies. Use consistent property naming conventions: `maven-plugin-[name].version` for Maven plugins, simple names like `[library].version` for dependencies, and descriptive names for quality thresholds like `coverage.level`.
0 commit comments