[ https://issues.apache.org/jira/browse/ARCHETYPE-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17358813#comment-17358813 ]
Ryan Ashcraft commented on ARCHETYPE-528: ----------------------------------------- Confirming this is a still and issue and not a big workaround, as noted by the comment above. It works with a repository with {{<id>archetype</id>}} as recently as Maven 3.5.2. But in Maven 3.6.2+, you need to use the {{<activeProfiles>}} and not an {{<activeByDefault}}> tag. {code:java} <profiles> <profile> <id>standard-extra-repos</id> <repositories> <repository> <id>archetype</id> <url>YOUR CUSTOM ARCHETYPE REPOSITORY</url> <releases> <enabled>true</enabled> <checksumPolicy>fail</checksumPolicy> </releases> <snapshots> <enabled>true</enabled> <checksumPolicy>fail</checksumPolicy> </snapshots> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>standard-extra-repos</activeProfile> </activeProfiles> </profiles>{code} > 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 (v8.3.4#803005)