microsoft / microsoft/vscode-java-debug
maven-jar-plugin use app-to-import setting make debug error
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 591
- フォーク
- 429
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 19
説明
[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.


コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue に示されている Maven プラグインと依存関係の設定から始め、説明されている 2 モジュールプロジェクトでデバッグ起動を再現します。デバッグ時に生成された一時 JAR のマニフェストを通常の実行と比較します。デバッグ中に依存関係の class path が存在し、TypeNotPresentException が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100