You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by il...@apache.org on 2019/08/19 03:28:20 UTC
[dubbo-samples] branch master updated: introduce local settings to
config apache snapshot repository
This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 9dd6dc7 introduce local settings to config apache snapshot repository
9dd6dc7 is described below
commit 9dd6dc752f5c04fc42a33d411d626ea41ea1cd9a
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Mon Aug 19 11:27:27 2019 +0800
introduce local settings to config apache snapshot repository
---
.github/workflows/maven.yml | 16 +++++++++-------
.mvn/settings.xml | 41 +++++++++++++++++++++++++++++++++++++++++
.travis.yml | 4 ++--
pom.xml | 16 ----------------
4 files changed, 52 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 0c455b8..eb33192 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -8,10 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
- with:
- java-version: 1.8
- - name: Build with Maven
- run: ./mvnw -B clean install -pl dubbo-maven-address-plugin && ./mvnw -B clean verify -Pdubbo-integration-test -Djava-image.name=${JAVA_BASE_IMAGE} -Ddubbo.version=2.7.4-SNAPSHOT
+ - uses: actions/checkout@v1
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Build with Maven
+ run:
+ ./mvnw --settings .mvn/settings.xml -B clean install -pl dubbo-maven-address-plugin
+ ./mvnw --settings .mvn/settings.xml -B clean verify -Pdubbo-integration-test -Djava-image.name=${JAVA_BASE_IMAGE} -Ddubbo.version=2.7.4-SNAPSHOT
diff --git a/.mvn/settings.xml b/.mvn/settings.xml
new file mode 100644
index 0000000..68d689e
--- /dev/null
+++ b/.mvn/settings.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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 http://maven.apache.org/xsd/settings-1.0.0.xsd">
+
+ <profiles>
+ <profile>
+ <id>apache</id>
+ <repositories>
+ <repository>
+ <id>apache.snapshots.https</id>
+ <name>Apache Development Snapshot Repository</name>
+ <url>https://repository.apache.org/content/repositories/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+
+ <repository>
+ <id>apache.releases.https</id>
+ <name>Apache Release Distribution Repository</name>
+ <url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ </profile>
+
+ </profiles>
+
+ <activeProfiles>
+ <activeProfile>apache</activeProfile>
+ </activeProfiles>
+</settings>
diff --git a/.travis.yml b/.travis.yml
index 2fbf00e..e705773 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,8 +16,8 @@ cache:
install: true
script:
- - ./mvnw -B clean install -pl dubbo-maven-address-plugin
- - ./mvnw -B clean verify -Pdubbo-integration-test -Djava-image.name=${JAVA_BASE_IMAGE} -Ddubbo.version=2.7.4-SNAPSHOT
+ - ./mvnw --settings .mvn/settings.xml -B clean install -pl dubbo-maven-address-plugin
+ - ./mvnw --settings .mvn/settings.xml -B clean verify -Pdubbo-integration-test -Djava-image.name=${JAVA_BASE_IMAGE} -Ddubbo.version=2.7.4-SNAPSHOT
after_success:
diff --git a/pom.xml b/pom.xml
index 91d8db0..69359fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,20 +77,4 @@
<module>dubbo-samples-serialization</module>
<module>dubbo-samples-sentinel</module>
</modules>
-
- <repositories>
- <repository>
- <id>apache.snapshots.https</id>
- <name>Apache Development Snapshot Repository</name>
- <url>https://repository.apache.org/content/repositories/snapshots</url>
- <layout>default</layout>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- </snapshots>
- </repository>
- </repositories>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org