Peter Palaga created CXF-9137:
---------------------------------
Summary: Add developerConnection connection parameters to be able
to override the git URL defined in pom.xml
Key: CXF-9137
URL: https://issues.apache.org/jira/browse/CXF-9137
Project: CXF
Issue Type: New Feature
Reporter: Peter Palaga
release:prepare and release:perform take the SCM URL from pom.xml:
{code}
<scm>
<connection>scm:git:https://github.com/l2x6/cq-maven-plugin</connection>
<developerConnection>scm:git:https://github.com/l2x6/cq-maven-plugin.git</developerConnection>
</scm>
{code}
I am seeking for a setup where I could release locally using a ssh URL with a
SSH key but when releasing on Github actions, I would like to release using a
HTTPS URL with GITHUB_TOKEN passed as a password on the CLI:
{code}
./mvnw -B release:prepare release:perform
-DreleaseVersion=${{steps.metadata.outputs.current-version}}
-DdevelopmentVersion=${{steps.metadata.outputs.next-version}} \
-Dusername=oauth2 -Dpassword=${{ secrets.GITHUB_TOKEN }}
-Darguments="-Dusername=oauth2 -Dpassword=${{ secrets.GITHUB_TOKEN }}"
{code}
This is currently not possible, because the release plugin does not allow
overriding the SCM URLs.
I wonder whether it would be possible to add those parameters?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)