maven-jar-plugin use app-to-import setting make debug error

未關閉
#867 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
20/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
java
領域
devtools

研究方向

先從 issue 中所示的 Maven 外掛程式和相依性設定開始,然後使用所述的雙模組專案重現偵錯啟動。將偵錯產生的暫存 JAR manifest 與正常執行進行比較;當相依性 class path 在偵錯期間存在且不再發生 TypeNotPresentException 時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

ai-triaged bug launch

[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
  1. [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.
image
image

主要語言
TypeScript
星號
591
分支
429
平均合併
1 天 9 小時
30 天內合併 PR
19

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/vscode-java-debug 的其他 Issue

查看 microsoft/vscode-java-debug 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。