maven-jar-plugin use app-to-import setting make debug error
還沒有人認領這個 Issue。
評估
研究方向
先從 issue 中所示的 Maven 外掛程式和相依性設定開始,然後使用所述的雙模組專案重現偵錯啟動。將偵錯產生的暫存 JAR manifest 與正常執行進行比較;當相依性 class path 在偵錯期間存在且不再發生 TypeNotPresentException 時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
[provide a description of the issue]
Environment
- Operating System:
Windows_NT x64 10.0.17763 - JDK version:
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode) - Visual Studio Code version:
version: 1.48.1 (system setup)
commit: 3dd905126b34dcd4de81fa624eb3a8cbe7485f13 - Java extension version:
v0.10.0 - Java Debugger extension version:
v0.10.0
Steps To Reproduce
- [step 1]
I have two module in a project.They are all application.The gvt-bdp-stats-scheduler module dependent on gvt-bdp-app module.
the A module's setting like this.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<!--to be imported on other projects-->
<classifier>app-to-import</classifier>
<includes>
<include>**/entity/*</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
the B module's setting like this.
<dependency>
<groupId>com.gvt.bdp</groupId>
<artifactId>gvt-bdp-app</artifactId>
<version>${revision}</version>
<classifier>app-to-import</classifier>
</dependency>
[attach a sample project reproducing the error]
attach logs
Current Result
It's normal when I run with jar.But in debug, it cause java.lang.TypeNotPresentException: Type com.entity.OrderStatsEntity not present
Expected Result
The project work in Idea is well.
Additional Informations
When I open the run jar file of temp, the MANIFEST.MF there is no gvt-bdp-app's class-path definition in the file when I debug gvt-bdp-stats-scheduler.


- 主要語言
- TypeScript
- 星號
- 591
- 分支
- 429
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 19
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/vscode-java-debug 的其他 Issue
-
ai-triaged enhancement
難度 3/5 1-2 天 新手友好度 55/100
microsoft/vscode-java-debug#1689 · 2 則留言 ·
-
ai-triaged bug
microsoft/vscode-java-debug#1666 · 1 則留言 · 已指派 1 人 ·
-
ai-triaged bug
難度 3/5 1-2 天 新手友好度 48/100
microsoft/vscode-java-debug#1658 · 1 則留言 ·
-
ai-triaged enhancement
難度 4/5 3-5 天 新手友好度 45/100
microsoft/vscode-java-debug#1628 · 3 則留言 ·
-
Feature support. 未關閉ai-triaged enhancement
難度 5/5 一週以上 新手友好度 25/100
microsoft/vscode-java-debug#1616 · 1 則留言 ·
查看 microsoft/vscode-java-debug 的全部 Issue
相似的 Issue
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難度 2/5 1-3 小時 新手友好度 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難度 1/5 1 小時以內 新手友好度 76/100
-
code-quality refactoring
難度 2/5 1-3 小時 新手友好度 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
難度 2/5 1-3 小時 新手友好度 74/100
langchain-ai/deepagents#6450 ·
-
難度 1/5 1 小時以內 新手友好度 88/100
vercel/react-tweet#225 ·