You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "elharo (via GitHub)" <gi...@apache.org> on 2026/07/20 10:14:19 UTC

[I] TextFileExposer only reads first line of version text files [maven-shared-jar]

elharo opened a new issue, #141:
URL: https://github.com/apache/maven-shared-jar/issues/141

   In `TextFileExposer.java:55`:
   
   ```java
   String line = br.readLine();
   if (line != null && !line.isEmpty()) {
       textVersions.add(line);
   }
   ```
   
   Only the first line of any version text file is used. Version files with multi-line content (e.g., `key=value` pairs, multi-line version headers) lose all data beyond line 1.
   
   **Fix**: Read all lines in a loop:
   ```java
   String line;
   while ((line = br.readLine()) != null) {
       if (!line.isEmpty()) {
           textVersions.add(line);
       }
   }
   ```


-- 
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: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] TextFileExposer only reads first line of version text files [maven-shared-jar]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo closed issue #141: TextFileExposer only reads first line of version text files
URL: https://github.com/apache/maven-shared-jar/issues/141


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org