apache / apache/maven-archetype

[ARCHETYPE-528] Archetype:generate from repos besides central does not work

Open
#810 8 comments 0 reactions 0 assignees View on GitHub
bug priority:critical
Dominant language
Java
Stars
148
Forks
181
Avg merge
1d 20h
Merged PRs (30d)
8

Description

**[João Cabrita](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=kewne)** opened **[ARCHETYPE-528](https://issues.apache.org/jira/browse/ARCHETYPE-528?redirect=false)** and commented

```
mvn -X -P camunda -DarchetypeCatalog=remote org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate -Dfilter=org.camunda.bpm.archetype:
```

Results in the following:

```
[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] ------------------------------------------------------------------------
```

I've attached my settings.xml file.

---

**Affects:** 3.0.1

**Attachments:**
- [settings.xml](https://issues.apache.org/jira/secure/attachment/12869827/settings.xml) (_783 bytes_)

**Issue Links:**
- [ARCHETYPE-654](https://issues.apache.org/jira/browse/ARCHETYPE-654) Clarify repository/server id used for custom repository catalog

- [ARCHETYPE-519](https://issues.apache.org/jira/browse/ARCHETYPE-519) archetype:generate with specified remote archetypeCatalog falls back to internal catalog

4 votes, 11 watchers

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.