-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
maven-project-crawler/src/main/java/com/exasol/projectkeeper/MavenProjectCrawlerMojo.java
Outdated
Show resolved
Hide resolved
...n/src/test/java/com/exasol/projectkeeper/plugin/MvnProjectWithProjectKeeperPluginWriter.java
Show resolved
Hide resolved
|
||
LOGGER.fine(() -> "Executing command " + commandParts); | ||
final Process proc = new ProcessBuilder(commandParts).redirectErrorStream(true).start(); | ||
final MavenProcessBuilder builder = buildMavenCommand(pomFiles); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
...eper/src/main/java/com/exasol/projectkeeper/sources/analyze/generic/MavenProcessBuilder.java
Outdated
Show resolved
Hide resolved
...eper/src/main/java/com/exasol/projectkeeper/validators/files/LatestChangesFileValidator.java
Show resolved
Hide resolved
Co-authored-by: Christoph Kuhnke <[email protected]>
Quality Gate failedFailed conditions 1 New Code Smells (required ≤ 0) See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Part of #515