Skip to content

fix issue #1446 - VSCode project loading failure#1475

Merged
andreasrosdal merged 2 commits intomasterfrom
copilot/fix-spring-boot-integration
Feb 16, 2026
Merged

fix issue #1446 - VSCode project loading failure#1475
andreasrosdal merged 2 commits intomasterfrom
copilot/fix-spring-boot-integration

Conversation

Copy link
Contributor

Copilot AI commented Feb 16, 2026

Plan to fix issue #1446 - VSCode project loading failure

The issue is that openpdf-html/pom.xml has a resource configuration that references ../ which causes VSCode's Java extension to fail with:

java.lang.IllegalArgumentException: Path must include project and resource name: /

Plan:

  • Understand the issue: Lines 92-98 in openpdf-html/pom.xml have a problematic resource configuration that references parent directory
  • Research the solution: Use maven-resources-plugin with copy-resources goal instead of resource configuration
  • Update openpdf-html/pom.xml to replace the problematic resource section with maven-resources-plugin
  • Build and test the project to ensure LICENSE.md is still included in the jar
  • Run tests to ensure no regressions (2 test failures are pre-existing network issues, unrelated to this change)
  • Run code review and security checks (both passed)

Summary

Successfully fixed the VSCode project loading issue by:

  1. Removing the problematic <resource><directory>../</directory> configuration
  2. Adding maven-resources-plugin with copy-resources goal that properly copies LICENSE.md using ${project.basedir}/..
  3. Verified LICENSE.md is properly included in the jar
  4. All code review and security checks passed

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…with maven-resources-plugin

Co-authored-by: andreasrosdal <259156774+andreasrosdal@users.noreply.github.com>
@sonarqubecloud
Copy link

@andreasrosdal andreasrosdal changed the title [WIP] Fix Spring Boot integration issue in OpenPDF fix issue #1446 - VSCode project loading failure Feb 16, 2026
@andreasrosdal andreasrosdal marked this pull request as ready for review February 16, 2026 10:57
@andreasrosdal andreasrosdal merged commit 4844641 into master Feb 16, 2026
13 checks passed
@andreasrosdal andreasrosdal deleted the copilot/fix-spring-boot-integration branch February 16, 2026 10:57
Copilot AI requested a review from andreasrosdal February 16, 2026 10:57
Copilot stopped work on behalf of andreasrosdal due to an error February 16, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants