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
Copy file name to clipboardExpand all lines: .cursor/rules/111-java-maven-deps-and-plugins.mdc
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,11 @@ alwaysApply: false
7
7
8
8
This rule provides a comprehensive, conversational approach to updating Maven pom.xml files with properties, dependencies, plugins, and profiles. It MUST ask questions first to understand the project needs and then conditionally add only relevant components.
9
9
10
+
**⚠️ CRITICAL: NO CACHING OF QUESTIONS ⚠️**
11
+
- NEVER use cached or remembered questions from previous interactions
12
+
- ALWAYS read the template file fresh using file_search and read_file tools
13
+
- Verify all questions and options match the current template content exactly
14
+
10
15
## Pre-requisites Check
11
16
12
17
**CRITICAL**: This step MUST be completed before proceeding to any subsequent steps. Do NOT continue with Step 1 (Project Assessment Questions) until the Maven Wrapper question is fully resolved.
@@ -61,9 +66,11 @@ This rule provides a comprehensive, conversational approach to updating Maven po
61
66
62
67
**MANDATORY PROCESS:**
63
68
64
-
1. **Reference the Template**: Use the questions from [java-maven-questions-template.md](mdc:.cursor/rules/templates/java-maven-questions-template.md)
69
+
1. **ALWAYS READ THE TEMPLATE FRESH**: Before asking any questions, you MUST use the `file_search` and `read_file` tools to locate and read the complete content of `java-maven-questions-template.md`. DO NOT use cached or remembered questions from previous interactions.
70
+
71
+
2. **Reference the Template**: Use the questions from [java-maven-questions-template.md](mdc:.cursor/rules/templates/java-maven-questions-template.md)
65
72
66
-
2. **STRICT ENFORCEMENT RULES:**
73
+
3. **STRICT ENFORCEMENT RULES:**
67
74
- ✅ Ask questions **ONE BY ONE** in the exact order specified in the template
68
75
- ✅ **WAIT** for user response to each question before proceeding to the next
69
76
- ✅ Use the **EXACT wording** from the template questions
@@ -73,15 +80,20 @@ This rule provides a comprehensive, conversational approach to updating Maven po
73
80
- ✅ **Do NOT** assume answers or provide defaults
74
81
- ✅ **Do NOT** skip questions or change their order
75
82
76
-
3. **QUESTION SEQUENCE** (from template):
83
+
4. **QUESTION SEQUENCE** (from template - MUST BE READ FRESH EACH TIME):
77
84
- **Question 1**: [Project Nature](mdc:.cursor/rules/templates/java-maven-questions-template.md#1-project-nature) (single selection from the template)
78
85
- **Question 2**: [Java Version](mdc:.cursor/rules/templates/java-maven-questions-template.md#2-java-version) (single selection from the template)
79
86
- **Question 3**: [Build and Quality Aspects](mdc:.cursor/rules/templates/java-maven-questions-template.md#3-build-and-quality-aspects) (multiple selection allowed from the template)
80
87
- **Question 4**: [Coverage Threshold](mdc:.cursor/rules/templates/java-maven-questions-template.md#4-coverage-threshold) (conditional - only if coverage selected)
81
88
- **Question 5**: [Sonar Configuration](mdc:.cursor/rules/templates/java-maven-questions-template.md#5-sonar-configuration-conditional) (conditional - only if static analysis with Sonar selected)
82
89
- **Question 6**: [Sonar Host Configuration](mdc:.cursor/rules/templates/java-maven-questions-template.md#6-sonar-host-configuration-conditional) (conditional - only if Sonar configuration enabled)
83
90
84
-
4. **VALIDATION CHECKPOINT:**
91
+
5. **TEMPLATE VERIFICATION STEP:**
92
+
- Before asking questions, verify that ALL options from the template are included
93
+
- Cross-check your question content against the freshly read template file
94
+
- If there are discrepancies, re-read the template and correct your questions
95
+
96
+
6. **VALIDATION CHECKPOINT:**
85
97
- **STOP** and verify all applicable questions have been answered
86
98
- **Do NOT proceed** to Step 2 until complete responses received
87
99
- **Confirm** understanding of user selections before implementation
0 commit comments