You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@auron.apache.org by "merrily01 (via GitHub)" <gi...@apache.org> on 2025/10/13 08:40:48 UTC

[PR] [AURON #1434] Use Maven-native version extraction instead of xmllint for better portability [auron]

merrily01 opened a new pull request, #1435:
URL: https://github.com/apache/auron/pull/1435

   <!--
   Thanks for sending a pull request!  Please keep the following tips in mind:
     - Start the PR title with the related issue ID, e.g. '[AURON #XXXX] Short summary...'.
     - Make your PR title clear and descriptive, summarizing what this PR changes.
     - Provide a concise example to reproduce the issue, if possible.
     - Keep the PR description up to date with all changes.
   -->
   
   # Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   Closes #1434 .
   
    # Rationale for this change
   <!--
    Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
    Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.  
   -->
   Previously, the build script relied on `xmllint` to parse `pom.xml` and extract
   `project.version`, which caused build failures in environments where `xmllint`
   is not available (e.g., GitHub Actions or minimal Docker images).
   
   This change replaces it with:
     ./build/mvn help:evaluate -N -Dexpression=project.version -Pspark-${SPARK_VER} -q -DforceStdout
   
   This approach uses Maven’s built-in model evaluation and works consistently
   across platforms without additional dependencies.
   
   # What changes are included in this PR?
   <!--
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   # Are there any user-facing changes?
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please add the `api change` label.
   -->
   
   # How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   


-- 
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: commits-unsubscribe@auron.apache.org

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


Re: [PR] [AURON #1434] Use Maven-native version extraction instead of xmllint for better portability [auron]

Posted by "merrily01 (via GitHub)" <gi...@apache.org>.
merrily01 merged PR #1435:
URL: https://github.com/apache/auron/pull/1435


-- 
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: commits-unsubscribe@auron.apache.org

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


Re: [PR] [AURON #1434] Use Maven-native version extraction instead of xmllint for better portability [auron]

Posted by "guixiaowen (via GitHub)" <gi...@apache.org>.
guixiaowen commented on PR #1435:
URL: https://github.com/apache/auron/pull/1435#issuecomment-3424835831

   > > @merrily01 me Errors during compilation after merging the code are shown in the figure. <img alt="截屏2025-10-21 00 24 06" width="1506" height="537" src="https://private-user-images.githubusercontent.com/58287738/503294618-e18bd9c2-0107-43c8-b1ee-dd1dde9b193a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjEwMTc2MTIsIm5iZiI6MTc2MTAxNzMxMiwicGF0aCI6Ii81ODI4NzczOC81MDMyOTQ2MTgtZTE4YmQ5YzItMDEwNy00M2M4LWIxZWUtZGQxZGRlOWIxOTNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDIxVDAzMjgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4NGJiMjgyMDdmNzhjZTIzZWM4YWEyNTEwOGQ2NTU5MzA5Yzc4MjYxMmFkMTA0MTc3YTU0MTQ0YTI2MjE3NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZC2bKlxhjNf-MR5abOdlkC7HAIqRqrfaHJ2u-8xY2Ro">
   > > The built file information is
   > > [auron-build-info.properties.txt](https://github.com/user-attachments/files/23005101/auron-build-info.properties.txt)
   > > The build command is: ./auron-build.sh --pre --sparkver 3.5 --scalaver 2.12 -DskipBuildNative -Djansi.passthrough=true -s /Users/didi/.m3/settings.xml -Dmaven
   > 
   > It looks like the issue comes from local Maven environment?(probably related to the HTTP repo blocking in your settings.xml)
   > 
   > <img alt="image" width="1576" height="184" src="https://private-user-images.githubusercontent.com/15688792/503474174-dd9134b0-0777-4663-bf37-d2788e24bf20.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjEwMTk4MzgsIm5iZiI6MTc2MTAxOTUzOCwicGF0aCI6Ii8xNTY4ODc5Mi81MDM0NzQxNzQtZGQ5MTM0YjAtMDc3Ny00NjYzLWJmMzctZDI3ODhlMjRiZjIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDIxVDA0MDUzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI5ZWQ5YzUzNjMxN2U4MGQwNTY1ZjMzMWY4YjgxYWI5ZmNmMzAzMjU0ODliZGVkNzdmNzNhYTdiNjc0Y2FmYjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.135nDamJbCSRhRhMuJ-cJ_TMGV0eNYeFPcmxD7V7qcs">
   > Could you please try running the same command with a standard Maven setup (e.g., using ~/.m2/settings.xml)?
   > 
   > I just verified that and works fine on my side.
   
   @merrily01 Thank you very much for the reply. I'll take another look. Thanks!
   


-- 
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: commits-unsubscribe@auron.apache.org

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


Re: [PR] [AURON #1434] Use Maven-native version extraction instead of xmllint for better portability [auron]

Posted by "guixiaowen (via GitHub)" <gi...@apache.org>.
guixiaowen commented on PR #1435:
URL: https://github.com/apache/auron/pull/1435#issuecomment-3422839591

   @merrily01 me Errors during compilation after merging the code are shown in the figure. 
   <img width="1506" height="537" alt="截屏2025-10-21 00 24 06" src="https://github.com/user-attachments/assets/e18bd9c2-0107-43c8-b1ee-dd1dde9b193a" />
   
   The built file information is
   
   [auron-build-info.properties.txt](https://github.com/user-attachments/files/23005101/auron-build-info.properties.txt)
   


-- 
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: commits-unsubscribe@auron.apache.org

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


Re: [PR] [AURON #1434] Use Maven-native version extraction instead of xmllint for better portability [auron]

Posted by "slfan1989 (via GitHub)" <gi...@apache.org>.
slfan1989 commented on PR #1435:
URL: https://github.com/apache/auron/pull/1435#issuecomment-3400193332

   LGTM +1


-- 
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: commits-unsubscribe@auron.apache.org

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


Re: [PR] [AURON #1434] Use Maven-native version extraction instead of xmllint for better portability [auron]

Posted by "merrily01 (via GitHub)" <gi...@apache.org>.
merrily01 commented on PR #1435:
URL: https://github.com/apache/auron/pull/1435#issuecomment-3413516998

   Merged. Thanks for the review @ShreyeshArangath @slfan1989 @wForget 


-- 
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: commits-unsubscribe@auron.apache.org

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


Re: [PR] [AURON #1434] Use Maven-native version extraction instead of xmllint for better portability [auron]

Posted by "merrily01 (via GitHub)" <gi...@apache.org>.
merrily01 commented on PR #1435:
URL: https://github.com/apache/auron/pull/1435#issuecomment-3424542229

   > @merrily01 me Errors during compilation after merging the code are shown in the figure. <img alt="截屏2025-10-21 00 24 06" width="1506" height="537" src="https://private-user-images.githubusercontent.com/58287738/503294618-e18bd9c2-0107-43c8-b1ee-dd1dde9b193a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjEwMTc2MTIsIm5iZiI6MTc2MTAxNzMxMiwicGF0aCI6Ii81ODI4NzczOC81MDMyOTQ2MTgtZTE4YmQ5YzItMDEwNy00M2M4LWIxZWUtZGQxZGRlOWIxOTNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDIxVDAzMjgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4NGJiMjgyMDdmNzhjZTIzZWM4YWEyNTEwOGQ2NTU5MzA5Yzc4MjYxMmFkMTA0MTc3YTU0MTQ0YTI2MjE3NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZC2bKlxhjNf-MR5abOdlkC7HAIqRqrfaHJ2u-8xY2Ro">
   > 
   > The built file information is
   > 
   > [auron-build-info.properties.txt](https://github.com/user-attachments/files/23005101/auron-build-info.properties.txt)
   > 
   > The build command is: ./auron-build.sh --pre --sparkver 3.5 --scalaver 2.12 -DskipBuildNative -Djansi.passthrough=true -s /Users/didi/.m3/settings.xml -Dmaven
   
   It looks like the issue comes from local Maven environment?(probably related to the HTTP repo blocking in your settings.xml)
   
   <img width="1576" height="184" alt="image" src="https://github.com/user-attachments/assets/dd9134b0-0777-4663-bf37-d2788e24bf20" />
   
   Could you please try running the same command with a standard Maven setup (e.g., using ~/.m2/settings.xml)?
   
   I just verified that and works fine on my side.
   


-- 
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: commits-unsubscribe@auron.apache.org

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