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

Maven parsing error (see description for details) #722

Open
pranavgaikwad opened this issue Mar 6, 2025 · 1 comment · May be fixed by #733 or #740
Open

Maven parsing error (see description for details) #722

pranavgaikwad opened this issue Mar 6, 2025 · 1 comment · May be fixed by #733 or #740
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@pranavgaikwad
Copy link
Contributor

Seeing following error in code plan output:

ERROR - 2025-03-06 21:22:59,897 - kai.kai.reactive_codeplanner.task_manager.task_manager - Thread-1 - [task_manager.py:99 - execute_task()] - Unhandled exception executing task OtherError<loc=/Users/pgaikwad/Projects/coolstore/target:-1:-1, message=Unknown error occurred during Maven build.>(priority=6(0), depth=1, retries=0)
Traceback (most recent call last):
  File "kai/reactive_codeplanner/task_manager/task_manager.py", line 97, in execute_task
  File "contextlib.py", line 81, in inner
  File "kai/reactive_codeplanner/task_runner/compiler/compiler_task_runner.py", line 83, in execute_task
IsADirectoryError: [Errno 21] Is a directory: '/Users/pgaikwad/Projects/coolstore/target'

This happens because something ends up being classified as OtherError and the file path for that error is set to target dir. Here's the maven output:

[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------< com.redhat.coolstore:coolstore >-------------------
[INFO] Building coolstore-quarkus 1.0.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- clean:3.2.0:clean (default-clean) @ coolstore ---
[INFO] Deleting /Users/pgaikwad/Projects/coolstore/target
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ coolstore ---
[INFO] Copying 2516 resources from src/main/resources to target/classes
[INFO] 
[INFO] --- quarkus:3.12.3:generate-code (default) @ coolstore ---
[INFO] 
[INFO] --- compiler:3.13.0:compile (default-compile) @ coolstore ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 25 source files with javac [debug release 21] to target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.117 s
[INFO] Finished at: 2025-03-06T21:25:37+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project coolstore: Fatal error compiling: error: release version 21 not supported -> [Help 1]
[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/MojoExecutionException
@pranavgaikwad pranavgaikwad added bug Something isn't working good first issue Good for newcomers labels Mar 6, 2025
@pranavgaikwad pranavgaikwad added this to the v0.2.0 milestone Mar 6, 2025
RohanMishra315 added a commit to RohanMishra315/kai that referenced this issue Mar 8, 2025
fixes: konveyor#722
1. Check you have corrected Java version
2. IsADirectoryError separately handeled.

Signed-off-by: Rohan Mishra <[email protected]>
This was referenced Mar 8, 2025
@RohanMishra315
Copy link

@pranavgaikwad Can you check that !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants