问题发布到github的发行包

问题描述 投票:0回答:1

我正在慢慢地了解如何将软件包发布到Git中。

我的项目称为HubspotContacts

这是我的pom.xml文件的顶部:

 <modelVersion>4.0.0</modelVersion>
      <groupId>Hubspot</groupId>
      <artifactId>Hubspot</artifactId>
      <version>0.0.1-SNAPSHOT</version>

这是我的pom.xml文件的分发管理部分:

 <distributionManagement>
   <repository>
     <id>dell_packages</id>
     <name>GitHub OWNER Apache Maven Packages</name>
     <url>https://github.com/dell_computers/HubspotContacts</url>
   </repository>

这是我的settings.xml文件:

   <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">

  <activeProfiles>
    <activeProfile>hubspot</activeProfile>   </activeProfiles>

  <profiles>
    <profile>
      <id>hubspot</id>
      <repositories>
        <repository>
          <id>central</id>
          <url>https://repo1.maven.org/maven2</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>false</enabled></snapshots>
        </repository>
        <repository>
          <id>hubspot</id>
          <name>GitHub OWNER Apache Maven Packages</name>
          <url>https://maven.pkg.github.com/dell_computers/Hubspot</url>
        </repository>
      </repositories>
    </profile>   </profiles>

  <servers>
    <server>
      <id>hubspot</id>
      <username>username</username> <password>long_token_string</password>
    </server>   </servers> </settings>

我得到的错误:

https://github.com/dell_computers/Hubspot/Hubspot/ATSHubspotContacts/0.0.1-SNAPSHOT/ATSHubspotContacts-0.0.1-20200124.182801-1.jar 422不可处理实体的传输失败

有人可以帮忙我的配置吗?存储库的URL应该是实际的.git结尾url还是其他不同的代码?

java maven github
1个回答
0
投票

我遇到了同样的问题,昨天使用了相同的代码,今天我收到了相同的消息422 Unprocessable Entity-关于如何解决此问题的任何想法?

© www.soinside.com 2019 - 2024. All rights reserved.