Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
🚑 use custom maven settinng file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhao committed Apr 20, 2023
1 parent 911800d commit c6a382c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Build the docker-compose for Database
run: docker compose -f docker-compose.yml up -d
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file pom.xml -s maven-settings.xml
21 changes: 21 additions & 0 deletions maven-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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">
<profiles>
<profile>
<id>public-central</id>
<repositories>
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>https://repo1.maven.org/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>public-central</activeProfile>
</activeProfiles>
</settings>

0 comments on commit c6a382c

Please sign in to comment.