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

[java] Errors due to use of relative paths in container image based execution #1537

Open
prabhu opened this issue Jan 7, 2025 · 0 comments

Comments

@prabhu
Copy link
Collaborator

prabhu commented Jan 7, 2025

Some projects use relative paths. This breaks container based execution when the current directory gets mounted and used for BOM generation.

-v $(pwd):/app:rw
Downloading from code-intelligence: https://gitlab.code-intelligence.com/api/v4/projects/89/packages/maven/com/code-intelligence/cifuzz-maven-extension/1.7.0/cifuzz-maven-extension-1.7.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence:jazzer:jar should not point at files within the project directory, ${project.basedir}/../bazel-bin/deploy/jazzer-project.jar will be unresolvable by dependent projects @ line 86, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence:jazzer-junit:jar should not point at files within the project directory, ${project.basedir}/../bazel-bin/deploy/jazzer-junit-project.jar will be unresolvable by dependent projects @ line 93, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence:jazzer-api:jar should not point at files within the project directory, ${project.basedir}/../bazel-bin/deploy/jazzer-api-project.jar will be unresolvable by dependent projects @ line 100, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence.selffuzz:jazzer:jar should not point at files within the project directory, ${project.basedir}/../bazel-bin/selffuzz/jazzer_selffuzz.jar will be unresolvable by dependent projects @ line 115, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence.selffuzz:jazzer-api:jar should not point at files within the project directory, ${project.basedir}/../bazel-bin/selffuzz/jazzer_api_selffuzz.jar will be unresolvable by dependent projects @ line 122, column 19
[ERROR] Unresolveable build extension: Plugin com.code-intelligence:cifuzz-maven-extension:1.7.0 or one of its dependencies could not be resolved:
        Failed to read artifact descriptor for com.code-intelligence:cifuzz-maven-extension:jar:1.7.0
 @
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence:jazzer:jar refers to a non-existing file /app/selffuzz/../bazel-bin/deploy/jazzer-project.jar @ line 86, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence:jazzer-junit:jar refers to a non-existing file /app/selffuzz/../bazel-bin/deploy/jazzer-junit-project.jar @ line 93, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence:jazzer-api:jar refers to a non-existing file /app/selffuzz/../bazel-bin/deploy/jazzer-api-project.jar @ line 100, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence.selffuzz:jazzer:jar refers to a non-existing file /app/selffuzz/../bazel-bin/selffuzz/jazzer_selffuzz.jar @ line 115, column 19
[WARNING] 'dependencies.dependency.systemPath' for com.code-intelligence.selffuzz:jazzer-api:jar refers to a non-existing file /app/selffuzz/../bazel-bin/selffuzz/jazzer_api_selffuzz.jar @ line 122, column 19
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.code-intelligence.selffuzz:selffuzz:1.0-SNAPSHOT (/app/selffuzz/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin com.code-intelligence:cifuzz-maven-extension:1.7.0 or one of its dependencies could not be resolved:
[ERROR]         Failed to read artifact descriptor for com.code-intelligence:cifuzz-maven-extension:jar:1.7.0
[ERROR]     -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
 Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant