maven插件坐标
<groupId>cn.sning</groupId> <artifactId>mavenplugindemo</artifactId> <version>2.0-SNAPSHOT</version>
项目引用maven插件配置
<plugin> <groupId>cn.sning</groupId> <artifactId>mavenplugindemo</artifactId> <version>2.0-SNAPSHOT</version> <executions> <execution> <id>compileid</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin>
调试步骤
1) 在cmd中输入mvnDebug groupId:artifactId:version:goal
C:\Users\18093941>mvnDebug cn.sning:mavenplugindemo:2.0-SNAPSHOT:compile
Listening for transport dt_socket at address: 8000
会提示监听8000端口
2)在maven插件项目源程序中打上断点,即可等待中断调试
3)在引用maven插件的项目开启Debug