imbajin commented on code in PR #2296:
URL:
https://github.com/apache/incubator-hugegraph/pull/2296#discussion_r1306556352
##########
.github/workflows/ci.yml:
##########
@@ -46,24 +47,42 @@ jobs:
with:
fetch-depth: 2
+ - name: Modify maven settings
+ if: ${{ env.USE_STAGE == 'true' }}
+ run: |
+ sed -i
's/<\/settings>/<profiles><profile><id>local-repo<\/id><repositories><repository><id>central<\/id><url>https:\/\/repo.maven.apache.org\/maven2<\/url><releases><enabled>true<\/enabled><\/releases><snapshots><enabled>false<\/enabled><\/snapshots><\/repository><repository><id>staged-releases<\/id><url>https:\/\/repository.apache.org\/content\/groups\/staging\/<\/url><\/repository><\/repositories><pluginRepositories><pluginRepository><id>staged-releases<\/id><url>https:\/\/repository.apache.org\/content\/groups\/staging\/<\/url><\/pluginRepository><\/pluginRepositories><\/profile><\/profiles><activeProfiles><activeProfile>local-repo<\/activeProfile><\/activeProfiles><\/settings>/'
$HOME/.m2/settings.xml
+
+ - name: copy maven settings
+ run: |
+ cp $HOME/.m2/settings.xml /tmp/settings.xml
Review Comment:
shall we copy it in the 1st step?(seems one time modification for it is
enough)
and we just specify the path in java maven action
##########
.github/workflows/ci.yml:
##########
@@ -46,24 +47,42 @@ jobs:
with:
fetch-depth: 2
+ - name: Modify maven settings
+ if: ${{ env.USE_STAGE == 'true' }}
+ run: |
+ sed -i
's/<\/settings>/<profiles><profile><id>local-repo<\/id><repositories><repository><id>central<\/id><url>https:\/\/repo.maven.apache.org\/maven2<\/url><releases><enabled>true<\/enabled><\/releases><snapshots><enabled>false<\/enabled><\/snapshots><\/repository><repository><id>staged-releases<\/id><url>https:\/\/repository.apache.org\/content\/groups\/staging\/<\/url><\/repository><\/repositories><pluginRepositories><pluginRepository><id>staged-releases<\/id><url>https:\/\/repository.apache.org\/content\/groups\/staging\/<\/url><\/pluginRepository><\/pluginRepositories><\/profile><\/profiles><activeProfiles><activeProfile>local-repo<\/activeProfile><\/activeProfiles><\/settings>/'
$HOME/.m2/settings.xml
+
+ - name: copy maven settings
+ run: |
+ cp $HOME/.m2/settings.xml /tmp/settings.xml
Review Comment:
shall we copy it in the 1st step?(seems one time modification for it is
enough)
and we just specify the path in java maven action
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]