Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Maven build fails in directories with spaces in their names #11768

Open
2 tasks done
Jzow opened this issue Feb 18, 2025 · 0 comments
Open
2 tasks done

[Bug] Maven build fails in directories with spaces in their names #11768

Jzow opened this issue Feb 18, 2025 · 0 comments
Labels
type/bug Something is wrong

Comments

@Jzow
Copy link
Contributor

Jzow commented Feb 18, 2025

What happened

During local Maven build testing, it was found that when the project is placed in a directory with spaces in its name, a compilation error occurs. Specifically, Maven fails to handle spaces in the path correctly, leading to a build failure.

Upon investigation, it was discovered that the issue was caused by the exec-maven-plugin plugin mishandling paths with spaces. This problem has been fixed in a newer version of the plugin. Refer to the following links for more details:

The solution is to upgrade the exec-maven-plugin plugin version from 1.6.0 to 3.1.0. Update the version number in the pom.xml file as follows:

<exec.maven.version>3.1.0</exec.maven.version>

What you expected to happen

Maven should properly handle spaces in the path and successfully complete the project build.

How to reproduce

  1. Clone the project locally.
  2. Rename the project directory to include spaces, e.g., Open Source.
  3. Run the Maven build command: mvn clean install.
  4. Observe the compilation error.

Environment

  • Operating System: All
  • Maven Version: 3.x
  • JDK Version: 1.8

InLong version

master

InLong Component

Other for not specified component

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@Jzow Jzow added the type/bug Something is wrong label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is wrong
Projects
None yet
Development

No branches or pull requests

1 participant