Maven Archetype Catalogs

Compatible with: IntelliJ IDEA Android Studio
25.02.2017
7 416

A plugin to enable IntelliJ IDEA to fetch external Maven Archetype Catalog files.

IntelliJ IDEA is not able to fetch external Maven Archetype Catalog files (archetype-catalog.xml). To use custom Maven Archetypes, you had to add external Maven Archetypes manually.

This plugin for IntelliJ IDEA allows you to define a list of external Maven Archetype Catalog files. Those files are fetched and the containing Maven Archetypes are made available in IntelliJ IDEA when creating new Maven projects.

Usage

It adds a new entry Maven Archetype Catalogs to the Settings menu at File - Settings - Build, Execution and Deployment - Build tools.

Here you can add additional URLs or choose local files external archetype-catalog.xml files. If you need to authenticate to the reposistory, use an URL like 'http://[username]:[password]@[url]'.

After adding those Catalog files the Archetypes present in these files will be available when creating new Maven projects or Maven modules based on Archetypes.

Importing from pom.xml

If you define Maven Archetype Catalogs in your pom.xml file, those settings will be automatically imported.

You have to either define the property archetypeCatalog in your pom.xml or add a configuration for the plugin org.apache.maven.plugins:maven-archetype-plugin and configure the archetypeCatalog there.

Download plugin

Recent change notes

Bugfix: Fixed NullPointerException when handling empty Archetype Catalogs

General usage instructions

The plugin adds a new entry "Maven Archetype Catalogs" to the Settings menu at "File" - "Settings" - "Build, Execution and Deployment" - "Build tools". Here you can add additional URLs pointing to archetype-catalog.xml files. After adding these Catalog files the Archetypes present will be available when creating new Maven projects or Maven modules.