Skip to content

${project.basedir} in pom.xml interpreted wrongly to a wrong absolute path in Windows 10. #2298

Open
@Ao-Last

Description

@Ao-Last
Environment
  • Operating System: Windows 10
  • JDK version: 14
  • Visual Studio Code version: 1.63.2
  • Java extension version: 0.20.0 (Extension pack)
Steps To Reproduce
  1. Set sourceDirectory in pom.xml to ${project.basedir}
  2. Update project and use the command palette to open Java: Configure Classpath.
  3. See the result.
  4. Change ${project.basedir} to ${project.basedir}/src or anyone else. Repeat the steps above and see result.
    [Sample project reproducing the error]https://github.com/Berkeley-CS61B/skeleton-sp21/tree/master/lab2setup
Current Result
  • ${project.basedir} is interpreted as a fake absolute path. For example: Users\aoliu\OneDrive\Projects\cs61b-sp21\lab2setup which should be C:\Users\aoliu\OneDrive\Projects\cs61b-sp21\lab2setup in Windows 10.
  • ${project.basedir}\src or other path that under the basedir is correctly interpreted. For example: ${project.basedir}\src is interpreted as src, a relative path.
    image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions