elharo opened a new issue, #1650:
URL: https://github.com/apache/maven-dependency-plugin/issues/1650

   `AbstractAnalyzeMojo.writeScriptableOutput()` at line 550:
   
   ```java
   buf.append(scriptableFlag)
       .append(":")
       .append(pomFile)
       .append(":")
       .append(artifact.getDependencyConflictId())
       .append(":")
       .append(artifact.getClassifier())    // appends "null" string
       .append(":")
       .append(artifact.getBaseVersion())
       .append(":")
       .append(artifact.getScope())
       .append(System.lineSeparator());
   ```
   
   `artifact.getClassifier()` returns `null` when no classifier is set. 
`StringBuilder.append(null)` appends the literal string `"null"` instead of an 
empty string. For dependencies without a classifier, the output contains 
`...:null:...` instead of `...::...`, which breaks script consumption of the 
output.
   
   Note that `writeDependencyXML()` (line 515) correctly handles null 
classifier with an explicit null check before appending.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to