-
Notifications
You must be signed in to change notification settings - Fork 813
Open
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
Description
Currently, as I understand it, the user may specify only one server, as follows:
- name: Setup Java.
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: value-of-server-id
server-username: SERVER_USERNAME
server-password: SERVER_PASSWORDWhich produces the following xml in the settings.xml file:
<server>
<id>value-of-server-id</id>
<username>value-of-server-username</username>
<password>value-of-server-password</password>
</server>However, it would be useful to be able to specify more than one server. For example, this yaml:
- name: Setup Java.
uses: actions/setup-java@v1
with:
java-version: 1.8
server-list:
- server-id: value-of-server-id-1
server-username: SERVER_USERNAME_1
server-password: SERVER_PASSWORD_1
- server-id: value-of-server-id-2
server-username: SERVER_USERNAME_2
server-password: SERVER_PASSWORD_2Might produce the following xml in the settings.xml file:
<server>
<id>value-of-server-id-1</id>
<username>value-of-server-username-1</username>
<password>value-of-server-password-1</password>
</server>
<server>
<id>value-of-server-id-2</id>
<username>value-of-server-username-2</username>
<password>value-of-server-password-2</password>
</server>While it would be valuable in general to be able to specify more than one server, it should be especially valuable in the context of Github, as it seems for now, in order to reference multiple packages from maven.pkg.github.com, the user must reference each package's repository in their pom.xml.
If the above configuration were possible, a user could then reference the artifacts at value-of-server-id-1 and value-of-server-id-2 in their pom.xml as follows:
<dependencies>
<dependency>
<groupId>group-id-for-owner</groupId>
<artifactId>artifact-id-from-repository-1</artifactId>
<version>version-1</version>
</dependency>
<dependency>
<groupId>group-id-for-owner</groupId>
<artifactId>artifact-id-from-repository-2</artifactId>
<version>version-2</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>value-of-server-id-1</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/owner/artifact-id-from-repository-1</url>
</repository>
<repository>
<id>value-of-server-id-2</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/owner/artifact-id-from-repository-2</url>
</repository>
</repositories>joschi, pmig, akkinoc, YunaBraska, manuel-cid-arvato and 42 more
Metadata
Metadata
Assignees
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
Type
Projects
Milestone
Relationships
Development
Select code repository
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1Exhorder6/setup-java
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1NOUIY/setup-java
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1NOUIY/setup-java
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1NOUIY/setup-java
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1NOUIY/setup-java
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1NOUIY/setup-java
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1NOUIY/setup-java
- [Snyk] Upgrade xmlbuilder2 from 2.4.0 to 2.4.1NOUIY/setup-java
- Fixes #85. Add support for multiple server ids.actions/setup-java
Activity
Fixes actions#85. Add support for multiple servers.
Fixes actions#85. Add support for multiple server ids.
Fixes actions#85. Add support for multiple server ids.
MCLonips commentedon Apr 6, 2021
what is the current state of this issue?
perkam commentedon May 10, 2021
Same question here. Is this feature on the roadmap? It would be really useful.
dmitry-shibanov commentedon May 11, 2021
Hello everyone. Unfortunately it's not possible to implement right now, because GitHub does not support multiple parameters for arguments. actions/toolkit#184
torrespro commentedon Nov 11, 2021
https://github.com/marketplace/actions/maven-settings-action
jsoref commentedon Mar 6, 2023
Surely this could be supported with either a
toJSON/fromJSONor by taking a file parameter which contains the relevant content.Andreiasilva1 commentedon Jun 13, 2023
Gostaria de saber como funciona
kevinheins commentedon Jul 18, 2024
This would be really helpful to have. @IvanZosimov you closed the duplicate #427, can you provide an update or ping who can push this forward?
roman-bicherschii commentedon Sep 17, 2024
I run into the same issue :-( ! Would be really neat to either
fbonander commentedon Nov 28, 2024
@roman-bicherschii You can use wildcards to access multiple repos
https://maven.pkg.github.com/MyOrg/*