idea开发maven插件调试

maven插件坐标

cn.sning
mavenplugindemo
2.0-SNAPSHOT

项目引用maven插件配置


    cn.sning
    mavenplugindemo
    2.0-SNAPSHOT   
    
                   
            compileid
            compile
            
                compile
                        
               
    

调试步骤

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插件项目源程序中打上断点,即可等待中断调试

idea开发maven插件调试_第1张图片

3)在引用maven插件的项目开启Debug

idea开发maven插件调试_第2张图片

 

你可能感兴趣的:(Maven)