mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-07-31 17:39:14 +00:00
[ACS-9823]: maven central publishing, modified ci.yml to use ci.settings.xml file to setup maven credentials (#727)
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||||
|
|
||||||
<servers>
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>central</id>
|
||||||
|
<username>${MAVEN_CENTRAL_USERNAME}</username>
|
||||||
|
<password>${MAVEN_CENTRAL_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
<server>
|
<server>
|
||||||
<id>alfresco-private-repository</id>
|
<id>alfresco-private-repository</id>
|
||||||
<username>${env.MAVEN_USERNAME}</username>
|
<username>${env.MAVEN_USERNAME}</username>
|
||||||
|
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -181,19 +181,12 @@ jobs:
|
|||||||
- name: "Build"
|
- name: "Build"
|
||||||
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
- name: Set up Maven Central credentials
|
- name: Set up Maven Central credentials
|
||||||
run: |
|
run: |
|
||||||
echo "<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\"
|
mkdir -p ~/.m2
|
||||||
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
envsubst < ${{ github.workspace }}/.ci.settings.xml > ~/.m2/settings.xml
|
||||||
xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0
|
env:
|
||||||
https://maven.apache.org/xsd/settings-1.0.0.xsd\">
|
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
|
||||||
<servers>
|
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
|
||||||
<server>
|
|
||||||
<id>central</id>
|
|
||||||
<username>${{ secrets.MAVEN_CENTRAL_USERNAME }}</username>
|
|
||||||
<password>${{ secrets.MAVEN_CENTRAL_PASSWORD }}</password>
|
|
||||||
</server>
|
|
||||||
</servers>
|
|
||||||
</settings>" > ~/.m2/settings.xml
|
|
||||||
- name: Import GPG key
|
- name: Import GPG key
|
||||||
env:
|
env:
|
||||||
GPG_TTY: $(tty)
|
GPG_TTY: $(tty)
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||||
<version>4.12.0</version>
|
<version>4.13.0-A1</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>${artifactId}</artifactId>
|
<artifactId>${artifactId}</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
<name>AIO - SDK 4.12.0</name>
|
<name>AIO - SDK 4.13.0-A1</name>
|
||||||
<description>All-In-One (AIO) project for SDK 4.12.0</description>
|
<description>All-In-One (AIO) project for SDK 4.13.0-A1</description>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<prerequisites>
|
<prerequisites>
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||||
<version>4.12.0</version>
|
<version>4.13.0-A1</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||||
<version>4.12.0</version>
|
<version>4.13.0-A1</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||||
<version>4.12.0</version>
|
<version>4.13.0-A1</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||||
<version>4.12.0</version>
|
<version>4.13.0-A1</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||||
<version>4.12.0</version>
|
<version>4.13.0-A1</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
6
pom.xml
6
pom.xml
@@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||||
<version>4.12.0</version>
|
<version>4.13.0-A1</version>
|
||||||
<name>Alfresco SDK</name>
|
<name>Alfresco SDK</name>
|
||||||
<description>This aggregator Project builds all modules required for the Alfresco SDK</description>
|
<description>This aggregator Project builds all modules required for the Alfresco SDK</description>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<connection>scm:git:${scm.url.base}.git</connection>
|
<connection>scm:git:${scm.url.base}.git</connection>
|
||||||
<developerConnection>scm:git:${scm.url.base}</developerConnection>
|
<developerConnection>scm:git:${scm.url.base}</developerConnection>
|
||||||
<url>${scm.url.base}</url>
|
<url>${scm.url.base}</url>
|
||||||
<tag>alfresco-sdk-aggregator-4.12.0</tag>
|
<tag>alfresco-sdk-aggregator-4.13.0-A1</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<!-- All the modules of the Alfresco SDK -->
|
<!-- All the modules of the Alfresco SDK -->
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<module>archetypes/alfresco-share-jar-archetype</module>
|
<module>archetypes/alfresco-share-jar-archetype</module>
|
||||||
<module>archetypes/alfresco-allinone-archetype</module>
|
<module>archetypes/alfresco-allinone-archetype</module>
|
||||||
<module>archetypes/archetypes-it</module>
|
<module>archetypes/archetypes-it</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
Reference in New Issue
Block a user