Skip to content

Commit

Permalink
List repositories in settings.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
kuviman committed Nov 18, 2021
1 parent 662c1e9 commit f3c06cf
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: "adopt"
- name: Setup settings.xml
run: cp settings.xml ~/.m2/settings.xml
- name: Validate
run: |
cd code
Expand Down
8 changes: 0 additions & 8 deletions samples/bloggy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<repositories>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Codeforces/codeforces-commons</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
Expand Down
39 changes: 39 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<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>commons</id>
<repositories>
<repository>
<id>github</id>
<name>GitHub Packages (commons)</name>
<url>https://maven.pkg.github.com/Codeforces/codeforces-commons</url>
</repository>
</repositories>
</profile>
<profile>
<id>jacuzzi</id>
<repositories>
<repository>
<id>github</id>
<name>GitHub Packages (jacuzzi)</name>
<url>https://maven.pkg.github.com/Codeforces/jacuzzi</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>commons</activeProfile>
<activeProfile>jacuzzi</activeProfile>
</activeProfiles>
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>

0 comments on commit f3c06cf

Please sign in to comment.