将包发布到github时出现问题

kulphzqa  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(280)

我正在慢慢理解如何将包发布到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>

以下是my 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还是其他什么?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题