Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom pluginRepositories #348

Closed
pwoodworth opened this issue Sep 24, 2024 · 0 comments · Fixed by #349
Closed

Support for custom pluginRepositories #348

pwoodworth opened this issue Sep 24, 2024 · 0 comments · Fixed by #349
Assignees
Labels
enhancement New feature or request.

Comments

@pwoodworth
Copy link
Contributor

pwoodworth commented Sep 24, 2024

The Request

Custom plugin repositories should be configurable.

The Solution

Configuration could look like the following example:

steps:
- uses: s4u/maven-settings-action@master
  with:
    pluginRepositories: >-
      [{
        "id": "repoId",
        "name": "repoName",
        "url": "url",
        "snapshots": {
          "enabled": true
        }
      }]

This should result in a settings.xml file like the following:

<profiles>
  <profile>
    <id>_custom_repositories_</id>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
    <repositories/>
    <pluginRepositories> 
      <pluginRepository>
        <id>repoId</id>
        <name>repoName</name>
        <url>url</url>
        <snapshots><enabled>true</enabled></snapshots>
      </pluginRepository>
    </pluginRepositories>
  </profile>
</profiles>
pwoodworth added a commit to pwoodworth/maven-settings-action that referenced this issue Sep 24, 2024
@slawekjaranowski slawekjaranowski self-assigned this Sep 24, 2024
@slawekjaranowski slawekjaranowski added the enhancement New feature or request. label Nov 3, 2024
slawekjaranowski pushed a commit to pwoodworth/maven-settings-action that referenced this issue Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Development

Successfully merging a pull request may close this issue.

2 participants