Commit 7eb214c9e149b4fc54a0d0e649c97cdfdff07559
1 parent
97ba8d5a
调整 pom 结构,避免子项目因自定义插件而报错
Showing
1 changed file
with
63 additions
and
67 deletions
pom.xml
| ... | ... | @@ -140,6 +140,69 @@ |
| 140 | 140 | </execution> |
| 141 | 141 | </executions> |
| 142 | 142 | </plugin> |
| 143 | + | |
| 144 | + | |
| 145 | + <!-- 拷贝依赖包插件 --> | |
| 146 | + <plugin> | |
| 147 | + <groupId>org.apache.maven.plugins</groupId> | |
| 148 | + <artifactId>maven-dependency-plugin</artifactId> | |
| 149 | + <executions> | |
| 150 | + <execution> | |
| 151 | + <id>copy</id> | |
| 152 | + <phase>process-resources</phase> | |
| 153 | + <goals> | |
| 154 | + <goal>copy-dependencies</goal> | |
| 155 | + </goals> | |
| 156 | + </execution> | |
| 157 | + </executions> | |
| 158 | + </plugin> | |
| 159 | + | |
| 160 | + <!-- 单元测试插件 --> | |
| 161 | + <plugin> | |
| 162 | + <groupId>org.apache.maven.plugins</groupId> | |
| 163 | + <artifactId>maven-surefire-plugin</artifactId> | |
| 164 | + <!-- 等效mvn test -Dmaven.surefire.debug | |
| 165 | + <configuration> | |
| 166 | + <debugForkedProcess>true</debugForkedProcess> | |
| 167 | + </configuration> | |
| 168 | + --> | |
| 169 | + </plugin> | |
| 170 | + <!-- 集成测试插件 --> | |
| 171 | + <plugin> | |
| 172 | + <groupId>org.apache.maven.plugins</groupId> | |
| 173 | + <artifactId>maven-failsafe-plugin</artifactId> | |
| 174 | + </plugin> | |
| 175 | + <!-- 覆盖率统计插件 --> | |
| 176 | + <plugin> | |
| 177 | + <groupId>org.jacoco</groupId> | |
| 178 | + <artifactId>jacoco-maven-plugin</artifactId> | |
| 179 | + <version>0.7.9</version> | |
| 180 | + <configuration> | |
| 181 | + <append>true</append> | |
| 182 | + </configuration> | |
| 183 | + <executions> | |
| 184 | + <execution> | |
| 185 | + <id>agent-for-ut</id> | |
| 186 | + <goals> | |
| 187 | + <goal>prepare-agent</goal> | |
| 188 | + </goals> | |
| 189 | + </execution> | |
| 190 | + <execution> | |
| 191 | + <id>agent-for-it</id> | |
| 192 | + <goals> | |
| 193 | + <goal>prepare-agent-integration</goal> | |
| 194 | + </goals> | |
| 195 | + </execution> | |
| 196 | + <execution> | |
| 197 | + <id>jacoco-site</id> | |
| 198 | + <phase>test</phase> | |
| 199 | + <goals> | |
| 200 | + <goal>report</goal> | |
| 201 | + </goals> | |
| 202 | + </execution> | |
| 203 | + </executions> | |
| 204 | + </plugin> | |
| 205 | + <!-- 性能测试,安全测试,docker发布插件,暂略 --> | |
| 143 | 206 | </plugins> |
| 144 | 207 | </pluginManagement> |
| 145 | 208 | <plugins> |
| ... | ... | @@ -175,73 +238,6 @@ |
| 175 | 238 | </execution> |
| 176 | 239 | </executions> |
| 177 | 240 | </plugin> |
| 178 | - | |
| 179 | - | |
| 180 | - | |
| 181 | - | |
| 182 | - <!-- 拷贝依赖包插件 --> | |
| 183 | - <plugin> | |
| 184 | - <groupId>org.apache.maven.plugins</groupId> | |
| 185 | - <artifactId>maven-dependency-plugin</artifactId> | |
| 186 | - <executions> | |
| 187 | - <execution> | |
| 188 | - <id>copy</id> | |
| 189 | - <phase>process-resources</phase> | |
| 190 | - <goals> | |
| 191 | - <goal>copy-dependencies</goal> | |
| 192 | - </goals> | |
| 193 | - </execution> | |
| 194 | - </executions> | |
| 195 | - </plugin> | |
| 196 | - | |
| 197 | - <!-- 单元测试插件 --> | |
| 198 | - <plugin> | |
| 199 | - <groupId>org.apache.maven.plugins</groupId> | |
| 200 | - <artifactId>maven-surefire-plugin</artifactId> | |
| 201 | - <!-- 等效mvn test -Dmaven.surefire.debug | |
| 202 | - <configuration> | |
| 203 | - <debugForkedProcess>true</debugForkedProcess> | |
| 204 | - </configuration> | |
| 205 | - --> | |
| 206 | - </plugin> | |
| 207 | - <!-- 集成测试插件 --> | |
| 208 | - <plugin> | |
| 209 | - <groupId>org.apache.maven.plugins</groupId> | |
| 210 | - <artifactId>maven-failsafe-plugin</artifactId> | |
| 211 | - </plugin> | |
| 212 | - <!-- 覆盖率统计插件 --> | |
| 213 | - <plugin> | |
| 214 | - <groupId>org.jacoco</groupId> | |
| 215 | - <artifactId>jacoco-maven-plugin</artifactId> | |
| 216 | - <version>0.7.9</version> | |
| 217 | - <configuration> | |
| 218 | - <append>true</append> | |
| 219 | - </configuration> | |
| 220 | - <executions> | |
| 221 | - <execution> | |
| 222 | - <id>agent-for-ut</id> | |
| 223 | - <goals> | |
| 224 | - <goal>prepare-agent</goal> | |
| 225 | - </goals> | |
| 226 | - </execution> | |
| 227 | - <execution> | |
| 228 | - <id>agent-for-it</id> | |
| 229 | - <goals> | |
| 230 | - <goal>prepare-agent-integration</goal> | |
| 231 | - </goals> | |
| 232 | - </execution> | |
| 233 | - <execution> | |
| 234 | - <id>jacoco-site</id> | |
| 235 | - <phase>test</phase> | |
| 236 | - <goals> | |
| 237 | - <goal>report</goal> | |
| 238 | - </goals> | |
| 239 | - </execution> | |
| 240 | - </executions> | |
| 241 | - </plugin> | |
| 242 | - <!-- 性能测试,安全测试,docker发布插件,暂略 --> | |
| 243 | - | |
| 244 | - | |
| 245 | 241 | </plugins> |
| 246 | 242 | </build> |
| 247 | 243 | ... | ... |