[英]How to set up a maven debug profile for a maven java project
我正在嘗試在Eclipse Photon 2018/12中調試Maven黃瓜寧靜Java項目。 請告訴我如何設置maven調試配置文件並運行,以便可以通過設置斷點來調試代碼。
這取決於您的需求。 如果要調試測試,請使用以下配置文件:
<project
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>...</version>
<packaging>...</packaging>
<repositories>
...
</repositories>
<distributionManagement>
...
</distributionManagement>
<profiles>
<profile>
<id>debug</id>
<properties>
<maven.surefire.debug>test</maven.surefire.debug>
</properties>
</profile>
</profiles>
<build>
...
</build>
<dependencies>
...
</dependencies>
</project>
但是,如果不是這種情況,那么你可以簡單地配置您的Eclipse IDE做這個 。
希望能幫助到你。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.