instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
apache__logging-log4j2__3772
apache/logging-log4j2
3,772
defect
ff03364e0dc07dfc550b5da8b0189e732bf72568
87651edbce6135ad892f83120b42dcab40b9588f
fix: Make `GraalVmProcessor` Arguments Optional
Fixes #3771 This PR makes the `-Alog4j.graalvm.groupId` and `-Alog4j.graalvm.artifactId` arguments optional. * If **no arguments** are provided, metadata is stored in: ``` META-INF/native-image/log4j-generated/<content-derived-value> ``` Previously an error was thrown. * If **arguments are provid...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/GraalVmProcessorTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/GraalVmProcessorTest.java index 9f8b51a7b75..9bdbcad8dd9 100644 --- a/log4j-core-test/src/test/java/org/apach...
4
2
1
[{"id": "G0", "claim": "The `String.format` call in `writeReachabilityMetadata` concatenates `e.getMessage()` into the format string while providing only one `%s` placeholder, so the exception message isn't formatted correctly; consider using two placeholders and passing both `PROCESSOR_NAME` and `e.getMessage()` as ar...
null
apache__logging-log4j2__3773
apache/logging-log4j2
3,773
defect
f1054c7d0bc200d5506b9608c08a300058ea2990
68952602fc92f5dc1bee9093a5b740cfa50ba1d5
fix: Restore Backward Compatibility with Spring Boot Reconfiguration
Although Spring Boot never directly starts a `LoggerContext`, its logging system — including our `Log4j2SpringBootLoggingSystem` and equivalents in Spring Boot 2.x and 3.x — has consistently used `LoggerContext.start(Configuration)` for reconfiguration. This use case was not taken into consideration in #2614, causin...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/LoggerContextTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/LoggerContextTest.java index e14bc11a2eb..e6d58f66c79 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/LoggerContextTest.java +++ b/log4j-...
2
1
0
[{"id": "G0", "claim": "The class-level @LoggerContextSource(\"log4j-test3.xml\") annotation should be moved to the testShutdownFlag() method instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If #2614 is where the old behaviour was removed, the ti...
null
apache__logging-log4j2__3872
apache/logging-log4j2
3,872
defect
2f79c39696a998ec1530aaf12de67a3c51ee1f13
5032334f68087e867a348a4c955a5c352919a605
Round `initialTime` in `RollingFileManager`
Caching of filesystem timestamps (at least in ext4 on Linux) results in non-accurate creation timestamps. Thus, let's round it to the second. Rounding is also applied for the lastModified time, but I'm not sure whether it's needed there. Fixes #3068. ### ✅ Required checks - [x] **License**: I confirm tha...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManagerTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManagerTest.java index 78784cfa7556..d0eb7cbb62e5 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/...
4
3
1
[{"id": "G0", "claim": "The pull request should include one or more new tests verifying the rounding behaviour, ideally by making initialFileTime(File,FileTime) package-private, delegating to it, and unit-testing that sub-second FileTime arguments are rounded as expected.", "category": "testing", "verdict": "supported"...
null
apache__logging-log4j2__3919
apache/logging-log4j2
3,919
defect
8e80e9e37a6d0294e254f2227638d6384fb8cf84
a10124768384eefbad5d5e77487749825481ad11
fix: make `%ex` behavior context-independent
Historically, throwable pattern converters (`%ex`, `%xEx`, etc.) behaved in a context-sensitive way: * If the **preceding formatter’s expansion** did not end with whitespace, the converter automatically inserted a space before rendering the exception. In version `2.25.0`, this was changed to insert a **newline** ...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java index f493e25bb6a..7a82831b960 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/PatternPars...
1
1
0
[{"id": "G0", "claim": "The changelog entry should also link pull request #3919 as an issue and its description should be reworded to the reviewer's suggested text.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__logging-log4j2__3934
apache/logging-log4j2
3,934
defect
9b9a0d4350ab046c8f1616e90095ff222750f333
932d115c6695f5bf7900b3089799feb8abe2fd24
Fix: prevent ThrowableStackTraceRenderer from throwing NPEs
The `ThrowableStackTraceRenderer` class can throw a `NullPointerException` if the suppressed exceptions associated with the `Throwable` it is rendering are being concurrently mutated. This happens because `ThrowableStackTraceRenderer` invokes `Throwable#getSuppressed()` twice: once in `ThrowableStackTraceRenderer.Conte...
diff --git a/log4j-core-test/pom.xml b/log4j-core-test/pom.xml index 8c8cbc19bbd..13662ae19fe 100644 --- a/log4j-core-test/pom.xml +++ b/log4j-core-test/pom.xml @@ -347,6 +347,12 @@ <scope>test</scope> </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-inline<...
8
8
1
[{"id": "G0", "claim": "Revert the pull request's changes to AbstractDatabaseAppenderTest, which appear unrelated to the NPE fix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Revert the pull request's changes to AbstractDatabaseManagerTest, wh...
null
apache__logging-log4j2__3953
apache/logging-log4j2
3,953
defect
e9556bb8f68722ef60b86f1e71a5fb994e4971f1
d19c9f9f8bd490de10615ea6bf7fb5c9785757df
Fix nullability issues in `SslConfiguration`
As discovered in issue #3947, an NPE can be thrown when an `SslConfiguration` returns `null` for its keystore, truststore, or `SSLContext`, in particular, in `SslSocketManager`. Other fixes are noted by IntelliJ's nullability analysis on some files I checked that use `SslConfiguration` instances. This fixes #3947.
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/TlsSyslogAppenderTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/TlsSyslogAppenderTest.java index b18673e4be2..5c6adf8f718 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/...
2
2
1
[{"id": "G0", "claim": "Add a unit test reproducing the failure reported in #3947 — a simple JUnit test (mocking unrelated parts, no Docker ITs) that fails without the fix and passes with it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep the relea...
null
apache__logging-log4j2__3955
apache/logging-log4j2
3,955
defect
1758179ef0206e78b6b61b7ac45d3e237685e360
b0c4ce95bcea448c031130b5affa2e8cf994da74
Fix `ArrayIndexOutOfBoundsException` in `ThrowableStackTraceRenderer` when the stack trace is mutated concurrently
Fix `ArrayIndexOutOfBoundsException` in `ThrowableStackTraceRenderer` if concurrently modifying the stack trace of a `Throwable` while rendering it Closes #3940
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/RootThrowablePatternConverterTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/RootThrowablePatternConverterTest.java index 80e4f008bf5a..344fc3150860 100644 --- a/log4j-core-test/src/test/java/org/apache/logg...
2
2
0
[{"id": "G0", "claim": "The Javadoc of the new Metadata.stackTrace field should end with a period, state that the stack trace must be captured separately because Throwable#getStackTrace() can change, and link issues #3940 and #3955.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intr...
null
apache__logging-log4j2__3996
apache/logging-log4j2
3,996
defect
4f68c32ef440c510920b4938f79cd5529822f088
5d305747f98242787c3ed4d0588af2558ed89139
Use binary names in `GraalVmProcessor`
`GraalVmProcessor` currently emits canonical type names (JLS §6.7) for parameter types in the GraalVM reachability metadata. However, testing shows that GraalVM expects **binary names** (JLS §13.1) for reference types. For example: * Canonical: `org.apache.logging.log4j.core.Filter.Result` * Required (binary): `org...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/GraalVmProcessorTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/GraalVmProcessorTest.java index 957bb3228cd..4605fcb70b1 100644 --- a/log4j-core-test/src/test/java/org/apach...
1
1
1
[{"id": "G0", "claim": "The changelog entry should use `type=\"fixed\"` instead of `type=\"removed\"`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__logging-log4j2__4008
apache/logging-log4j2
4,008
defect
9c22ca26d817d0b6cde86475db56a3eb504adc43
46c0c715c977d5226244ec790c3b4b9fe409f788
Fix writeHeader computation in RollingRandomAccessFileManager
Fix writeHeader computation in RollingRandomAccessFileManager The writeHeader boolean was computed after creating the RandomAccessFile, which creates the file if it doesn't exist. This made file.exists() always return true, causing incorrect header write decisions. This change captures the file's pre-existing sta...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManagerTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManagerTest.java index 5937242be68..70643dd10d0 100644 --- a/log4j-core-test/src/test/ja...
5
4
2
[{"id": "G0", "claim": "The fix ships with no changelog entry and no test, and the maintainer asks the author to provide both (with the test kept as minimal as possible).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changelog description should be...
null
apache__logging-log4j2__4014
apache/logging-log4j2
4,014
defect
9c22ca26d817d0b6cde86475db56a3eb504adc43
fd0eb9315fd2f4505288bc35a76c1ae4c6728b40
Fix warning when last argument is null (#3975)
Allow extra null argument to ParameterFormatter without issuing a warning. Fixes #3975
diff --git a/log4j-api-test/src/test/java/org/apache/logging/log4j/message/ParameterFormatterTest.java b/log4j-api-test/src/test/java/org/apache/logging/log4j/message/ParameterFormatterTest.java index e4988f414171..37c4a2b7bbe9 100644 --- a/log4j-api-test/src/test/java/org/apache/logging/log4j/message/ParameterFormatte...
1
1
0
[{"id": "G0", "claim": "The new helper `ignoreLastArgument` should be renamed to `isLastArgumentThrowable` to better reflect its purpose, or alternatively the arg-count expression could be extracted into a `getArgCountWithoutException` method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
apache__logging-log4j2__4033
apache/logging-log4j2
4,033
defect
752d023795fc518a38ecae73bb6455e2723cecea
a5a2c8219a5f4fbb88f30fb3aa57dead223163ac
Take `Throwable#toString()` into account while rendering stack traces in Pattern Layout
Align renderThrowableMessage(...) to use Throwable.toString(), restoring the default printStackTrace() behavior documented for the %ex converter. - This resolves both #4019 and #3623. - I added test case that issue reporter gives. ([TestCase](https://github.com/apache/logging-log4j2/issues/4019#:~:text=exception_r...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/ThrowablePatternConverterTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/ThrowablePatternConverterTest.java index ea9294e58a48..77e8457258fe 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/log4...
5
4
1
[{"id": "G0", "claim": "The added `convert(String, Throwable)` test helper can be declared `private` instead of package-private.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `CustomException` test helper should be renamed `ToStringOverridi...
null
apache__logging-log4j2__4063
apache/logging-log4j2
4,063
defect
d46918c9e350ba64f1c4af25aea3758c36453b33
cff645106bafd6de9a5b9f53bda82dc5d3506d1f
Allow severity-based log message filtering in `PluginProcessor`
Allow filtering in printMessage based on log4j.plugin.processor.minAllowedMessageKind Issue details discussed here https://github.com/apache/logging-log4j2/discussions/3380#discussioncomment-11967458 > Add an log4j.plugin.processor.minAllowedMessageKind argument to PluginProcessor and use it to filter printMessa...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessorPublicSetterTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessorPublicSetterTest.java index 587490e2c92..2b6a03d1fea 100644 --- a/log4j-core-test/s...
3
3
0
[{"id": "G0", "claim": "In the plugins.adoc section, the sentence starting 'To suppress these information notes' refers to the earlier phrase and should be in the same paragraph as it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog e...
null
apache__logging-log4j2__4073
apache/logging-log4j2
4,073
defect
4e41195357547cc8deef30525250940068a1f587
0a25804dae71559617861227dcf7d44d851ab97e
Rfc5424Layout: Fix sanitization of SD parameter names
This change corrects the sanitization of `PARAM-NAME` in RFC 5424 structured data produced by `Rfc5424Layout`. The issue was reported by @N0tre3l on March 8th, 2026. Previously, parameter names were sanitized using the same escaping mechanism as parameter values. However, RFC 5424 does not define an escape mecha...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout/Rfc5424LayoutTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout/Rfc5424LayoutTest.java index 87157ec68bf..ec83dba1754 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout/Rfc5424LayoutT...
4
2
0
[{"id": "G0", "claim": "The javadoc's list of excluded PARAM-NAME characters may be missing the space character, which is also excluded from valid parameter names.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "isParamNameCharacterValid should retur...
null
apache__logging-log4j2__4075
apache/logging-log4j2
4,075
defect
4e41195357547cc8deef30525250940068a1f587
6c84a2ee4f27ac9662d411aec66ce1ddd942510e
Align `SslConfiguration` factory method usage with Log4j 2.12+ API
This change updates the usage of `SslConfiguration#createSSLConfiguration` to the 4-parameter factory method introduced in Log4j 2.12.0. Using the newer factory method keeps the code aligned with the current API and ensures that all configuration parameters supported by recent Log4j versions are correctly propagated...
diff --git a/log4j-core-test/pom.xml b/log4j-core-test/pom.xml index 8c8cbc19bbd..34ccfc0453b 100644 --- a/log4j-core-test/pom.xml +++ b/log4j-core-test/pom.xml @@ -64,8 +64,19 @@ <!-- Additional version of LMAX Disruptor to test --> <disruptor4.version>4.0.0</disruptor4.version> <json-unit.version>2.40....
5
5
3
[{"id": "G0", "claim": "The new deprecation Javadoc says \"Since 2.26.0\" while the project revision is still 2.25.4-SNAPSHOT; the version should be corrected to the release this actually lands in, or omitted, so the API docs are not misleading.", "category": "documentation", "verdict": "supported", "priority": "P2", "...
null
apache__logging-log4j2__4076
apache/logging-log4j2
4,076
defect
1fdfe142d57febdd22a9e7d91ccdcc6d71a6efb0
289d570d85bfc1bdfa26bfed2d3a25a2f9faf281
Add missing setters to `Rfc5424LayoutBuilder`
> [!WARNING] > Review this **after** #4074 has been merged and version `2.25.4` merged into `2.x`. This change introduces setter methods for the private fields added to `Rfc5424LayoutBuilder` in version `2.25.4`. These fields were originally introduced to restore configuration options that existed in `2.20.0...
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout/Rfc5424LayoutTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout/Rfc5424LayoutTest.java index 87157ec68bf..a6864e3c962 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout/Rfc5424LayoutT...
5
1
0
[{"id": "G0", "claim": "The error log message has a typo — \"Includes wil be ignored\" should be \"Includes will be ignored\" — and it should be corrected consistently wherever it appears in the class.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim":...
null
apache__logging-log4j2__4078
apache/logging-log4j2
4,078
defect
4e41195357547cc8deef30525250940068a1f587
11f3ca62046f85fb454ad193b3fdd2eab093bd78
Log4j1XmlLayout: replace invalid XML characters with U+FFFD
This change sanitizes the output of `Log4j1XmlLayout` by replacing characters that are not permitted in XML 1.0 with the Unicode replacement character (`U+FFFD`). This guarantees that the generated log output is always well-formed XML and can be parsed by any XML 1.0–compliant parser, even when log data contains con...
diff --git a/log4j-1.2-api/src/test/java/org/apache/log4j/layout/Log4j1XmlLayoutTest.java b/log4j-1.2-api/src/test/java/org/apache/log4j/layout/Log4j1XmlLayoutTest.java index 1af12167a60..51de2fbb92e 100644 --- a/log4j-1.2-api/src/test/java/org/apache/log4j/layout/Log4j1XmlLayoutTest.java +++ b/log4j-1.2-api/src/test/j...
3
3
2
[{"id": "G0", "claim": "escapeHtmlTags escaping apostrophes as &apos; can produce invalid HTML because the &apos; entity is not predefined in the HTML 4.01 Transitional doctype that HtmlLayout declares; the suggestion asks for a numeric character reference such as &#39; instead.", "category": "correctness", "verdict": ...
null
apache__logging-log4j2__4079
apache/logging-log4j2
4,079
defect
4e41195357547cc8deef30525250940068a1f587
6d915b6606ac8a79af5d8f7d5c081418b0898fec
MapMessage.asXml(): replace invalid XML characters with U+FFFD
This change sanitizes the output of `MapMessage.asXml()` by replacing characters not permitted in XML 1.0 with the Unicode replacement character (`U+FFFD`). Although `MapMessage.asXml()` is not currently used by any layout, this aligns its behavior with `XmlLayout` and `Log4j1XmlLayout`, ensuring consistent and well...
diff --git a/log4j-api-test/src/test/java/org/apache/logging/log4j/message/MapMessageTest.java b/log4j-api-test/src/test/java/org/apache/logging/log4j/message/MapMessageTest.java index a36bb6b4ae9..db29a189499 100644 --- a/log4j-api-test/src/test/java/org/apache/logging/log4j/message/MapMessageTest.java +++ b/log4j-api...
2
2
0
[{"id": "G0", "claim": "The surrogate test cases use Character.MIN_SURROGATE/MAX_SURROGATE while labeled as low/high surrogate, so the tests do not exercise what they claim to cover; switch to MIN_LOW_SURROGATE/MAX_LOW_SURROGATE and MIN_HIGH_SURROGATE/MAX_HIGH_SURROGATE (and/or fix the comments).", "category": "testing...
null
apache__logging-log4j2__4080
apache/logging-log4j2
4,080
defect
4e41195357547cc8deef30525250940068a1f587
67ffaeab03cd4e4c20f39d2e69eb9e43b8d05d35
JsonWriter: Write non-finite floating-point values as strings
This change updates `JsonWriter` to serialize non-finite `float` and `double` values (`NaN`, `Infinity`, and `-Infinity`) as JSON strings. This behavior aligns with Jackson's `JsonWriteFeature#WRITE_NAN_AS_STRINGS`. Previously, these values were written without quotes, which produces **invalid JSON** according to...
diff --git a/log4j-layout-template-json-test/src/test/java/org/apache/logging/log4j/layout/template/json/util/JsonWriterTest.java b/log4j-layout-template-json-test/src/test/java/org/apache/logging/log4j/layout/template/json/util/JsonWriterTest.java index 11607acb2d7..b3904497146 100644 --- a/log4j-layout-template-json-...
1
1
0
[{"id": "G0", "claim": "The comments on writeNumber(float) and writeNumber(double) misname Jackson's type as `JsonWriteFeatures` and should say `JsonWriteFeature` to match the actual feature name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__logging-log4j2__4089
apache/logging-log4j2
4,089
defect
c889dcbb3ea5044c4d78f4ffae2ba9559105a0d0
32abcc6ef70d35067cd29063f41c5776d1bf7310
Fix SLF4JLogger.atFatal() returning Level.TRACE instead of Level.FATAL
Fixes #4068. ## Summary `SLF4JLogger.atFatal()` returns `atLevel(Level.TRACE)` instead of `atLevel(Level.FATAL)`. This was a copy-paste error introduced in commit `113a8e85f4` (LOG4J2-3647, 2023-01-13). Every `logger.atFatal().log(...)` call through the `log4j-to-slf4j` bridge emits at TRACE level, causing the messag...
diff --git a/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLogger.java b/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLogger.java index ff9410f33e1..130d550d675 100644 --- a/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLogger.java +++ b/log4j-to-slf4j/src/main/java/org/apache/lo...
2
2
1
[{"id": "G0", "claim": "A unit test should be added to prevent regressions of the SLF4JLogger.atFatal() fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entry should also list the pull request itself as <issue id=\"4089\"> alongside the...
null
apache__logging-log4j2__491
apache/logging-log4j2
491
defect
0efe4654c3ec5b1965cd165ba9bda6e0e511014a
391664b39ece1dd8645789a3baad1b39c0164236
LOG4J2-3088 LOG4J2-3089 Fix windows build master
This pull fixes the windows build. I have tested on windows 10 using maven 3.6.3 and Zulu's OpenJDK 11 build. It adds an annotation @DisableOnWindows to prevent the FileOutputTest test from running on Windows in log4j-core. This test cannot pass because the listener to the StatusLogger is never shut down which means...
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java index 5b8a732bb5d..fde5339441e 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java +++ b/log4j-cor...
4
2
0
[{"id": "G0", "claim": "Use the final modifier on variables wherever possible in JsonTemplateLayoutNullEventDelimiterTest.java.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider generalizing the new DisableOnWindows annotation (e.g. Disabl...
null
apache__madlib__537
apache/madlib
537
defect
a70a8776fea111afef353f91f0bad93ffa13b6ab
6995166b9380895ffb9951507c020976e8178265
Fix some C++11 issues
This is an assortment of bug fixes and improvements for our optional C++11 support. It's mostly only relevant for those who were compiling by passing the -DCXX11 option manually. Previously, that was the only way to compile with C++11, and it only affected clang (not gcc). But in addition to fixing some bugs and w...
diff --git a/CMakeLists.txt b/CMakeLists.txt index da573e8d7e..bc030f5a15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,32 @@ if(NOT CMAKE_BUILD_TYPE) FORCE) endif(NOT CMAKE_BUILD_TYPE) +# The C++11 standard overlaps a lot with older versions of Boost. +# So before deciding what standard to us...
3
2
2
[{"id": "G0", "claim": "The comment added in CMakeLists.txt misspells 'instead' as 'intstead'.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new unconditional 'throw std::domain_error(inMessage);' is redundant and unformatted, given a similar...
null
apache__maven-deploy-plugin__20
apache/maven-deploy-plugin
20
defect
dd39f5d12cb604ae674c9669425255116b1b72d4
198de55d3128d742de3e7a8e7c1a78c728ea5877
[MDEPLOY-193] Deploy At End feature (no extension)
This PR makes deployAtEnd work as expected even if maven-deploy-plugin is not used as extension. How it works: it uses mojo Context to store "state markers" (and params): * presence of marker means project was "processed" * value of state marker tells what should be done * if needed, other params are stored as w...
diff --git a/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java b/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java index 4aaa971a..73f81530 100644 --- a/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java +++ b/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java @@ -19,10 +19...
2
1
1
[{"id": "G0", "claim": "The null checks around the alt-repository plugin-context puts are unnecessary — a null value can simply be put.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The marker must also be written when deployAtEnd is false, because one mo...
null
apache__maven-mvnd__1037
apache/maven-mvnd
1,037
defect
6150ae34c842d909b3ca1a0e8034dc82ca4e2b9e
84952a7035f13940430850a261227aca48310d29
[1.x] mixup in case of DISPLAY messages type
ProjectEvent message mixup fixed. Fixes #1036
diff --git a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java b/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java index dbf475d23..7107456c6 100644 --- a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java +++ b/common/src/main/java/org/mvndaemon...
1
1
1
[{"id": "G0", "claim": "The PR's change is wrong because the message type identifies how it is read, so two message classes (StringMessage and ProjectEvent) cannot share the same DISPLAY message type.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__maven-mvnd__1038
apache/maven-mvnd
1,038
defect
d2942ccbc15178a25946cb5ae80b83d489b4df23
957f91ae71e991675b2694b372c263125b773e8d
mixup in case of DISPLAY messages type
ProjectEvent message mixup fixed. Fixes #1036
diff --git a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java b/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java index 4dcd9b5a9..befc4856e 100644 --- a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java +++ b/common/src/main/java/org/mvndaemon...
1
1
1
[{"id": "G0", "claim": "The DISPLAY handling is wrong: a message type identifies how it is read, so the same DISPLAY type cannot be carried by two message classes (StringMessage and ProjectEvent), and TerminalOutput must not branch on instanceof to accept both.", "category": "design", "verdict": "supported", "priority"...
null
apache__maven-mvnd__271
apache/maven-mvnd
271
defect
38b71851557c8120c99ad71258825b4203a214ae
12b2328796d157e6f4fc32fbcd267d6e72ec211e
Maven-like rolling output when the build happens to be linear
Fix #269
diff --git a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java b/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java index 0efc002f2..83d195cf7 100644 --- a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java +++ b/common/src/main/java/org/mvndaemon...
6
4
1
[{"id": "G0", "claim": "The way the PR installs its custom dependency graph - replacing the default GraphBuilder from Server.onStartSession because Guice could not be persuaded to prefer it - is quite a rough way to do it, and the author invites a veto and a more elegant proposal.", "category": "design", "verdict": "su...
null
apache__maven-mvnd__371
apache/maven-mvnd
371
defect
b4f4c5fc10664c237ab84417aa48202b54c3c186
3bd8b05ba77aa232afa5dee15eeb10db8596e3bf
Leverage Maven's -Dstyle.color to avoid coloring instead of stripping the ASCII codes in the client
Fix #373
diff --git a/README.adoc b/README.adoc index 7e58a3e6d..14dce1e01 100644 --- a/README.adoc +++ b/README.adoc @@ -173,6 +173,10 @@ $ ls -lh target/mvnd === Known issues and limitations -* Parallel build, hence `mvnd`, don't play well with `-rf` maven option at the moment. If you use the `-rf` maven option with `mvn...
6
5
2
[{"id": "G0", "claim": "The styleColor handling added to DefaultClient.main is too complicated and should be simplified by removing the option from the command line up front and translating auto to always/never as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
apache__maven-mvnd__391
apache/maven-mvnd
391
defect
013d893ab1c201a0a0033b62c49c07747a81610f
3002e1813e72f21718eba1d54b47d21848572a58
#390 Restrict usage of mvnd daemons to the current user by utilizing a token check
Adds a token to the persisted daemon registry, which the client is required to transmit directly after initiating the connection with the daemon.
diff --git a/client/src/main/java/org/mvndaemon/mvnd/client/DaemonConnector.java b/client/src/main/java/org/mvndaemon/mvnd/client/DaemonConnector.java index 2b4350395..2a04a5b9c 100644 --- a/client/src/main/java/org/mvndaemon/mvnd/client/DaemonConnector.java +++ b/client/src/main/java/org/mvndaemon/mvnd/client/DaemonCo...
1
1
1
[{"id": "G0", "claim": "The token comparison in checkToken uses Arrays.equals, which stops at the first non-equal byte and is therefore vulnerable to timing attacks; instead use MessageDigest.isEqual(), which does a constant-time comparison.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "...
null
apache__maven-resolver__1610
apache/maven-resolver
1,610
defect
b5cd8e497373a2a52a0af5e41627de4daf73dcf3
a694dc48489225d0a6b326de6927c8f2318b5f47
GH-1609 Bad metadata naming
It caused in certain cases that lock names for different metadata collapsed onto same name, and hence, congestion with possible timeouts on resource happened. In case of metadata, `Metadata#getType` was totally ignored, which turns out was wrong, as today we have more types than the simple `maven-metadata.xml`. Fix:...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/synccontext/named/GAVNameMapper.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/synccontext/named/GAVNameMapper.java index 5325265472..61cb440970 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/in...
2
2
0
[{"id": "G0", "claim": "Creating a DefaultMetadata object just to call getMetadataName recursively is inefficient; a new method taking the individual parameters would be cleaner.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Lock names should not e...
null
apache__maven-resolver__1655
apache/maven-resolver
1,655
defect
cf89daa2c664f0b4da732417e84a9d1c0de85570
7eae084108adbe6fad3fe88e667d54698e1d3935
Bug: Filter fixes
Three major issues: * (prefix) one was that it tried to fix the Maven issue of remote repository uniqueness (globally), and that attempt was in fact wrong, fix is elsewhere. The reason it tried to do this is in fact to circumvent locking issues #1644. * (manager) other issue was filter lifecycle, manager did it wron...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/DefaultRemoteRepositoryFilterManager.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/DefaultRemoteRepositoryFilterManager.java index 276153ce4e..42f406416a 100644 --- a/maven-resolver-impl/src/main/ja...
1
1
0
[{"id": "G0", "claim": "A TODO comments that RemoteRepository.isRepositoryManager() is still unused in Maven and suggests creating an issue in Maven and referencing it here, so that it can be tracked more easily in the future.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
apache__maven-resolver__168
apache/maven-resolver
168
defect
cfabeae7727bb1e51f53ff3b5d18ee3d73ba8a72
621732766c669d682e70ffd24d596213671f5d62
[MRESOLVER-253] Split LRM
This PR builds on PR https://github.com/apache/maven-resolver/pull/167 Enhances existing "enhanced" LRM (local repository manager) with "prefix" from from composer. Default behaviour is not changed (will not use prefix, local repo will be as today). The point in change is that it introduces a "composer", that is ...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java index 49e29adc0a..7a765fb193 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java +++ b/maven-resol...
18
12
3
[{"id": "G0", "claim": "The composer interface should be renamed to a name that says what kind of prefix it composes (ending up agreed as LocalPathPrefixComposer).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method getting the prefix for a locally...
null
apache__maven-resolver__1692
apache/maven-resolver
1,692
defect
60ee5c0902167d7f52545645c67b0ad531c66bca
b6167a2f66e0b9ce02b32adb274317c5b9f45d75
TrackingFileManager changes
Drop out of band deletion, let TFM delete as well. Also, simplify but do not drop locking, is needed for interoperability with 3.9.11 and 4.0.0-rc-5 and older released versions. Make FNFEx ignored in case of read/delete. Backport to 1.9.x is here https://github.com/apache/maven-resolver/pull/1695.
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultTrackingFileManager.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultTrackingFileManager.java index 53f02d9abe..a0f8e76fea 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/imp...
3
2
1
[{"id": "G0", "claim": "The partial-size file lock in read/update/delete is unexplained and unnecessary: a lock on the full file should be requested instead of Math.max(1, fileChannel.size()) bytes, which also forces a file-size call.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
apache__maven-resolver__1694
apache/maven-resolver
1,694
defect
96a719501da482b7f74950ac7c9d4f1465b7e52e
f9047d05237764bc47541351682904f2df6f46c6
GH-1668: Add catch-all for group filter
Introduced `*` "root" entry, that may define the "default acceptance". Fixes #1668
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/ruletree/GroupTree.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/ruletree/GroupTree.java index e2d0295d3b..7f20850b14 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/...
3
2
1
[{"id": "G0", "claim": "Add a test case with `*` placed at the top of the rule list (see the question about whether placement of `*` matters).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case with `!*` placed at the top of the rule list (s...
null
apache__maven-resolver__1696
apache/maven-resolver
1,696
defect
beb63f6f62a0a739ea225d4206caafc2bbca3368
31aa532b79294f1f3f0a2cdfdab208e729182790
Locking inhibitor SPI
A new SPI that offers ability to augment Resolver locking and inhibit locking on certain resources. Out of the box RRF prefix file inhibition is provided. Fixes #1663 Fixes #1641
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/PrefixesLockingInhibitorFactory.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/PrefixesLockingInhibitorFactory.java new file mode 100644 index 0000000000..a795d57792 --- /dev/null +++ b/maven-resolve...
2
1
1
[{"id": "G0", "claim": "The LockingInhibitor API looks over-engineered; it should use simple default boolean methods (e.g. inhibitLock/preventLock for artifact and metadata) instead of Optional<Predicate>-returning methods.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
apache__maven-resolver__1709
apache/maven-resolver
1,709
defect
9746ab4ae962ac973773054a9bf6c7d61fd47c34
27d25d9f079bcf03394a034e343c134ad72aa375
Enhance RRF
Changes: * prefix: introduce "resolvePrefixFiles" config that controls auto-discovery (def: true; as before) * both: introduce "noInputOutcome" config that controls filtering outcome when enabled but no input provided (def: true; as before) * both: cleanup of configuration and use of helper classes
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/GroupIdRemoteRepositoryFilterSource.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/GroupIdRemoteRepositoryFilterSource.java index 32be14c797..fca2423801 100644 --- a/maven-resolver-impl/src/main/java...
1
1
0
[{"id": "G0", "claim": "The Javadoc for the noInputOutcome config property should be rewritten to plainly explain what happens when the filter is enabled but has no data to work with.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven-resolver__1755
apache/maven-resolver
1,755
defect
1f01b66d782c592d3e073de3e734f797a74a988b
9dd1308f01deec27615d70431b99b59031889ded
JDK Transport: Do no longer leverage temp file for transfering artifact
with PUT Directly transfer based on the PutTask's InputStream. Improve retry handling to not retry (some) BodyPublisher exceptions. Following this checklist to help us incorporate your contribution quickly and easily: - [ ] Your pull request should address just one issue, without pulling in other changes. - ...
diff --git a/maven-resolver-test-http/src/main/java/org/eclipse/aether/internal/test/util/http/HttpTransporterTest.java b/maven-resolver-test-http/src/main/java/org/eclipse/aether/internal/test/util/http/HttpTransporterTest.java index 6f8e652943..e5db78b82c 100644 --- a/maven-resolver-test-http/src/main/java/org/eclips...
1
1
0
[{"id": "G0", "claim": "The remaining tests that strictly assert the listener started count should also be relaxed, since depending on the HTTP client the transport may be started multiple times due to internal retries.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven-resolver__1814
apache/maven-resolver
1,814
defect
6b73efa6fe7121de6f24672fd63c24c6ed0366eb
cbdcaf87166b830df362959e6583ebde9928fadd
Provide modern TrackingFileManager
Still, provide escape hatch for those that must share their local repository with some parallel running Maven 3.9.x or older. Changes: * provide "legacy" and "named locks" based TrackingFileManager * demote both from being components, instead introduce TrackingFileManagerProvider that performs "selection" of wante...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/NamedLockFactorySelector.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/NamedLockFactorySelector.java new file mode 100644 index 0000000000..382a0d027f --- /dev/null +++ b/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/N...
8
7
3
[{"id": "G0", "claim": "read() and delete() silently return null/false on lock timeout, which per the TrackingFileManager contract is indistinguishable from 'file does not exist' and is inconsistent with update(), which throws IllegalStateException; read() and delete() should throw (or at least log) on lock timeout.", ...
null
apache__maven-resolver__1846
apache/maven-resolver
1,846
defect
64fc4af12bae08138eb818849697ac480240a3c1
34138bf8b9a379c830860e4ee617e32a1e116ecf
Send "Accept" request header to indicate RFC 9457 compliance
Also evaluate RFC 9457 responses for PUT requests Add tests to check for proper "Accept" headers for GET/HEAD/PUT This closes #1845 Following this checklist to help us incorporate your contribution quickly and easily: - [ ] Your pull request should address just one issue, without pulling in other changes. -...
diff --git a/maven-resolver-spi/src/main/java/org/eclipse/aether/spi/connector/transport/http/HttpConstants.java b/maven-resolver-spi/src/main/java/org/eclipse/aether/spi/connector/transport/http/HttpConstants.java index 6ae373d833..0f06ee5fee 100644 --- a/maven-resolver-spi/src/main/java/org/eclipse/aether/spi/connect...
1
1
0
[{"id": "G0", "claim": "Strict equality in hasRFC9457ContentType will not work for responses like Cloudflare's `Content-Type: application/problem+json; charset=utf-8`; the comparison should tolerate content-type parameters (e.g. contains or starts-with) with a proper null check on contentType.", "category": "correctnes...
null
apache__maven-resolver__194
apache/maven-resolver
194
defect
0391feec5fb7de97f78621194efb863ab058ac51
526ebd1a8d63ec494c8ed78714158d2b230ca967
[MRESOLVER-273] More compact filesystem friendly mapper
Create more compact FS NameMapper. Also, clean up existing ones and reduce clutter and mess. High level changes: * Introduce new HashingNameMapper (implements the "more compact" name mapper) * Introduce StringDigestUtil for String hashing (cleanup the mess of digest/checksum mixup, drop SimpleDigest as it is not p...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java index 02bd7b08bb..1690a19845 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java +++ b/maven-resol...
16
8
1
[{"id": "G0", "claim": "The test support's hardcoded \"/home/maven/.m2/repository\" path is deemed to fail, or at least misbehave, when that path is not available on the system running the tests.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since th...
null
apache__maven-resolver__199
apache/maven-resolver
199
defect
5566bd5b3b0e59d124d820e6274da8e2da7804b0
58be73ad63ee271c7df0a735e1330885309106a4
[MRESOLVER-269] [MRESOLVER-275] Trusted checksums source and more compact format backed source
This PR implements several improvement issues: * introduces "trusted" checksums source (and adapts them for provided transport checksums) * pushed/moved existing implementation as "trusted" source and introduces "compact" (file) based source * cleanup re naming: before it was "file" source, now there is "file-sparse...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java index d003928e59..41308ffedb 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/guice/AetherModule.java +++ b/maven-resol...
22
14
0
[{"id": "G0", "claim": "The support-class javadoc contains the typo \"bqsedir\" where it should say \"basedir\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the \"hashes\"-style identifiers (baseDirProvidedHashes, algorithmHashes, loadPr...
null
apache__maven-resolver__219
apache/maven-resolver
219
defect
7fdaabceae2633ad63525bb980f57d266eed88cd
99869610ac1833e2d6b02bd30ec44282f34033ad
[MRESOLVER-291] Undo params use
Pull out ctor param injection, provide generic enough helper to allow anyone to customize as they want. Changes in short: Nor SyncContextFactory nor NamedLockFactoryAdapter should shut down. This was the problem, and I was mislead by it. NamedLockFactory instances are **singletons**, and **are inited in ctor**. He...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/DefaultServiceLocator.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/DefaultServiceLocator.java index 69cfc2c83b..f197ebba77 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/DefaultServiceLocator.java +++ b/ma...
8
7
0
[{"id": "G0", "claim": "The factory and name mapper maps should be created lazily when needed instead of in the class's static initializer, to save a little memory and class-load time.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the ...
null
apache__maven-resolver__277
apache/maven-resolver
277
defect
18bf0eceb641bff6dc43f97a0e01d62fa6a5b1a0
d6a974f62a25ed0d2845003a730b53a73a6b34c9
[MRESOLVER-350] Inline StringUtils
Fwiwm `StringUtils` was deprecated since quite some time, but I'd agree that a micro release is not the best place to remove a public class. Maybe wait for next minor...
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRemoteRepositoryManager.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRemoteRepositoryManager.java index 88b8aad50f..9a297555c6 100644 --- a/maven-resolver-impl/src/main/java/org/eclipse/aether/inte...
1
1
0
[{"id": "G0", "claim": "The bare `@deprecated` Javadoc tag should carry explanatory text, e.g. \"Deprecated since 1.5.0 without any alternative provided. Use Java 8 APIs instead.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven-resolver__319
apache/maven-resolver
319
defect
04a6c3c5f43eae00a9d190ccbb7ef93c7c8b8540
1aebbf2b121e9b17c4e37d08c914ded3cc02430a
[MRESOLVER-387] New RepositorySystem supplier
Added a new module that provides RepositorySystem supplier. To complete RepositorySystem instance, one needs some of Maven dependencies as well, hence the new module. The supplier provides non intrusive lightweight replacement for ServiceLocator. Changes: * new module with supplier * add new booter to demos using ...
diff --git a/maven-resolver-supplier/README.md b/maven-resolver-supplier/README.md new file mode 100644 index 0000000000..c489b26198 --- /dev/null +++ b/maven-resolver-supplier/README.md @@ -0,0 +1,52 @@ +<!--- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See t...
9
8
0
[{"id": "G0", "claim": "The README should spell the project name \"Sisu\", not \"SISU\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README phrase \"Consumer/User of this module\" should be pluralized to \"Consumers/users\".", "category": "...
null
apache__maven-resolver__323
apache/maven-resolver
323
defect
04a6c3c5f43eae00a9d190ccbb7ef93c7c8b8540
d9bce4a614b14683fe9bd627c09327f501d62b2e
[MRESOLVER-393] Transport HTTP should retain last-modified
If sent by remote end. --- https://issues.apache.org/jira/browse/MRESOLVER-393
diff --git a/maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java b/maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java index acf1755658..3eae72dba2 100644 --- a/maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test...
1
1
0
[{"id": "G0", "claim": "The added note \"Wagon also does first not last\" is moot because per RFC 9110 the Last-Modified header can only appear once anyway — anything else is a protocol violation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven-resolver__380
apache/maven-resolver
380
defect
b6bb29c26b46f642335723bd57ea7df80dba3bef
28db64e779166470f9759b385bbcce5defbd40e1
[MRESOLVER-321] Make collection and visiting interruptable
Currently the two collector implementations are not interrupt-able, do not sense interruption directly, only by some side-effect like IO. Moreover, the BF new collector may enter a "busy loop" as we seen (it was due bug, but nothing prevents us to have more bugs). Make main loop in both collector detect thread interrup...
diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/graph/DefaultDependencyNode.java b/maven-resolver-api/src/main/java/org/eclipse/aether/graph/DefaultDependencyNode.java index b746f75813..aa3e73574d 100644 --- a/maven-resolver-api/src/main/java/org/eclipse/aether/graph/DefaultDependencyNode.java +++ b/ma...
1
1
1
[{"id": "G0", "claim": "The RuntimeException thrown when the thread is interrupted should carry the interruption as its cause so callers can tell the exception was caused by the thread being interrupted, e.g. `new RuntimeException(new InterruptedException(\"Thread interrupted\"))`.", "category": "correctness", "verdict...
null
apache__maven-resolver__390
apache/maven-resolver
390
defect
a2e2912d66ed8d52b0119e8c6d3c23fc8ce6460d
df95bcf8c5cc3c7fb6edadb07b9d383372cd3f78
[MRESOLVER-448] Align Jetty versions
Move off dead Jetty 9, and use 10.x in both modules, update to latest minor. --- https://issues.apache.org/jira/browse/MRESOLVER-448
diff --git a/maven-resolver-transport-apache/pom.xml b/maven-resolver-transport-apache/pom.xml index dcd4695783..006993f0ae 100644 --- a/maven-resolver-transport-apache/pom.xml +++ b/maven-resolver-transport-apache/pom.xml @@ -34,7 +34,7 @@ <properties> <Automatic-Module-Name>org.apache.maven.resolver.transport...
1
1
0
[{"id": "G0", "claim": "Jetty provides a BOM, so the pull request should use jetty-bom (e.g. imported in dependencyManagement) instead of pinning the Jetty version on each dependency individually.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven-resolver__406
apache/maven-resolver
406
defect
a06b9cc8539d54f4c39a33a1eecad657d0fc81e2
063a4d9e64091b24b179b9deee4d3c0a0a390648
[MRESOLVER-336] Fixes to generic schema
Fix code and extend UT coverage, and add "spec" to package javadoc. --- https://issues.apache.org/jira/browse/MRESOLVER-336
diff --git a/maven-resolver-util/src/main/java/org/eclipse/aether/util/version/GenericVersion.java b/maven-resolver-util/src/main/java/org/eclipse/aether/util/version/GenericVersion.java index e4e244be63..263381a61e 100644 --- a/maven-resolver-util/src/main/java/org/eclipse/aether/util/version/GenericVersion.java +++ b...
5
3
1
[{"id": "G0", "claim": "The trimming rule for qualifiers 'ga'/'final'/'release' should apply universally, not only when they are the last (right-most) segment, because context-sensitive rules make isolated segment comparison impossible; dmlloyd proposes a fully context-free absolute segment ordering instead.", "categor...
null
apache__maven-resolver__407
apache/maven-resolver
407
defect
98126539f3c66fc4ab50b178c2eb4b8fd169fd72
53b43e79799ded588bb594d3ac141da70dd8a253
[MRESOLVER-465] Make room for alternate version scheme
Since eons Resolver had the "generic" scheme implementing the `Version`, `VersionRange` and `VersionConstraint` API interfaces. Interesting fact: `GenericVersionRange` and `GenericVersionConstraint` are NOT tied in any way to `GenericVersion` implementation, they are happy with plain `Version` interface as well, the...
diff --git a/maven-resolver-util/src/main/java/org/eclipse/aether/util/version/GenericVersionConstraint.java b/maven-resolver-util/src/main/java/org/eclipse/aether/util/version/GenericVersionConstraint.java index 9199e071d6..bcf10428ba 100644 --- a/maven-resolver-util/src/main/java/org/eclipse/aether/util/version/Gener...
2
2
1
[{"id": "G0", "claim": "The visibility design needs reworking: the package-private final implementation classes only make sense if they are public, and the new public VersionSchemeSupport exports the package-private GenericVersionConstraint outside its visibility (first proposed as making the classes public, settled as...
null
apache__maven-shade-plugin__10
apache/maven-shade-plugin
10
defect
52eed09e80190900b866f620544555087f27df58
7f96cf4ebf7e5486c2404f2eb307111abc3491b5
[MSHADE-306] log all duplicates to not silently swallow a duplicate and an implicit selection
Following this checklist to help us incorporate your contribution quickly and easily: - [X] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MSHADE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Y...
diff --git a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java index 825ed6813..c6386a0d7 100644 --- a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java +++ b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java @@ ...
1
1
1
[{"id": "G0", "claim": "The pull request's CI job fails with test failures; see the logs at the linked CI job.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
apache__maven-shade-plugin__110
apache/maven-shade-plugin
110
defect
146b87b8191651fbcab0ea1ef5bdf9746f226830
7447201dbc33dd1c8916a55991f84c4311c3c52c
[MSHADE-400] Self-minimisation with custom entry points
* See https://issues.apache.org/jira/browse/MSHADE-400. * Solves https://issues.apache.org/jira/browse/MSHADE-366, too. * Contains commits from and therefore supersedes * #83, * #104, * #108 (not all commits, but alternative implementation I already had before the latest commit was pushed). **...
diff --git a/src/it/projects/MSHADE-313_minimized-services/invoker.properties b/src/it/projects/MSHADE-313_minimized-services/invoker.properties index c8b7b3cdb..31f873fcf 100644 --- a/src/it/projects/MSHADE-313_minimized-services/invoker.properties +++ b/src/it/projects/MSHADE-313_minimized-services/invoker.properties...
2
2
0
[{"id": "G0", "claim": "The new info log appending the entry points is redundant because no other parameters are logged at info level; it is enough to say that a minimized JAR with entry points is being created.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
apache__maven-shade-plugin__150
apache/maven-shade-plugin
150
defect
89d9e791275450a0d742221d798005330ea797cc
d29c633cea770ef59464e0b523a938bcd7590c50
[MSHADE-425] Relocate services name before add to serviceEntries
Signed-off-by: tison <wander4096@gmail.com> Following this checklist to help us incorporate your contribution quickly and easily: - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MSHADE) filed for the change (usually before you start working on it). Trivial changes like t...
diff --git a/src/main/java/org/apache/maven/plugins/shade/resource/ServicesResourceTransformer.java b/src/main/java/org/apache/maven/plugins/shade/resource/ServicesResourceTransformer.java index 1edc153db..7eaeaf5d3 100644 --- a/src/main/java/org/apache/maven/plugins/shade/resource/ServicesResourceTransformer.java +++ ...
2
2
1
[{"id": "G0", "claim": "The pull request needs a unit test (covering the changed class) so that future changes cannot silently break the relocation behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use the NEWLINE constant in...
null
apache__maven-shade-plugin__48
apache/maven-shade-plugin
48
defect
ecaa5ee94bfa0c2bf42770c1b9820779baf723b2
09d6560632a14f9272b08ebb13b6eeea24f02cf3
[MSHADE-364] drop duplicates handled by a transformer
When a transformer handles a resource then the resource being duplicated is ok since the transformer will merge it so no need to log it (in particular as a warning). --- Following this checklist to help us incorporate your contribution quickly and easily: - [X] Make sure there is a [JIRA issue](https://issu...
diff --git a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java index f5897c3cf..ffd902d1a 100644 --- a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java +++ b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java @@ ...
1
1
1
[{"id": "G0", "claim": "The new duplicates-removal branch in DefaultShader should be covered by a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__maven-shade-plugin__785
apache/maven-shade-plugin
785
defect
3171a34b15528336c5e7baaf74d18a9140076973
d6cb264f880ab39c151c4cbee688c96f4498cc76
Bug: Extra JARs and Artifacts were not subjected to filtering
Bug: the `extraJars` and `extraArtifacts` were added to shaded JAR as is, without subjecting them to filtering.
diff --git a/pom.xml b/pom.xml index c15f6d181..c0e090905 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugins</artifactId> - <version>45</version> + <version>47</version> <relativePath /> </parent> @@ -79,7 +79,...
3
1
0
[{"id": "G0", "claim": "The Java 8 compiler source/target properties added to the MSHADE-321_respectDrpFlag IT are a separate issue and should not be in this PR.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If all ITs are busted, fixing them should be ...
null
apache__maven-surefire__161
apache/maven-surefire
161
defect
26527d10c4835c254f8d7d2efb2227a30697f674
04f66cdd828d131a028eb400d1ed26fe104fe3f2
SUREFIRE-1396: Provider class path is incorrect for custom provider in Failsafe
Hi, When using a custom Surefire provider with Surefire (not Failsafe), the "provider classpath" contains only the provider and surefire-api. However, when using a custom provider with Failsafe, the provider class path ends up including a lot more... it seems like perhaps all plugins that are loaded? This has caused s...
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index b3df567dae..e41a29ae3f 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/Abst...
6
4
2
[{"id": "G0", "claim": "The IT provider pom should not define the surefire.version property locally because that property comes from the parent pom.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit surefire-api dependency declared in ...
null
apache__maven-surefire__192
apache/maven-surefire
192
defect
19ea21e3d7681c33a158dd7e06e8b5a993a33d85
99622e2b04e071d9207225eeaa93944e7934f30d
[SUREFIRE-1550] The surefire XSD published on maven site lacks of some
rerun element Add missing XSD elements generated by the rerun feature.
diff --git a/maven-surefire-plugin/src/site/resources/xsd/surefire-test-report.xsd b/maven-surefire-plugin/src/site/resources/xsd/surefire-test-report.xsd index 2bad4aca7d..684f17516d 100644 --- a/maven-surefire-plugin/src/site/resources/xsd/surefire-test-report.xsd +++ b/maven-surefire-plugin/src/site/resources/xsd/su...
4
3
1
[{"id": "G0", "claim": "Unit tests should be added that validate the XML reports under maven-surefire-report-plugin/src/test/resources/**/TEST-*.xml against the new schema.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The TEST-*.xml report files in th...
null
apache__maven-surefire__267
apache/maven-surefire
267
defect
733d92f6141a91c54ffa92f5d2f1c87528972f36
38ad13f5a6a628282064d1b0976e1ea69a135b0e
[SUREFIRE-1741] JUnit5: Detect failed containers
Failed JUnit5 containers will be reported as test failures. This is intended to address [SUREFIRE-1741](https://issues.apache.org/jira/browse/SUREFIRE-1741). Note: I can't comment on the JIRA issue currently, but I will when I get in to work. I just now noticed there's already a PR open that (in my opinion) addre...
diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java index f8fd3bc413..583ed621d9 100644 --- a/surefire-providers/su...
7
5
1
[{"id": "G0", "claim": "The parentheses in `( isFailedContainer || testIdentifier.isTest() )` are unnecessary and do not have to be used, since there is no collision between boolean and String in this case.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "...
null
apache__maven-surefire__288
apache/maven-surefire
288
defect
1c548824703dca398e200d25214cbf9743257c70
408007239f27171fc6ee0a993e21579ff0a4e332
[SUREFIRE-1783] Fork JVM defined by Toolchain should not inherit JAVA_HOME from Maven process
When a toolchain is used to select a test jvm, also set the `JAVA_HOME` environment variable to the selected jvm instead of inheriting the environment variable from the invoking shell. (Note: this PR is based on branch from #287 )
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index 8a0cd0aac7..9a6090df1e 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/Abst...
3
3
1
[{"id": "G0", "claim": "The change should come with a unit test that prepares a DefaultJavaToolChain, calls the method via Whitebox.invokeMethod, and asserts a path in the assertion.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The same problem exists...
null
apache__maven-surefire__304
apache/maven-surefire
304
defect
a11f4b186497885b6c5462d3e6932ff9cb43ad88
59862655073ee9590ef4e71bcb7a52509cde735b
SUREFIRE-1815: Interrupt state handling in output
Added a restoration of thread interrupt state to LegacyMasterProcessChannelEncoder. Added a unit test to ensure this is indeed fixed and not reintroduced. https://issues.apache.org/jira/projects/SUREFIRE/issues/SUREFIRE-1815
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/LegacyMasterProcessChannelEncoder.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/LegacyMasterProcessChannelEncoder.java index 443fdcd2c9..d4843e73a7 100644 --- a/surefire-booter/src/main/java/org/apache/maven/sure...
1
1
0
[{"id": "G0", "claim": "Remove the explanatory SUREFIRE-1815 comments the change adds (in encodeAndPrintEvent and in the new test) because git history already records that context.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
apache__maven-surefire__3157
apache/maven-surefire
3,157
defect
c2080f67add3002ac2fba2f2f2dc9a6f77cce825
e82d37718bb58523b7e986ee3b806309ea4fabb8
Fix capturing of output of JUnit `LauncherSessionListener`
[This PR](https://github.com/apache/maven-surefire/pull/863) introduces a change in the `JUnitPlatformProvider` class, which causes the output of registered [LauncherSessionListeners](https://docs.junit.org/current/api/org.junit.platform.launcher/org/junit/platform/launcher/LauncherSessionListener.html#launcherSessionO...
diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java index 70e0cac92d..3be6ceffdf 100644 --- a/surefire-provid...
1
1
0
[{"id": "G0", "claim": "Replace the six repetitive assertThat(...)isEqualTo(...) assertions with a single AssertJ extracting/containsExactly chain via the provided suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven-surefire__320
apache/maven-surefire
320
defect
e9f595bbdf2800d678b1ef34a7d1c70af51f3a8c
41187f0ab3cea710045c712b096c1d6972ebfecf
[SUREFIRE-1851] Prevent NPE in SmartStackTraceParser
JIRA: https://issues.apache.org/jira/browse/SUREFIRE-1851 SmartStackTraceParser is used in various places to parse throwables. However, if the throwable stack trace is null it will throw an NPE itself. This can cause test runners to fail in unexpected ways, which in the worst case can lead to false success test resu...
diff --git a/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java b/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java index 80d8e79d6c..b5ac7e162c 100644 --- a/surefire-providers/common-java5/src/main/java/org/a...
2
2
0
[{"id": "G0", "claim": "The test helper SomeMockedException should not declare its getCause() method synchronized.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In focusOnClass, the null-stackTrace guard should return Collections.emptyList() and th...
null
apache__maven-surefire__332
apache/maven-surefire
332
defect
f14fa54b9eba073c8c896a829fac1c2037b34222
47878b9f43ccab00f4d24a89a44d16b31b24fc91
[SUREFIRE-1882] Fix failures when compiled on Java 9+ and run on Java 8
Cast to Buffer to avoid java.lang.NoSuchMethodError due to JDK API breakage. This was fixed in a similar way in apache/maven-wagon@92c0d2a. See mongodb/mongo-java-driver@21c91bd for details.
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/SurefireForkChannel.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/SurefireForkChannel.java index 5c3381cd44..640d5624da 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/...
5
1
0
[{"id": "G0", "claim": "In StreamFeederTest the mocked channel answer lambda should declare the variable as `Buffer` (`Buffer bb = invocation.getArgument( 0 );`) instead of `ByteBuffer`, so the `( (Buffer) bb )` casts can be dropped.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "i...
null
apache__maven-surefire__3329
apache/maven-surefire
3,329
defect
16cabe5cfe82e1789303f4873ca0227fb9abfed3
aeb7fe623a11b20ad1d52db4aaf88d0d63227944
Fix empty and missing testcase entries for JUnit 5 @BeforeAll/@AfterAll failures
### Problem JUnit 5 container-level failures (e.g., `@BeforeAll` / `@AfterAll`) are not handled correctly by Surefire. - FAILED containers produce `<testcase name="">` due to missing method context - ABORTED containers do not emit any `<testcase>`, causing missing entries in XML reports ### Solution - Assi...
diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnit5BeforeAllContainerFailureIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnit5BeforeAllContainerFailureIT.java new file mode 100644 index 0000000000..ecf26aa140 --- /dev/null +++ b/surefire-its/src/test/java/org/apache/maven...
5
4
1
[{"id": "G0", "claim": "The pull request should also add an integration test covering the JUnit 5 @BeforeAll container-failure scenario, not only unit tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The \"initializationError\" string literal in cr...
null
apache__maven-surefire__339
apache/maven-surefire
339
defect
9f7adbeb5e54cab7036c1055199c38f8dcfad07b
b2fe5a92aa5a2e72205baba8bd754393d943acf7
[SUREFIRE-1890] Support TestNG 7.4.0
Use reflection to configure parallel arguments, as the setParallel(String) method has been removed and the enum equivalent doesn't exist in older TestNG versions
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index 7ae8486f53..dca13ae60a 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/Abst...
4
4
3
[{"id": "G0", "claim": "The new TestNG 7.4.0 parallel support ships without a test, and the author is unsure how to write one given it must run on TestNG 6.9.7+.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The copy/paste of compatible configuration (...
null
apache__maven-surefire__407
apache/maven-surefire
407
defect
9ffd9ae9d049f1ed73db18f97dbcf47ecc319fda
e60a3024ebe0991f8e78f7b3f74daff8bfffeee6
[SUREFIRE-1967] Fix parallel test ordering to prevent high resource consumption
[ [https://issues.apache.org/jira/browse/SUREFIRE-1967](https://issues.apache.org/jira/browse/SUREFIRE-1967) ] Before the change, TestNG run from Surefire can execute `@BeforeClass` on many different test classes/instances, without invoking `@AfterClass` yet, leading to high resource utilization. This is not obser...
diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java index 56fc9d5987..6c4b183e9a 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache...
5
4
2
[{"id": "G0", "claim": "Add a test (starting from an integration test modelled on CheckTestNgGroupThreadParallelIT) that confirms the parallel ordering behavior of this change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The reflection comment should...
null
apache__maven-surefire__422
apache/maven-surefire
422
defect
76c6233b8b44e8d1b40d758fcab4f7ff48ec1aad
4770f5f3aa18076101cf56ef7cc0ef07a047df3e
[SUREFIRE-1975] JDK18 - The Security Manager is deprecated and will be removed in a future release
Following this checklist to help us incorporate your contribution quickly and easily: - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. ...
diff --git a/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm index 52b2d94480..25e6e5f2e3 100644 --- a/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm @@ -203,6 +203,8 @@ else ...
4
2
0
[{"id": "G0", "claim": "The new test should call the public System.getSecurityManager() directly instead of going through reflection (invokeGetter).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Checking the Java version would be enough (e.g. w...
null
apache__maven-surefire__443
apache/maven-surefire
443
defect
909637cb5d79171e12690ad0f1b99a3bd2184e23
46250e7de8e8bd7297be76e48dc6c53f9d5b6c2a
[SUREFIRE-1972] Use current version of surefire-shared-utils
Following this checklist to help us incorporate your contribution quickly and easily: - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Y...
diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 78c09f5461..b4edbcca1a 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -26,8 +26,10 @@ jobs: name: Verify uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.y...
8
2
0
[{"id": "G0", "claim": "The hardcoded '3-SNAPSHOT' version in the ide-development install-file configuration looks like a random name and should be justified or changed.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The removal of '<streamLogs>...
null
apache__maven-surefire__452
apache/maven-surefire
452
defect
4fc26341c4185e6557bc38b84e7dececb0cd7373
f2c8f8c70cadf7b8493f072f5daf0b53e1fe5a23
[SUREFIRE-1992] - Do not abbreviate test error/failure messages to 78 characters
Pull request for ticket [SUREFIRE-1992] which removes abbreviation of test error/failure messages to 78 characters in two classes that write test results to stdout/stderr. The fix greatly improves usability of surefire when troubleshooting test failures.
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/LegacyPojoStackTraceWriter.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/LegacyPojoStackTraceWriter.java index dbb4b50c0f..ecff3ccb53 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/LegacyP...
8
8
3
[{"id": "G0", "claim": "The added `if ( ... )` combines with the unchanged outer `if ( throwable.getTarget() instanceof AssertionError )` into an unbraced nested if that silently swallows the following else branch - \"a pure trojan horse\".", "category": "correctness", "verdict": "supported", "priority": "P0", "scope":...
null
apache__maven-surefire__467
apache/maven-surefire
467
defect
f243cd2799af5a7d5e4468726a9b466eaec8038f
20f7a2fab42d9625bc67ed964550a1589788a24a
[SUREFIRE-2009] Refactoring of surefire-junit3. JUnitTestSetExecutor and PojoTestSetExecutor should be stateless.
This is a refactoring of surefire-junit3 I needed to do before completing [SUREFIRE-1860](https://issues.apache.org/jira/browse/SUREFIRE-1860). The changes in SUREFIRE-1860 are big and therefore I would like to split them to this refactoring, abstraction in another PR, continue with another PRs regarding implementation...
diff --git a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/JUnit3Provider.java b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/JUnit3Provider.java index ff210eccea..731ac871e9 100644 --- a/surefire-providers/surefire-junit3/src/main/java/org/apache/m...
1
1
0
[{"id": "G0", "claim": "In JUnit3Provider the private `testsToRun` field should be a local variable in `invoke` (it is used only there), and `getSuites` should inline its `scanClassPath` call instead of assigning the field.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existin...
null
apache__maven-surefire__470
apache/maven-surefire
470
defect
e8ac9b66ab773538d349f87c4882561cd3110920
6253914cdabef3c2e51802ed073b7c6efbe93e0c
[SUREFIRE-2012] Use maven-shared-utils instead of surefire-shared-utils in Report Parser. Removed commons-lang in Report Plugin.
Following this checklist to help us incorporate your contribution quickly and easily: - [x ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issu...
diff --git a/maven-surefire-report-plugin/pom.xml b/maven-surefire-report-plugin/pom.xml index dca647b458..67707bc4a8 100644 --- a/maven-surefire-report-plugin/pom.xml +++ b/maven-surefire-report-plugin/pom.xml @@ -71,10 +71,6 @@ <groupId>org.apache.maven.reporting</groupId> <artifactId>maven-...
2
1
0
[{"id": "G0", "claim": "The pull request changes the XML indentation of surefire-report-parser/pom.xml from 2 to 4 spaces, which looks incorrect since Maven's code convention is 2 for xml.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Directory...
null
apache__maven-surefire__471
apache/maven-surefire
471
defect
550f98a6a9dbd3df29b66525642696f290831ffd
9c12746f7bd9bf96de04486e32230da85a0d45ef
[SUREFIRE-1909] - Support JUnit 5 reflection access by changing add-exports to add-opens
This PR fixes : https://issues.apache.org/jira/browse/SUREFIRE-1909 We decided to go with the drop in replacement of `--add-exports` with `--add-opens`, as suggested in the issue. To add to the background of this issue, a previous PR has been created, introducing the option to use either `add-exports` or `add-ope...
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java index 8d4d84c68f..fc89016b5b 100644 --- a/maven-surefire-common...
2
2
0
[{"id": "G0", "claim": "The debug println lines in Main.java are not useful and should be deleted (Tibor suggested, alternatively, using them to assert the classpath and modulepath via Hamcrest matchers).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
apache__maven-surefire__475
apache/maven-surefire
475
defect
fdf022886a8992731312804e6d33de6a3c554dda
adbbc82e0c0827ceafd838c21666e043ea301885
[SUREFIRE-2025] Updated abstractions which helps associating systemProperties() with a test context
Following this checklist to help us incorporate your contribution quickly and easily: - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue...
diff --git a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/ForkedProcessEventNotifierTest.java b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/ForkedProcessEventNotifierTest.java index f9ad00c498..c4b9de75c9 100644 --- a/maven-surefire-common/src/test/...
4
4
2
[{"id": "G0", "claim": "The added systemProperties(Map<String,String>, RunMode, Long) method is not descriptive of what it does and its new parameters are unexplained, so documentation is needed for it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
apache__maven-surefire__494
apache/maven-surefire
494
defect
68bca29b23d27dba3e06cf5e73a3fdc1a22598db
2c98551925cb504e4853002f0eb6fd010c88442d
[SUREFIRE-2040] No tests executed with junit-platform-suite and -Dtest=TestSuite
Following this checklist to help us incorporate your contribution quickly and easily: - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. ...
diff --git a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm index e1426a680a..c823bc1a04 100644 --- a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/junit-platform....
5
3
1
[{"id": "G0", "claim": "The new junit5-suite IT pom deliberately mixes junit api 5.8.0/1.8.0 with engine dependencies 5.8.2/1.8.2, and the reviewers ask whether the api and engine versions should be the same — or whether such a mixed-version corner case should be tested at all.", "category": "design", "verdict": "oppos...
null
apache__maven-surefire__500
apache/maven-surefire
500
defect
6e60b0389814d8361e453092d3b18f52c3e4bcb1
60bde3e3c143b9001e9bec13bc22e16b1fa0aff9
[SUREFIRE-2024] Replace testng-junit5 by testng-engine
Following this checklist to help us incorporate your contribution quickly and easily: - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Y...
diff --git a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm index e1426a680a..ea882af9cc 100644 --- a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/junit-platform....
4
2
1
[{"id": "G0", "claim": "The testng-engine dependency added to the junit5-testng IT POM is missing the exclusion of the transitive junit-platform-engine, which leaves an inconsistent engine version combined with the overridden Jupiter API; it is better to remove the engine as a transitive dependency.", "category": "corr...
null
apache__maven-surefire__504
apache/maven-surefire
504
defect
32f7dd36208abe059f6cfb01e79571b03c158806
cb27cacfd8fa6fc0332a9ae48b1fd829d01f0b69
[SUREFIRE-2051] Propagate exceptions while resolving artifacts in `SurefireDependencyResolver`
Surefire doesn't propagate the exception during artifact resolution, and then later, it fails with a `NullPointerException` when it needs to access the artifact (in `AbstractSurefireMojo.java#L4125` or `SurefireDependencyResolver.java#L203`). This makes harder to understand the underlying issue. This change uses `Resol...
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index 88602e50ac..4f96eddca8 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/Abst...
1
1
1
[{"id": "G0", "claim": "The new exception handling in SurefireDependencyResolver wraps the ArtifactResolutionException in a RuntimeException; the reviewer asks to throw MojoExecutionException instead and update the calling method signatures accordingly.", "category": "design", "verdict": "supported", "priority": "P1", ...
null
apache__maven-surefire__554
apache/maven-surefire
554
defect
6f0fb404f89728fb65f37c9db7711fff6af55d5d
00e05d45fd7ac4e9ef591880a330f1635ca43208
[SUREFIRE-2109] Add suffix derived from current user to Surefire temp directory name
This pull request offers a fix for bug [SUREFIRE-2109]. Following this checklist to help us incorporate your contribution quickly and easily: - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial ch...
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/SureFireFileManager.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/SureFireFileManager.java index 212f299859..a71408255e 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/SureFireFileManager.java ++...
3
1
1
[{"id": "G0", "claim": "Explicitly making the Surefire temp directory world-writable (tempDir.setWritable(true, false)) is a security-wise bad idea and should be removed rather than granted to all users.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
apache__maven-surefire__568
apache/maven-surefire
568
defect
1218cf82d206d7644f2fd010ec8a045e0f6abaf8
acb2fd6606ea991d674fac89afe8932613116807
[SUREFIRE-2117] Include package, outer classes in XML report for @Nested
Following this checklist to help us incorporate your contribution quickly and easily: - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Y...
diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire2117XmlReportingNestedIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire2117XmlReportingNestedIT.java new file mode 100644 index 0000000000..e30b15bfde --- /dev/null +++ b/surefire-its/src/test/java/org/ap...
3
3
0
[{"id": "G0", "claim": "The CI artifact upload step fails because the uploaded artifact path (from the surefire-1617 test) contains a colon, an invalid character.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The test declares four version parame...
null
apache__maven-surefire__584
apache/maven-surefire
584
defect
f6bc398c4d5bc352967434ec6d0e7facccec7afe
dfa3158af89ef329fc695677f728d3c0957952f2
[SUREFIRE-2135] Use native.encoding for parsing ps
- Use the value of the system property native.encoding as charset for parsing the output of the ps command that ForkedBooter issues on Unix-like OSes when checking if the forked process is still alive - Fall back to UTF-8 in case the system property is absent (pre-JDK17) - Remove an unnecessary System.out.println in ...
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java index e21264bd48..375c1a2273 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java +++ b/surefire-booter/s...
1
1
1
[{"id": "G0", "claim": "The charset lookup should fall back from native.encoding to file.encoding and then to UTF-8, instead of going straight from native.encoding to UTF-8.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__maven-surefire__686
apache/maven-surefire
686
defect
9b7ecf141f4686c094219038272c28fecccffa30
b4bdce07b12b48b3cf4d26fe28faaec18b5e14ce
[SUREFIRE-2210] - Restore ordering of additional class path elements
Following this checklist to help us incorporate your contribution quickly and easily: - [X] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Y...
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index 7cbe8bbb2b..7c337818ad 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/Abst...
1
1
1
[{"id": "G0", "claim": "A test case should be added so that regressions of the additional classpath element ordering fix are prevented in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__maven-surefire__716
apache/maven-surefire
716
defect
5487438d08a91244309c7932fdafe3103bb22d44
009dd2f519625edb1db335120c0cfe0f5777dc1a
[SUREFIRE-2232] StatelessXmlReporter: handle failed test result without a throwable
> A regression bug appeared in 3.0.0-M6: > > A testNG test class has a listener which updates results from SUCCESS to FAILURE: ``` java @Override public void onTestSuccess(ITestResult result) { result.setStatus(ITestResult.FAILURE); result.getTestContext().getPassedTests().removeResult(result); r...
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java index 7fb661eb54..5fb0cfc3cf 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin...
3
2
1
[{"id": "G0", "claim": "In the no-message branch the type attribute should be extracted the same way as in the branch above (the delimiter-based approach of line 451) instead of StringTokenizer.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reporter...
null
apache__maven-surefire__811
apache/maven-surefire
811
defect
d28e294e59aa88002a0417f67c1d8f52bc1e8351
4cc6cd1eb8dec41eb40f11d2a40f27e67a0f81ee
[SUREFIRE-2291] Change logger from Plexus to SLF4J
* Replace org.codehaus.plexus.logging.Logger with org.slf4j.Logger. * Change from injected Plexus logger to lookup SLF4J logger. Following this checklist to help us incorporate your contribution quickly and easily: - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SUREFIRE) filed ...
diff --git a/maven-failsafe-plugin/pom.xml b/maven-failsafe-plugin/pom.xml index 0d371c294d..6f2f68b074 100644 --- a/maven-failsafe-plugin/pom.xml +++ b/maven-failsafe-plugin/pom.xml @@ -45,6 +45,13 @@ </properties> <dependencies> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-si...
5
3
2
[{"id": "G0", "claim": "Use slf4j-simple 1.7.x instead of 2.0.16, because Maven 3.x supports only the 1.7.x line.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Logger initialization should be consistent across the code (the reviewer would like it d...
null
apache__maven__10970
apache/maven
10,970
defect
bf87c1a5562156ef6c93f002f6ebf85728fbcbeb
c00e8a51e60df168f047fa9ebfe6633a9b712e1b
Avoid parsing MAVEN_OPTS (master/4.x)
Fixes #10937 by introducing an additional INTERNAL_MAVEN_OPTS for any arguments that need to be inserted by the script. Parsing the externally-defined MAVEN_OPTS variable can lead to incorrect processing of quotes and special characters, so use the separate variable to avoid doing so. Additionally JVM_CONFIG_MAVEN_O...
diff --git a/apache-maven/src/assembly/maven/bin/mvn.cmd b/apache-maven/src/assembly/maven/bin/mvn.cmd index 1d50c0ec323a..09c1638276fe 100644 --- a/apache-maven/src/assembly/maven/bin/mvn.cmd +++ b/apache-maven/src/assembly/maven/bin/mvn.cmd @@ -204,7 +204,7 @@ for /F "usebackq tokens=* delims=" %%a in ("%MAVEN_PROJEC...
3
1
0
[{"id": "G0", "claim": "If the new test is similar to MavenITmng4559SpacesInJvmOptsTest, extend that existing test instead of creating a new one, and add a description noting that it also checks the case from the issue.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
apache__maven__10975
apache/maven
10,975
defect
63374c17e6bb8347f9c72f0e2238f2c4cdab3c9a
9201bba01e7ffd1658b620bb480b02431881e0e8
Improve ProjectBuildingException error messages with detailed problem reporting
fixes #10951 ## Description Enhanced `ProjectBuildingException` to provide detailed error messages instead of the generic "Some problems were encountered while processing the POMs" message. This improvement helps developers quickly identify and fix build problems without needing to use a debugger. ## What was ...
diff --git a/impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java b/impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java index d8b3ca5ae8f2..63ca6d85d70b 100644 --- a/impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java +++ ...
5
4
0
[{"id": "G0", "claim": "The @SuppressWarnings(\"deprecation\") on the new createMessage method should not be necessary, and the new code should not call the deprecated ModelProblem API; in any case the warning must not be suppressed here.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope...
null
apache__maven__10997
apache/maven
10,997
defect
8c1fbba4a172fa6017ce2c423de3a4aca36879f0
175e20e53cb46300cd9b2a0e340893015b6eb581
Fix recursive update issue in SmartProjectComparator
## Description Fixes #10995 - Resolves `IllegalStateException: Recursive update` in `SmartProjectComparator` during parallel builds of large multi-module projects. ## Problem The `SmartProjectComparator.getProjectWeight()` method was using `ConcurrentHashMap.computeIfAbsent()` in a recursive context. When `calculate...
diff --git a/impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java b/impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java index 8f5626f4ecb2..829c6e4df782 100644 --- a/impl/maven-core/src/main/ja...
2
1
0
[{"id": "G0", "claim": "Concurrent calls to getProjectWeight may both compute the weight because the new read-then-putIfAbsent sequence is not synchronized; the reviewer asks whether to synchronize the call or method, or whether the computation is cheap enough to leave unsynchronized.", "category": "correctness", "verd...
null
apache__maven__11037
apache/maven
11,037
defect
33360fd99999b619f0c09da92bc9cf964671c0ad
0467247d5ca4e3e49c9a3fe9aa51116c740a7bf1
Uninterpolated repositories from parent POMs during model building
On parent loading, the repositories were interpolated okay, but there was a problem that parent own properties were not considered in interpolation (of own repositories). Fixes #11021
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelBuilder.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelBuilder.java index c55c1ccadf33..95b7fd842ab7 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelBuilder.java +++ b/impl...
1
1
0
[{"id": "G0", "claim": "A test would be nice (the fix for uninterpolated parent repositories should be covered by a unit test), though no big deal.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven__11092
apache/maven
11,092
defect
667714d601233366151638bccf34258f2e39eb88
f548f115126bc5213469e09a32597b5b033f9ae6
Fix #10939: DefaultModelXmlFactory: make location tracking opt-in—disabled by def…
…ault, enabled when an InputLocationFormatter is provided. Adapt formatter to Function<InputLocation,String> and write to the actually opened stream for path output. Fixes #10939. Following this checklist to help us incorporate your contribution quickly and easily: - [ X] Your pull request should address just...
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultModelXmlFactory.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultModelXmlFactory.java index f447627cc794..610cb60d04ae 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultModelXmlFactory.java +++ b/impl/maven-im...
14
14
0
[{"id": "G0", "claim": "The new writer variable should be named xmlWriter instead of xml.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The line changing the 'Unable to write model' exception message does not need to be changed in this PR and s...
null
apache__maven__11106
apache/maven
11,106
defect
d4b7e42b1ce291d6ebef55007ab78d97115770d3
4e43ab3553b7982d3ced1a74d89187694e86881c
Fix #11009: Prevent StackOverflowError in parent POM resolution
This PR addresses issue #11009 where Maven would encounter a StackOverflowError when resolving parent POMs that form a cycle. ## Problem When Maven encounters a cyclic dependency in parent POM resolution (e.g., A -> B -> A), it would enter an infinite recursion loop, eventually causing a StackOverflowError. This made...
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelBuilder.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelBuilder.java index 9e2a776d7a7b..9a3a38a83a95 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelBuilder.java +++ b/impl...
1
1
1
[{"id": "G0", "claim": "The 3-arg resolveAndReadParentExternally overload should pass the caller's parentChain through instead of creating a new LinkedHashSet, which breaks cycle detection across external parent resolution calls.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
apache__maven__11138
apache/maven
11,138
defect
224874fe3e938077222b67bea65b9a78ae3d88f1
740347e03f3857069f9e7b3f00cf398133ba773c
GH-10210: fix too eager decrypt of legacy passwords
Accept ONLY documented forms of them. Fixes #10210
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSettingsBuilder.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSettingsBuilder.java index 76695f4b1f53..3776a08d7bb9 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSettingsBuilder.java +++ b/impl/maven-im...
1
1
0
[{"id": "G0", "claim": "The unrelated removal of the maven-jar-plugin test-jar block from its/core-it-suite/pom.xml should be done in a different PR, not in this one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven__11365
apache/maven
11,365
defect
304791ec1c50516c989a408a147a6b46fe707e24
d1dc6f101cdb67fa1da3fc042081602b4a9c1a19
Fix special characters in .mvn/jvm.config (fix #11363, #11485 and #11486)
This PR fixes multiple related issues with special character handling in `.mvn/jvm.config` files by unifying the parsing approach to use `JvmConfigParser.java` on both Unix and Windows platforms. ## Issues Fixed - **MNG-11363**: Pipe symbols (`|`) in jvm.config cause shell parsing errors - **MNG-11485**: Non-POSIX `x...
diff --git a/apache-maven/src/assembly/component.xml b/apache-maven/src/assembly/component.xml index 4d75c9a38ca8..5f55a310c8bd 100644 --- a/apache-maven/src/assembly/component.xml +++ b/apache-maven/src/assembly/component.xml @@ -68,6 +68,7 @@ under the License. <includes> <include>*.cmd</include> ...
3
3
0
[{"id": "G0", "claim": "The same Java helper should be used for parsing .mvn/jvm.config on all platforms instead of keeping two separate solutions.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The long lambda in the line-processing code is unreadable a...
null
apache__maven__11380
apache/maven
11,380
defect
304791ec1c50516c989a408a147a6b46fe707e24
4ff85c235b1ecee29c6a71b16d9cf40dfb841c2d
Type derive (simpler)
Instead to "smear" this feature across Maven and Resolver classes, for start let's keep it "confined" with single class: the TypeDeriver. Later we can see where to go further with it. This PR also includes bugfix, where Maven `DefaultType` implements `ArtifactType`, while in reality it does not (violates contract...
diff --git a/compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java b/compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java index 068c697e79b3..5ccf74b589ba 100644 --- a/compat/maven-resolv...
2
1
0
[{"id": "G0", "claim": "DefaultType being decoupled from ArtifactType (it no longer implements it) does not seem necessary — what is its benefit?", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The annotation-processor dependency still ends up on the class ...
null
apache__maven__11394
apache/maven
11,394
defect
727d80f6e457e783d16aae4867317034db7d03d5
17d51e126c61dc5efdb885fc231ae77a4b4fbb70
Fix resource targetPath resolution to be relative to output directory (fixes #11381)
This PR fixes a regression in Maven 4 where resource `targetPath` was being resolved relative to the project base directory instead of the output directory (`target/classes` or `target/test-classes`). ## Problem In Maven 3.x, when a resource has a relative `targetPath`, it's resolved relative to the output directory....
diff --git a/impl/maven-core/src/test/java/org/apache/maven/project/ResourceIncludeTest.java b/impl/maven-core/src/test/java/org/apache/maven/project/ResourceIncludeTest.java index 9d639fafc62e..6c14c6703d2d 100644 --- a/impl/maven-core/src/test/java/org/apache/maven/project/ResourceIncludeTest.java +++ b/impl/maven-co...
3
3
2
[{"id": "G0", "claim": "The targetPath handling implemented in ConnectedResource (the computeRelativeTargetPath logic added in E003) does not look correct and needs another look.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Resource targetPath mus...
null
apache__maven__11426
apache/maven
11,426
defect
f06732524589040a63f8595bb4d1f24cca82d14c
ce70464001d08cc32dc9f4a59952cebbe8a4e8f2
Add support for complex data injection in @MojoParameter for unit testing
This PR enhances the `@MojoParameter` annotation to support injection of complex data types when unit testing mojos, with comprehensive test coverage. ## Key Features ### 1. Added `xml` attribute to `@MojoParameter` annotation - `xml=true` (default): Parse value as XML content (existing behavior) - `xml=false`: Treat...
diff --git a/impl/maven-testing/src/main/java/org/apache/maven/api/plugin/testing/MojoExtension.java b/impl/maven-testing/src/main/java/org/apache/maven/api/plugin/testing/MojoExtension.java index 9a9d2290316b..d3e5bfb1ae11 100644 --- a/impl/maven-testing/src/main/java/org/apache/maven/api/plugin/testing/MojoExtension....
2
2
0
[{"id": "G0", "claim": "The XML-building code in resolveParameter could be factorized a little: assign the value once, escape it only when it is not XML, and use single characters instead of one-character strings.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
apache__maven__11495
apache/maven
11,495
defect
a51e117cd3221bc755bd501742cf107806c486f1
dfba78a00f547f2e78ce6adedc84175779c0a92d
Repository layout should be used in MavenRepositorySystem
Following this checklist to help us incorporate your contribution quickly and easily: - [ ] Your pull request should address just one issue, without pulling in other changes. - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [ ] Each commit in...
diff --git a/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java b/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java index 47cfebcbbaed..250e1940062f 100644 --- a/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java +++ b/maven-core/src/main/java/...
4
3
1
[{"id": "G0", "claim": "The warn log for a missing repository layout is emitted every time the repository is used, and the user should be told how to fix the problem instead of being left alone with it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
apache__maven__11505
apache/maven
11,505
defect
25c80d8ece4252421c9dce5c34fb46a21c7b9f23
3e2d01f7ffc5cd52cbdbd48a39dd87a3ea9b38b3
Add module-aware resource handling for modular sources
## Summary - Automatically inject module-aware resource roots for projects using modular `<sources>` layout - Resources are picked up from `src/<module>/main/resources` and `src/<module>/test/resources` - Issue warnings when explicit legacy `<resources>` configuration is ignored in favor of modular defaults ## Problem...
diff --git a/impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java b/impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java index a1a331ab6940..83411a99607b 100644 --- a/impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java +++ b/impl/ma...
5
3
0
[{"id": "G0", "claim": "The main-resources and test-resources handling blocks are near-duplicates and should share the code in a single method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The extractModules method could be static.", "category...
null
apache__maven__11549
apache/maven
11,549
defect
0aaf13d9139b2ba2533cb53206d03f8a6dd048a6
4ac22a5e95479634d0b1fcb5456724744e25bd61
Accept Java module names as attached artifactId even if they differ from the project's artifactId
Pull request #1838 added a verification in `DefaultProjectManager` making sure that an artifact attached to a project has the same `groupId`, `artifactId` and `version` as the project. This pull request relaxes that restriction by allowing the `artifactId` to be different, but still requires the `groupId` and `version`...
diff --git a/impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java b/impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java index 7c495a7344bc..0844513b8bc5 100644 --- a/impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager....
8
6
2
[{"id": "G0", "claim": "Add a comment marking where the second part of the attachArtifact test starts, or split it into a second test case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exception message should say \"the same groupId and ve...
null
apache__maven__11551
apache/maven
11,551
defect
0aaf13d9139b2ba2533cb53206d03f8a6dd048a6
49cf69f28461ff768673f76a1b38585313c80a5c
`FileSelector.matches(Path)` sometime wrong for a file or a directory
This pull request fixes the following bugs in `PathSelector`: * Brace expansion must be applied also to the "/**" path suffix. * Detection of "match all" pattern must take brace expansion in account. * The optimization for excluding whole directories sometime excludes a directory that shouldn't be excluded. Tho...
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPathMatcherFactory.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPathMatcherFactory.java index 83d1919385c5..f26f6cde068d 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPathMatcherFactory.java +++ b/impl...
1
1
0
[{"id": "G0", "claim": "The new createDirectoryMatcher() method does not have to be public.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven__11563
apache/maven
11,563
defect
0aaf13d9139b2ba2533cb53206d03f8a6dd048a6
120ae7d11ffce2fb4a7755dd8d0961c8f12608f3
Fix NullPointerException when clearing project properties
## Problem Calling `clear()` on model properties throws NPE in m2e: ``` java.lang.NullPointerException: Cannot invoke "Object.toString()" because "value" is null at org.apache.maven.model.ModelBase.lambda$setProperties$5(ModelBase.java:112) at org.apache.maven.model.WrapperProperties$OrderedProperties.lambda...
diff --git a/compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java b/compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java index 2f872a7bf505..967af237c5cf 100644 --- a/compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java +++ b/compat/maven-model/src/test/java/org/apa...
1
1
1
[{"id": "G0", "claim": "java.util.Properties does not really support null values, so mapping a null value to null in the generated LinkedHashMap is questionable — the reviewer asks whether the author has an actual use case for it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
apache__maven__11577
apache/maven
11,577
defect
3da6c477ea8385bf24df202297bb5c2976450ef7
c3ae64287a072bf2effeaa708f039fd1d12b52fa
[3.9.x] MavenPluginJavaPrerequisiteChecker: Handle 8/1.8 Java version in ranges as well
Java is consistent when reporting versions, but users are not. No need to go below 1.8, as Maven 3.9 is Java 8 only. This PR makes "8/1.8" work for ranges as well, not only for standalone version. Fixes #11575
diff --git a/maven-core/src/main/java/org/apache/maven/plugin/internal/MavenPluginJavaPrerequisiteChecker.java b/maven-core/src/main/java/org/apache/maven/plugin/internal/MavenPluginJavaPrerequisiteChecker.java index ebb081171476..d9c8f8fa300e 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/internal/Maven...
3
1
0
[{"id": "G0", "claim": "The new guard in matchesVersion may accidentally mix variables: it tests requiredVersion.contains(\"1.8\") but substrings currentVersion, and the reviewer asks whether that is intended.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c...
null
apache__maven__11639
apache/maven
11,639
defect
6f0294df4534ab162ddcd547ec4f60fcf5769d0c
8e867a6d536d1275392fbd5185114aafcfe07676
Consumer POM of multi-module project should exclude <build> and <dependencies> elements
Maven 4 automatically generates a consumer POM after a successful build. This consumer POM already excludes some elements from the original POM such as the list of sub-projects. However, when building a modular project (in Java sense), there are two more elements that need to be excluded: * `<build>` because it cont...
diff --git a/impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java b/impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java index 9444f972a9be..f32c96288657 100644 --- a/impl/maven-core/src/main/java/org/a...
7
5
2
[{"id": "G0", "claim": "The PR should keep the information carried by <build> (and similar metadata such as inheritance/provenance info) in the consumer POM in some normalized/stable form — or provide a replacement — before dropping it; rmannibucau states he is -1 for the PR until such a solution is proposed.", "catego...
null
apache__maven__11702
apache/maven
11,702
defect
fa36e7abd1a68196d8a0ee4555bf18eb80ba898d
c1b431b1363b5afcede6bc54e551c783b4d460c9
Fail on legacy config in modular projects
## Summary * Legacy directories and resources that conflict with modular or new-style source configuration now cause the **build to fail** instead of being silently ignored * Prevents silent loss of user-configured sources/resources * Covers two acceptance criteria for legacy directory handling with `<sources>`...
diff --git a/impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java b/impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java index 9de2ca1348ff..306529f9f4a7 100644 --- a/impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java +++ b/impl/ma...
10
7
1
[{"id": "G0", "claim": "The code comments and Javadoc say legacy directories are 'ignored', that 'a warning is emitted', or that they 'must not be used', when the build actually fails completely; the wording should say the build fails.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
apache__maven__11779
apache/maven
11,779
defect
465a93ceb620266bf88bb1a0c9d69228630a4fb6
889571779a0753825090cace5c927c71fa0234c1
Feat: Promote session.topDirectory and session.rootDirectory
To real properties usable in POM as well, not only in config interpolation.
diff --git a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java index cefb2c3fe6f7..5e5930ca964b 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java +...
1
1
0
[{"id": "G0", "claim": "The javadoc of getTopDirectory/getRootDirectory should more clearly document what the difference between the top directory and the root directory is.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__maven__11880
apache/maven
11,880
defect
e7e121687b15e524b13248e98e3a82031e6eca8e
def5b3230aa6ff7770612406e523598637312a64
3.10.x Upgrade slf4j to 2.0.17
- **Upgrade to slf4j 2.0.17** <!-- Please open pull requests against one of the following branches: - master — default target for all changes (new features + bug fixes). If the change should also go to maven-4.0.x, request a backport in the PR. - maven-3.10.x — target for 3.x changes (new features + bu...
diff --git a/README.md b/README.md index d436ce017a2c..79a17cf0d5e9 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ If you want to bootstrap Maven, you'll need: - Maven 3.9.0 or later - Run Maven, specifying a location into which the completed Maven distro should be installed: ``` -mvn -DdistributionTargetD...
5
3
2
[{"id": "G0", "claim": "Add a mapping for org.slf4j.simple.SimpleLoggerFactory to slf4j-configuration.properties, since with slf4j-simple 2.x the factory class name changed and the existing org.slf4j.impl.SimpleLoggerFactory entry will no longer match in Slf4jConfigurationFactory.", "category": "correctness", "verdict"...
null