INRIA / INRIA/spoon

MavenLauncher build classpath do not process build failure

Open
#4,616 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

In method `spoon.support.compiler.SpoonPom#generateClassPathFile`, `invoker.execute(request)` does not process the return value, it just catch a `MavenInvocationException`. But actually, when the return value contains a non-zero exit code, it represents maven build failure.

![image](https://user-images.githubusercontent.com/27215067/154919466-c8467784-6711-4251-8a55-26086c06f4de.png)

Contributor guide

Open the contributing guide

Research direction

Start in spoon.support.compiler.SpoonPom#generateClassPathFile and inspect how invoker.execute(request) is handled alongside MavenInvocationException. Verify how the returned result represents a non-zero exit code, and consider the issue complete when Maven build failures from that result are handled rather than ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.