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

#515: Refactor starting a maven process: use MavenProcessBuilder #525

Merged
merged 8 commits into from
Feb 8, 2024

Conversation

kaklakariada
Copy link
Collaborator

Part of #515

@kaklakariada kaklakariada changed the title #515: Refactor SimpleProcess #515: Refactor starting a maven process: use MavenProcessBuilder Feb 8, 2024

LOGGER.fine(() -> "Executing command " + commandParts);
final Process proc = new ProcessBuilder(commandParts).redirectErrorStream(true).start();
final MavenProcessBuilder builder = buildMavenCommand(pomFiles);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this place I would enjoy a short explanation:

  • Why does model cache no longer need to be diabled?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general the new implementation seems to be much more elegant.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code for overriding the model cache is moved to another method

Co-authored-by: Christoph Kuhnke <[email protected]>
Copy link

sonarqubecloud bot commented Feb 8, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

1 New Code Smells (required ≤ 0)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@kaklakariada kaklakariada merged commit 68c736c into main Feb 8, 2024
7 of 8 checks passed
@kaklakariada kaklakariada deleted the #515-step2-refactoring branch February 8, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants