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

Robert Scholte commented on ARCHETYPE-528:
------------------------------------------

bq. maven central is hardcoded into the plugin

I'm pretty sure that all hardcoded references to Maven Central have been 
removed from this plugin. It means that it is falling back to Mavens own 
defaults.

bq. the "archetype" repository isn't being used for fetching the catalog but 
can be used for fetching artifacts

In case of a mirror I know this is working. This is a case which hasn't been 
covered yet.

bq. it complains about the "archetype" repository missing despite it being 
defined

Very likely related to the previous bullet.

For me this line is interesting: {{[DEBUG] Searching for remote catalog: 
https://repo.maven.apache.org/maven2/archetype-catalog.xml}}. It should have 
picked the archetype-repository. So this is a clear message that the 
refactoring is not complete yet.

> 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
(v6.3.15#6346)

Reply via email to