You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. Here is my maven project structure. fcs-common is a common module which included the shared main class, and other modules depend on the module fcs-common. fcs-aids-service, fcs-trs-service and such on other modules is microservice in Spring Boot framework.
project
fcs-common
fcs-aids-service
fcs-trs-service
fcs-xxx-service
...
I try to launch my fcs-trs-service, and here is my launch.json.
I tried to unzip the temporary jar package cp_8y8tqxdwz2j16d0int33yh8aa.jar,and the META-INF/MANIFEST.MF showed that its classpath included fcs-aids-service/target/classes/ and fcs-common/target/classes/.
So, I guess that the java debugger launched the fcs-aids-service module in default lexicographic order, and I need use other configurations to specify the module that I want to launch.
The text was updated successfully, but these errors were encountered:
@pigbayspy I don't understand what's your issue. Could you provide a specific project and steps for us to reproduce the problem? This would be very helpful.
Regarding the launching behavior, Java Debugger typically uses the mainClass as the entry point and locates the project that contains the main class. It then calculates the classpaths of the containing project, which includes the project’s source path and all its dependencies. These classpaths are then added to the final command line as the -cp parameter.
Hi there. Here is my maven project structure.
fcs-common
is a common module which included the shared main class, and other modules depend on the modulefcs-common
.fcs-aids-service
,fcs-trs-service
and such on other modules is microservice in Spring Boot framework.project
I try to launch my
fcs-trs-service
, and here is mylaunch.json
.Actually, I found that the
fcs-aids-service
was launched, and here is the command line:& 'D:\jdk8\bin\java.exe' '-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:53232' '-DserviceName=fcs-trs-service' '-Dspring.profiles.active=beta' '-cp' 'C:\Users\Y00017~1\AppData\Local\Temp\cp_8y8tqxdwz2j16d0int33yh8aa.jar' 'com.hihonor.zeus.loader.ZeusAppMain'
I tried to unzip the temporary jar package cp_8y8tqxdwz2j16d0int33yh8aa.jar,and the
META-INF/MANIFEST.MF
showed that its classpath includedfcs-aids-service/target/classes/
andfcs-common/target/classes/
.So, I guess that the java debugger launched the
fcs-aids-service
module in default lexicographic order, and I need use other configurations to specify the module that I want to launch.The text was updated successfully, but these errors were encountered: