Support for multiple archetypes repositories

オープン
#259 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
build-system

調査の方向性

settings.xml の例と mvn archetype:generate -Dfilter="com.ibm:" コマンドから始め、archetype リポジトリがどのように選択されるのか、また静的なリポジトリ ID archetype によって central が検索対象にならなくなる理由を追跡します。設定されたリポジトリを、central を含めて、すべてのリポジトリに 1 つの ID の使用を要求せずにまとめて検索できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement
New feature, improvement proposal

Given current settings.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/settings-1.0.0.xsd">
    <profiles>
        <profile>
            <id>ibm</id>
            <repositories>
                <repository>
                    <id>was-archetype</id>
                    <url>https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>ibm</activeProfile>
    </activeProfiles>
</settings>

when run

mvn archetype:generate -Dfilter="com.ibm:"

the archetypes resolution respond with:

Choose archetype:
1: remote -> com.ibm.cics:cics-bundle-deploy-reactor-archetype (An archetype demonstrating how to use the cics-bundle-maven-plugin to build and deploy a CICS bundle using a build with a Maven reactor.)
2: remote -> com.ibm.cics:cics-bundle-reactor-archetype (An archetype demonstrating how to use the cics-bundle-maven-plugin to build a CICS bundle using a build with a Maven reactor.)
3: remote -> com.ibm.mfp:adapter-maven-archetype-http (IBM MFP Adapter archetype for JavaScript adapter as a maven project. BuildNumber is : 8.0.2024082809)
4: remote -> com.ibm.mfp:adapter-maven-archetype-java (IBM MFP Adapter archetype for Java adapter as a maven project. BuildNumber is : dummyBuildNumber)
5: remote -> com.ibm.mfp:adapter-maven-archetype-sql (IBM MFP Adapter archetype for sql adapter as a maven project. BuildNumber is : dummyBuildNumber)
6: remote -> com.ibm.sbt:sbt.sso.webapp-archetype (-)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): :

Not resolving the added repository ones.

When you use a repository with id "archetype", this works... but it stops searching in central. ¿Why is the archetypes search done in only one repository? In my opinion, at least an "id pattern" should be used instead of a static and single one.

主要言語
Java
スター
147
フォーク
186
平均マージ
11時間 43分
マージ済み PR(30日)
35

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/maven-archetype のほかの issue

apache/maven-archetype の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。