缺少用于向Maven Central发布的jar的签名jar.asc。

huangapple go评论79阅读模式
英文:

Missing Signature jar.asc for jar when post to Maven Central

问题

这是我第一次尝试部署到 Maven Central 仓库,但是我找不到一个终极指南来告诉我如何操作。

无论我尝试什么,我都会得到同样的错误:

缺失签名:
'/com/github/chameleontartu/amazon-mws-reports-maven/1.2.0-RC12/amazon-mws-reports-maven-1.2.0-RC12-javadoc.jar.asc' 不存在于 'amazon-mws-reports-maven-1.2.0-RC12-javadoc.jar'。

我的开源项目代码和全部内容:Github 代码库

GitHub Actions 工作流程 .github/workflows/deploy.yml

name: 发布包到 Maven Central 仓库
on:
  release:
    types: [created]
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: 配置 Maven Central 仓库
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
          server-id: ossrh
          server-username: MAVEN_USERNAME
          server-password: MAVEN_PASSWORD
      - name: 创建密钥文件
        run: echo "$GPG_PRIVATE_KEY" > private.key
        env:
          GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
      - name: 导入 GPG 密钥
        run: gpg --import --batch private.key
      - name: 缓存
        uses: actions/cache@v1
        with:
          path: ~/.m2/repository
          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: |
                        ${{ runner.os }}-maven-
      - if: github.event.release
        name: 在 pom.xml 中更新版本(仅限发布)
        run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
      - name: 运行 Maven
        run: mvn -B clean install
      - name: 发布包
        run: |
                    mvn -B deploy -Dgpg.passphrase="$GPG_PASSPHRASE"
        env:
          GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
          GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
          MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
          MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

pom.xml 文件中包含所有插件和依赖项:

<!-- 项目信息等内容 -->
</project>

在本地执行相同操作时,我会得到 .jar.asc 文件。

我做错了什么?

英文:

It is the first time I am trying to deploy to Maven Central repo and I cannot find an ultimate guide on how to do it.

No matter what I tried I get the same error:

> Missing Signature:
> '/com/github/chameleontartu/amazon-mws-reports-maven/1.2.0-RC12/amazon-mws-reports-maven-1.2.0-RC12-javadoc.jar.asc' does not exist for 'amazon-mws-reports-maven-1.2.0-RC12-javadoc.jar'.

My open-source project with all code: Github repo.

GitHub Actions workflow .github/workflows/deploy.yml

name: Publish package to the Maven Central Repository
on:
  release:
    types: [created]
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Maven Central Repository
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
          server-id: ossrh
          server-username: MAVEN_USERNAME
          server-password: MAVEN_PASSWORD
      - name: Create Key File
        run: echo &quot;$GPG_PRIVATE_KEY&quot; &gt; private.key
        env:
          GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
      - name: Import GPG Key
        run: gpg --import --batch private.key
      - name: Cache
        uses: actions/cache@v1
        with:
          path: ~/.m2/repository
          key: ${{ runner.os }}-maven-${{ hashFiles(&#39;**/pom.xml&#39;) }}
          restore-keys: |
            ${{ runner.os }}-maven-
      - if: github.event.release
        name: Update version in pom.xml (Release only)
        run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
      - name: Run Maven
        run: mvn -B clean install
      - name: Publish package
        run: |-
          mvn -B deploy -Dgpg.passphrase=&quot;$GPG_PASSPHRASE&quot;
        env:
          GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
          GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
          MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
          MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}


# Examples are taken from
# - https://github.com/camunda/camunda-bpm-mockito/blob/465b4f5f2f29806a1a855e7cabf918b633df1075/.github/workflows/deploy.yml
# - https://github.com/see-es-vee/see-es-vee/blob/43bec4ef0005caa9b30cf11bf10efe03bd517733/.github/workflows/mavenpublish.yml

My pom.xml file with all plugins and dependencies:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&lt;groupId&gt;com.github.chameleontartu&lt;/groupId&gt;
&lt;artifactId&gt;amazon-mws-reports-maven&lt;/artifactId&gt;
&lt;version&gt;1.1.0&lt;/version&gt;
&lt;packaging&gt;jar&lt;/packaging&gt;
&lt;name&gt;Amazon MWS :: Reports&lt;/name&gt;
&lt;description&gt;Amazon MWS Reports API Client Library&lt;/description&gt;
&lt;url&gt;https://github.com/ChameleonTartu/amazon-mws-reports-maven&lt;/url&gt;
&lt;licenses&gt;
&lt;license&gt;
&lt;name&gt;The Apache License, Version 2.0&lt;/name&gt;
&lt;url&gt;http://www.apache.org/licenses/LICENSE-2.0.txt&lt;/url&gt;
&lt;distribution&gt;repo&lt;/distribution&gt;
&lt;/license&gt;
&lt;/licenses&gt;
&lt;developers&gt;
&lt;developer&gt;
&lt;id&gt;chameleontartu&lt;/id&gt;
&lt;name&gt;Dmytro Chasovskyi&lt;/name&gt;
&lt;email&gt;lal@mail.com&lt;/email&gt;
&lt;url&gt;https://example.com&lt;/url&gt;
&lt;roles&gt;
&lt;role&gt;developer&lt;/role&gt;
&lt;/roles&gt;
&lt;/developer&gt;
&lt;developer&gt;
&lt;id&gt;amazon-mws&lt;/id&gt;
&lt;organization&gt;Amazon Technologies, Inc&lt;/organization&gt;
&lt;organizationUrl&gt;https://developer.amazonservices.com/gp/mws/docs.html&lt;/organizationUrl&gt;
&lt;roles&gt;
&lt;role&gt;developer&lt;/role&gt;
&lt;/roles&gt;
&lt;/developer&gt;
&lt;/developers&gt;
&lt;scm&gt;
&lt;connection&gt;scm:git:git@github.com:ChameleonTartu/amazon-mws-reports-maven.git&lt;/connection&gt;
&lt;developerConnection&gt;scm:git:git@github.com:ChameleonTartu/amazon-mws-orders-maven.git&lt;/developerConnection&gt;
&lt;url&gt;https://github.com/ChameleonTartu/amazon-mws-reports-maven/tree/master&lt;/url&gt;
&lt;/scm&gt;
&lt;properties&gt;
&lt;gpg.keyname&gt;${ env.GPG_KEYNAME }&lt;/gpg.keyname&gt;
&lt;gpg.passphrase&gt;${ env.GPG_PASSPHRASE }&lt;/gpg.passphrase&gt;
&lt;!-- Unify the encoding for all modules --&gt;
&lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
&lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
&lt;jdk.version&gt;1.6&lt;/jdk.version&gt;
&lt;compiler.fork&gt;1.6&lt;/compiler.fork&gt;
&lt;!-- Dependencies --&gt;
&lt;maven-bundle-version&gt;2.3.7&lt;/maven-bundle-version&gt;
&lt;commons-codec-version&gt;1.14&lt;/commons-codec-version&gt;
&lt;commons-httpclient-version&gt;3.1&lt;/commons-httpclient-version&gt;
&lt;commons-logging-version&gt;1.1&lt;/commons-logging-version&gt;
&lt;httpcore.version&gt;4.4.13&lt;/httpcore.version&gt;
&lt;httpclient.version&gt;4.5.12&lt;/httpclient.version&gt;
&lt;mockito-version&gt;1.9.5&lt;/mockito-version&gt;
&lt;junit-version&gt;4.13&lt;/junit-version&gt;
&lt;jaxb-api.version&gt;2.3.1&lt;/jaxb-api.version&gt;
&lt;!-- Plugins --&gt;
&lt;maven-eclipse-plugin.version&gt;2.10&lt;/maven-eclipse-plugin.version&gt;
&lt;maven-idea-plugin.version&gt;2.2.1&lt;/maven-idea-plugin.version&gt;
&lt;maven-bundle-plugin.version&gt;5.1.1&lt;/maven-bundle-plugin.version&gt;
&lt;maven-assembly-plugin.version&gt;3.3.0&lt;/maven-assembly-plugin.version&gt;
&lt;maven-surefire-plugin.version&gt;2.22.2&lt;/maven-surefire-plugin.version&gt;
&lt;build-helper-maven-plugin.version&gt;3.2.0&lt;/build-helper-maven-plugin.version&gt;
&lt;maven-compiler-plugin.version&gt;3.8.1&lt;/maven-compiler-plugin.version&gt;
&lt;maven-javadoc-plugin.version&gt;3.2.0&lt;/maven-javadoc-plugin.version&gt;
&lt;maven-install-plugin.version&gt;2.5.2&lt;/maven-install-plugin.version&gt;
&lt;maven-scm-provider-gitexe.version&gt;1.11.2&lt;/maven-scm-provider-gitexe.version&gt;
&lt;nexus-staging-maven-plugin.version&gt;1.6.8&lt;/nexus-staging-maven-plugin.version&gt;
&lt;maven-source-plugin.version&gt;3.2.1&lt;/maven-source-plugin.version&gt;
&lt;maven-release-plugin.version&gt;2.5.3&lt;/maven-release-plugin.version&gt;
&lt;maven-deploy-plugin.version&gt;2.8.2&lt;/maven-deploy-plugin.version&gt;
&lt;/properties&gt;
&lt;dependencies&gt;
&lt;dependency&gt;
&lt;groupId&gt;commons-codec&lt;/groupId&gt;
&lt;artifactId&gt;commons-codec&lt;/artifactId&gt;
&lt;version&gt;${commons-codec-version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;commons-httpclient&lt;/groupId&gt;
&lt;artifactId&gt;commons-httpclient&lt;/artifactId&gt;
&lt;version&gt;${commons-httpclient-version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;commons-logging&lt;/groupId&gt;
&lt;artifactId&gt;commons-logging-api&lt;/artifactId&gt;
&lt;version&gt;${commons-logging-version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
&lt;artifactId&gt;httpclient&lt;/artifactId&gt;
&lt;version&gt;${httpclient.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
&lt;artifactId&gt;httpcore&lt;/artifactId&gt;
&lt;version&gt;${httpcore.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.mockito&lt;/groupId&gt;
&lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
&lt;version&gt;${mockito-version}&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;junit&lt;/groupId&gt;
&lt;artifactId&gt;junit&lt;/artifactId&gt;
&lt;version&gt;${junit-version}&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
&lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
&lt;version&gt;${jaxb-api.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;
&lt;build&gt;
&lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
&lt;pluginManagement&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-assembly-plugin.version}&lt;/version&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
&lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
&lt;version&gt;${build-helper-maven-plugin.version}&lt;/version&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-compiler-plugin.version}&lt;/version&gt;
&lt;configuration&gt;
&lt;source&gt;${jdk.version}&lt;/source&gt;
&lt;target&gt;${jdk.version}&lt;/target&gt;
&lt;maxmem&gt;256M&lt;/maxmem&gt;
&lt;fork&gt;${compiler.fork}&lt;/fork&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-eclipse-plugin.version}&lt;/version&gt;
&lt;configuration&gt;
&lt;downloadSources&gt;true&lt;/downloadSources&gt;
&lt;downloadJavadocs&gt;false&lt;/downloadJavadocs&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-idea-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-idea-plugin.version}&lt;/version&gt;
&lt;configuration&gt;
&lt;downloadSources&gt;true&lt;/downloadSources&gt;
&lt;downloadJavadocs&gt;false&lt;/downloadJavadocs&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-javadoc-plugin.version}&lt;/version&gt;
&lt;configuration&gt;
&lt;attach&gt;true&lt;/attach&gt;
&lt;source&gt;${jdk.version}&lt;/source&gt;
&lt;quiet&gt;true&lt;/quiet&gt;
&lt;detectOfflineLinks&gt;false&lt;/detectOfflineLinks&gt;
&lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-install-plugin.version}&lt;/version&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-surefire-plugin.version}&lt;/version&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
&lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-bundle-plugin.version}&lt;/version&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.sonatype.plugins&lt;/groupId&gt;
&lt;artifactId&gt;nexus-staging-maven-plugin&lt;/artifactId&gt;
&lt;version&gt;${nexus-staging-maven-plugin.version}&lt;/version&gt;
&lt;extensions&gt;true&lt;/extensions&gt;
&lt;configuration&gt;
&lt;serverId&gt;ossrh&lt;/serverId&gt;
&lt;nexusUrl&gt;https://oss.sonatype.org/&lt;/nexusUrl&gt;
&lt;autoReleaseAfterClose&gt;true&lt;/autoReleaseAfterClose&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/pluginManagement&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;attach-javadocs&lt;/id&gt;
&lt;goals&gt;
&lt;goal&gt;jar&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-source-plugin.version}&lt;/version&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;attach-sources&lt;/id&gt;
&lt;goals&gt;
&lt;goal&gt;jar&lt;/goal&gt;
&lt;goal&gt;test-jar&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-release-plugin.version}&lt;/version&gt;
&lt;configuration&gt;
&lt;localCheckout&gt;true&lt;/localCheckout&gt;
&lt;pushChanges&gt;false&lt;/pushChanges&gt;
&lt;mavenExecutorId&gt;forked-path&lt;/mavenExecutorId&gt;
&lt;/configuration&gt;
&lt;dependencies&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.maven.scm&lt;/groupId&gt;
&lt;artifactId&gt;maven-scm-provider-gitexe&lt;/artifactId&gt;
&lt;version&gt;${maven-scm-provider-gitexe.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
&lt;version&gt;${maven-deploy-plugin.version}&lt;/version&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;default-deploy&lt;/id&gt;
&lt;phase&gt;deploy&lt;/phase&gt;
&lt;goals&gt;
&lt;goal&gt;deploy&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/build&gt;
&lt;repositories&gt;
&lt;repository&gt;
&lt;id&gt;jitpack.io&lt;/id&gt;
&lt;url&gt;https://jitpack.io&lt;/url&gt;
&lt;/repository&gt;
&lt;/repositories&gt;
&lt;profiles&gt;
&lt;profile&gt;
&lt;id&gt;release-sign-artifacts&lt;/id&gt;
&lt;activation&gt;
&lt;property&gt;
&lt;name&gt;performRelease&lt;/name&gt;
&lt;value&gt;true&lt;/value&gt;
&lt;/property&gt;
&lt;/activation&gt;
&lt;build&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-gpg-plugin&lt;/artifactId&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;sign-artifacts&lt;/id&gt;
&lt;phase&gt;verify&lt;/phase&gt;
&lt;goals&gt;
&lt;goal&gt;sign&lt;/goal&gt;
&lt;/goals&gt;
&lt;configuration&gt;
&lt;!-- This is necessary for gpg to not try to use the pinentry programs --&gt;
&lt;gpgArguments&gt;
&lt;arg&gt;--pinentry-mode&lt;/arg&gt;
&lt;arg&gt;loopback&lt;/arg&gt;
&lt;/gpgArguments&gt;
&lt;/configuration&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/build&gt;
&lt;/profile&gt;
&lt;profile&gt;
&lt;id&gt;release&lt;/id&gt;
&lt;activation&gt;
&lt;jdk&gt;[1.6,)&lt;/jdk&gt;
&lt;/activation&gt;
&lt;build&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;attach-sources&lt;/id&gt;
&lt;goals&gt;
&lt;goal&gt;jar&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;attach-javadoc&lt;/id&gt;
&lt;goals&gt;
&lt;goal&gt;jar&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/build&gt;
&lt;/profile&gt;
&lt;/profiles&gt;
&lt;distributionManagement&gt;
&lt;snapshotRepository&gt;
&lt;id&gt;ossrh&lt;/id&gt;
&lt;url&gt;https://oss.sonatype.org/content/repositories/snapshots&lt;/url&gt;
&lt;/snapshotRepository&gt;
&lt;repository&gt;
&lt;id&gt;ossrh&lt;/id&gt;
&lt;name&gt;Central Repository OSSRH&lt;/name&gt;
&lt;url&gt;https://oss.sonatype.org/service/local/staging/deploy/maven2/&lt;/url&gt;
&lt;/repository&gt;
&lt;/distributionManagement&gt;
&lt;/project&gt;

When I do the same operation locally I get .jar.asc files.

What am I doing wrong?

答案1

得分: 1

已经发现 maven-gpg-plugin 的激活配置有误

我将其更改为:

<activation>
<property>
<name>gpg.passphrase</name>
</property>
</activation>

这也解决了另一个问题,即构件不应该在持续集成中进行签名。

英文:

It came out that the activation profile is wrong for maven-gpg-plugin

I changed it to:

&lt;activation&gt;
&lt;property&gt;
&lt;name&gt;gpg.passphrase&lt;/name&gt;
&lt;/property&gt;
&lt;/activation&gt;

It also solves another problem that artifacts shouldn't be signed into Continuous Integration.

huangapple
  • 本文由 发表于 2020年7月23日 21:03:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/63054966.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定