|
66 | 66 | <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
|
67 | 67 | </configuration>
|
68 | 68 | </plugin>
|
| 69 | + |
69 | 70 | <plugin>
|
70 | 71 | <groupId>org.apache.maven.plugins</groupId>
|
71 | 72 | <artifactId>maven-compiler-plugin</artifactId>
|
|
80 | 81 | </compilerArgs>
|
81 | 82 | </configuration>
|
82 | 83 | </plugin>
|
| 84 | + |
83 | 85 | <plugin>
|
84 | 86 | <groupId>org.jacoco</groupId>
|
85 | 87 | <artifactId>jacoco-maven-plugin</artifactId>
|
|
99 | 101 | </execution>
|
100 | 102 | </executions>
|
101 | 103 | </plugin>
|
| 104 | + |
| 105 | + <!-- ✅ Fixed Checkstyle --> |
102 | 106 | <plugin>
|
103 |
| - <groupId>org.apache.maven.plugins</groupId> |
104 |
| - <artifactId>maven-checkstyle-plugin</artifactId> |
105 |
| - <version>3.6.0</version> |
106 |
| - <executions> |
107 |
| - <execution> |
108 |
| - <id>checkstyle</id> |
109 |
| - <phase>verify</phase> |
110 |
| - <goals> |
111 |
| - <goal>check</goal> |
112 |
| - </goals> |
113 |
| - <configuration> |
114 |
| - <configLocation>checkstyle.xml</configLocation> |
115 |
| - <consoleOutput>true</consoleOutput> |
116 |
| - <includeTestSourceDirectory>true</includeTestSourceDirectory> |
117 |
| - <violationSeverity>warning</violationSeverity> |
118 |
| - <!-- 👇 This line makes sure violations don’t fail your build --> |
119 |
| - <failOnViolation>false</failOnViolation> |
120 |
| - </configuration> |
121 |
| - </execution> |
122 |
| - </executions> |
123 |
| - <dependencies> |
124 |
| - <dependency> |
125 |
| - <groupId>com.puppycrawl.tools</groupId> |
126 |
| - <artifactId>checkstyle</artifactId> |
127 |
| - <version>11.0.0</version> |
128 |
| - </dependency> |
129 |
| - </dependencies> |
130 |
| -</plugin> |
| 107 | + <groupId>org.apache.maven.plugins</groupId> |
| 108 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 109 | + <version>3.6.0</version> |
| 110 | + <executions> |
| 111 | + <execution> |
| 112 | + <id>checkstyle</id> |
| 113 | + <phase>verify</phase> |
| 114 | + <goals> |
| 115 | + <goal>check</goal> |
| 116 | + </goals> |
| 117 | + <configuration> |
| 118 | + <configLocation>checkstyle.xml</configLocation> |
| 119 | + <consoleOutput>true</consoleOutput> |
| 120 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 121 | + <violationSeverity>warning</violationSeverity> |
| 122 | + <failOnViolation>false</failOnViolation> |
| 123 | + <includes> |
| 124 | + <include>src/main/java/**/*.java</include> |
| 125 | + <include>src/test/java/**/*.java</include> |
| 126 | + </includes> |
| 127 | + <excludes> |
| 128 | + <exclude>target/**</exclude> |
| 129 | + </excludes> |
| 130 | + </configuration> |
| 131 | + </execution> |
| 132 | + </executions> |
| 133 | + <dependencies> |
| 134 | + <dependency> |
| 135 | + <groupId>com.puppycrawl.tools</groupId> |
| 136 | + <artifactId>checkstyle</artifactId> |
| 137 | + <version>11.0.0</version> |
| 138 | + </dependency> |
| 139 | + </dependencies> |
| 140 | + </plugin> |
131 | 141 |
|
132 | 142 | <plugin>
|
133 | 143 | <groupId>com.github.spotbugs</groupId>
|
|
150 | 160 | </plugins>
|
151 | 161 | </configuration>
|
152 | 162 | </plugin>
|
| 163 | + |
153 | 164 | <plugin>
|
154 | 165 | <groupId>org.apache.maven.plugins</groupId>
|
155 | 166 | <artifactId>maven-pmd-plugin</artifactId>
|
|
0 commit comments