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

 

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐