Skip to content

Support for multiple archetypes repositories #259

@jagame

Description

@jagame

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions