sonatype-nexus-community / nexus-repo-github-action

Nexus Repository for GitHub Actions
Other
39 stars 7 forks source link

405 errors when pushing to nexus repo #6

Open delprofundo opened 3 years ago

delprofundo commented 3 years ago

Hi There,

We are testing using this action in our stack and are consistently getting the attached error. It is 405'ing. We can successfully publish to the repository using Maven directly just not with the plugin.

our config seems ok:

  - name: Nexus Repository Publish
    # You may pin to the exact commit or the version..
    # uses: sonatype-nexus-community/nexus-repo-github-action@f8178e57b79477b7b98b1ae94a4d77ba9c1bf731
    uses: sonatype-nexus-community/nexus-repo-github-action@1.0.0
    with:
      # Nexus Repository Server URL
      serverUrl: https://maven.subdomain.domain.com.au/repository/maven-snapshots
      # Username to connect to Nexus Repo to publish components
      username: maven
      # Password to connect to Nexus Repo to publish components
      password: xxxxxxxx
      # Component format e.g. maven2
      format: maven2
      # Name of target repository on Nexus Repo e.g. maven-releases
      repository: maven-snapshots
      # Component coordinates in key=value format. e.g. groupId=com.example artifactId=app version=1.0.0
      coordinates: groupId=au.com.domain artifactId=idb-common version=1.10.0-SNAPSHOT
      # Component assets in key=value format. e.g. extension=jar
      assets: extension=jar
      # File to publish
      filename: /target/idb-common-1.10.0-SNAPSHOT.jar

Any guidance would be appreciated. error.txt