Unverified Commit 1cab7169 authored by Vivek's avatar Vivek Committed by GitHub
Browse files

[ACS-9823]: maven central publishing, modified ci.yml to use ci.settings.xml...

[ACS-9823]: maven central publishing, modified ci.yml to use ci.settings.xml file to setup maven credentials (#727)
parent 3885c485
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  
  <servers>
    <server>
      <id>central</id>
      <username>${MAVEN_CENTRAL_USERNAME}</username>
      <password>${MAVEN_CENTRAL_PASSWORD}</password>
    </server>
    <server>
      <id>alfresco-private-repository</id>
      <username>${env.MAVEN_USERNAME}</username>
+6 −13
Original line number Diff line number Diff line
@@ -182,18 +182,11 @@ jobs:
        run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
      - name: Set up Maven Central credentials
        run:  |
          echo "<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\"
                xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
                xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0
                https://maven.apache.org/xsd/settings-1.0.0.xsd\">
            <servers>
              <server>
                <id>central</id>
                <username>${{ secrets.MAVEN_CENTRAL_USERNAME }}</username>
                <password>${{ secrets.MAVEN_CENTRAL_PASSWORD }}</password>
              </server>
            </servers>
          </settings>" > ~/.m2/settings.xml
          mkdir -p ~/.m2
          envsubst < ${{ github.workspace }}/.ci.settings.xml > ~/.m2/settings.xml
        env:
          MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
          MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
      - name: Import GPG key
        env:
          GPG_TTY: $(tty)
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
  <parent>
    <groupId>org.alfresco.maven</groupId>
    <artifactId>alfresco-sdk-aggregator</artifactId>
    <version>4.12.0</version>
    <version>4.13.0-A1</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>

+2 −2
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@
    <groupId>${groupId}</groupId>
    <artifactId>${artifactId}</artifactId>
    <version>${version}</version>
    <name>AIO - SDK 4.12.0</name>
    <description>All-In-One (AIO) project for SDK 4.12.0</description>
    <name>AIO - SDK 4.13.0-A1</name>
    <description>All-In-One (AIO) project for SDK 4.13.0-A1</description>
    <packaging>pom</packaging>

    <prerequisites>
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
  <parent>
    <groupId>org.alfresco.maven</groupId>
    <artifactId>alfresco-sdk-aggregator</artifactId>
    <version>4.12.0</version>
    <version>4.13.0-A1</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>

Loading