[MNG-8494] Restore Maven 3 compatibility#2031
Conversation
| <codeSegment> | ||
| <version>4.0.0/4.0.99</version> | ||
| <code> | ||
| <![CDATA[ |
There was a problem hiding this comment.
not sure what CDATA is doing here. It's not needed
| <codeSegment> | ||
| <version>1.0.0/1.1.0</version> | ||
| <code> | ||
| <![CDATA[ |
There was a problem hiding this comment.
not sure what CDATA is doing here. It's not needed
|
|
||
| protected AbstractMavenTransferListener(MessageBuilderFactory messageBuilderFactory, PrintWriter out) { | ||
| this.messageBuilderFactory = messageBuilderFactory; | ||
| protected PrintStream out; |
There was a problem hiding this comment.
PrintStream is wonky for multiple reasons. Can we just use an output stream writer instead?
There was a problem hiding this comment.
I fully agree, however the code has already been cleaned up in the non deprecated version:
That class is purely for compatibility, so no
protected stuff should be changed.
The maven-embedder is here for compatibility and not used when launching Maven from CLI directly.
| /** | ||
| * Puts the specified data into the cache. | ||
| * | ||
| * @param groupId The group id of the cache record, must not be {@code null}. |
There was a problem hiding this comment.
Oracle javadoc guidelines are no initial capitalization on Javadoc comments and period only after or before a complete sentence
|
|
||
| /** | ||
| * Creates a copy of the data suitable for retrieval from the cache. The retrieved data can be mutated after the | ||
| * cache is queried but the state of the cache must not change so we need to make a copy. |
|
99% of the code here is copy/pasted from maven-3.9.x branch to restore compatibility... so I'm fine with any change you suggest, but I really don't expect you to closely review all the changed files. |
|
These are literally copies of Maven 3 classes. |
|
IMHO last commit should be undone:
|
|
Resolve #9943 |
No description provided.