在AWS CodeArtifact上没有介绍Maven软件包的读数

发布于 2025-01-25 10:12:10 字数 1928 浏览 5 评论 0原文

我希望在codeartifact上介绍一个读书文件。我部署了一个新版本,其中包含一个readme.md文件,但是描述(以红色标记)被弄清楚了。

找到我应该什么但是我不理解我应该知道什么做我的readme.md文件。

  • 我可以在bitbucket和Intellij内部查看README。
  • Java代码。
  • Maven项目管理。

遵循@ermiya eskandary评论,我制作了两个读取文件文件,一个是根部,第二个是模块的根。重新部署后,描述仍未显示。

项目结构:

“在此处输入图像描述”

相关模块的POM文件:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>---</artifactId>
        <groupId>---</groupId>
        <version>1.0.2</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>---</artifactId>
    <version>1.0.14</version>

    <dependencies>
        <dependency>
            <groupId>---</groupId>
            <artifactId>---</artifactId>
            <version>1.0.2</version>
        </dependency>
    </dependencies>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>

</project> 

I wish to present a README file on CodeArtifact. I deployed a new version that contains a README.MD file however the Description (marked in red) is greyed out.

Found this AWS documentation however I did not understand what I should do to present my README.MD file.

  • I can view the README at Bitbucket and inside the Intellij.
  • Java code.
  • Maven project management.

enter image description here

Following @Ermiya Eskandary comment, I made two README files, one in the root and a second in root of the module. After redeploying, the description is still not showing.

Project structure:

enter image description here

The POM file of the relevant module:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>---</artifactId>
        <groupId>---</groupId>
        <version>1.0.2</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>---</artifactId>
    <version>1.0.14</version>

    <dependencies>
        <dependency>
            <groupId>---</groupId>
            <artifactId>---</artifactId>
            <version>1.0.2</version>
        </dependency>
    </dependencies>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>

</project> 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯寂 2025-02-01 10:12:10

不幸的是,CodeArtifact当前不支持显示Maven软件包的读数文件。 GetPackageVersionReadMe API将返回所有Maven软件包的“找不到”。

$ aws codeartifact get-package-version-readme \
>     --domain test \
>     --repo my-repo-name \
>     --format maven \
>     --package commons-lang \
>     --namespace commons-lang \
>     --package-version 2.1 \
>     --profile my_profile_name

An error occurred (ResourceNotFoundException) when calling the GetPackageVersionReadme operation: The readme file of this package version is not found

Unfortunately CodeArtifact does not currently support displaying Readme files for Maven packages. The GetPackageVersionReadme API will return "not found" for all Maven packages.

$ aws codeartifact get-package-version-readme \
>     --domain test \
>     --repo my-repo-name \
>     --format maven \
>     --package commons-lang \
>     --namespace commons-lang \
>     --package-version 2.1 \
>     --profile my_profile_name

An error occurred (ResourceNotFoundException) when calling the GetPackageVersionReadme operation: The readme file of this package version is not found
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文