maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amélie Deltour (JIRA) <j...@apache.org>
Subject [jira] [Commented] (ARCHETYPE-528) Archetype:generate from repos besides central does not work
Date Thu, 25 Oct 2018 12:42:00 GMT

    [ https://issues.apache.org/jira/browse/ARCHETYPE-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16663693#comment-16663693
] 

Amélie Deltour commented on ARCHETYPE-528:
------------------------------------------

FYI, we finally managed to have the {{archetype}} repository work for fetching the catalog.

We had to activate the profile containing the {{archetype}} repository in the {{activeProfiles}}
list of the {{settings.xml}}.

It does not work if we activate the profile with the {{-P}} option or with {{<activation><activeByDefault>true</activeByDefault></activation>}}
(which still seems quite strange to me)

> Archetype:generate from repos besides central does not work
> -----------------------------------------------------------
>
>                 Key: ARCHETYPE-528
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-528
>             Project: Maven Archetype
>          Issue Type: Bug
>    Affects Versions: 3.0.1
>            Reporter: João Cabrita
>            Priority: Critical
>         Attachments: settings.xml
>
>
> {noformat}
> mvn -X -P camunda -DarchetypeCatalog=remote  org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate
-Dfilter=org.camunda.bpm.archetype:
> {noformat}
> Results in the following:
> {noformat}
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate'
with basic configurator -->
> [DEBUG]   (f) archetypeCatalog = remote
> [DEBUG]   (f) basedir = C:\Users\joao.cabrita\projects\bpm
> [DEBUG]   (f) filter = org.camunda.bpm.archetype:
> [DEBUG]   (f) interactiveMode = true
> [DEBUG]   (f) localRepository =       id: local
>       url: file:///C:/Users/joao.cabrita/.m2/repository/
>    layout: default
> snapshots: [enabled => true, update => always]
>  releases: [enabled => true, update => always]
> [DEBUG]   (f) remoteArtifactRepositories = [      id: central
>       url: https://app.camunda.com/nexus/content/repositories/camunda-bpm
>    layout: default
>     proxy: proxy.brisa.pt:3128
> snapshots: [enabled => true, update => daily]
>  releases: [enabled => true, update => daily]
> ,       id: archetype
>       url: https://app.camunda.com/nexus/content/repositories/camunda-bpm
>    layout: default
>     proxy: proxy.brisa.pt:3128
> snapshots: [enabled => true, update => daily]
>  releases: [enabled => true, update => daily]
> ]
> [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@325f7fa9
> [DEBUG] -- end configuration --
> [INFO] Generating project in Interactive mode
> [DEBUG] Searching for remote catalog: https://repo.maven.apache.org/maven2/archetype-catalog.xml
> [WARNING] No archetype found in remote catalog. Defaulting to internal catalog
> [INFO] Your filter doesn't match any archetype, so try again with another value.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> {noformat}
> I've attached my settings.xml file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message