maven 中的 archetype 原型修改
目的: 添加idea 新建项目时,选择更多版本的 archetype 原型
- 找到目录 D:\KaiFa\maven\repositorys\org\apache\maven\archetype\archetype-catalog\3.2.1
- 添加 archetype-catalog-3.2.1-myset.xml 文件
点击查看代码
<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
<archetypes>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-archetype</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample archetype.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-archetype</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample archetype.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-archetype</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample archetype.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-archetype</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-j2ee-simple</artifactId>
<version>1.4</version>
<description>An archetype which contains a simplified sample J2EE application.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-j2ee-simple</artifactId>
<version>1.3</version>
<description>An archetype which contains a simplified sample J2EE application.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-j2ee-simple</artifactId>
<version>1.0</version>
<description>An archetype which contains a simplifed sample J2EE application.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-j2ee-simple</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-marmalade-mojo</artifactId>
<version>1.0-alpha-3</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-marmalade-mojo</artifactId>
<version>1.0-alpha-2</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-marmalade-mojo</artifactId>
<version>1.0-alpha-1</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-mojo</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample a sample Maven plugin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-mojo</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-mojo</artifactId>
<version>1.0-alpha-3</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-mojo</artifactId>
<version>1.0-alpha-2</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-mojo</artifactId>
<version>1.0-alpha-1</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample Maven plugin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample Maven plugin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>1.2</version>
<description>An archetype which contains a sample Maven plugin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>1.1</version>
<description>An archetype which contains a sample Maven plugin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample Maven plugin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin-site</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
existing Maven plugin project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin-site</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
existing Maven plugin project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin-site</artifactId>
<version>1.1</version>
<description>An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
existing Maven plugin project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-plugin-site</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
existing Maven plugin project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-portlet</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample JSR-268 Portlet.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-portlet</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample JSR-268 Portlet.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-portlet</artifactId>
<version>1.0.1</version>
<description>An archetype which contains a sample JSR-268 Portlet.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-portlet</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample JSR-268 Portlet.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-portlet</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-profiles</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.1</version>
<description>An archetype which contains a sample Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.0-alpha-3</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.0-alpha-2</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.0-alpha-1</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-simple</artifactId>
<version>1.4</version>
<description>An archetype which contains a simple Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-simple</artifactId>
<version>1.3</version>
<description>An archetype which contains a simple Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample Maven site which demonstrates some of the supported document types like
APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
upon an existing Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample Maven site which demonstrates some of the supported document types like
APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
upon an existing Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site</artifactId>
<version>1.1</version>
<description>An archetype which contains a sample Maven site which demonstrates some of the supported document types like
APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
upon an existing Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample Maven site which demonstrates some of the supported document types like
APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
upon an existing Maven project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site</artifactId>
<version>1.0-alpha-2</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site-simple</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample Maven site.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site-simple</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample Maven site.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site-simple</artifactId>
<version>1.1</version>
<description>An archetype which contains a sample Maven site.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site-simple</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample Maven site.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site-simple</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site-skin</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample Maven Site Skin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-site-skin</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample Maven Site Skin.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-webapp</artifactId>
<version>1.4</version>
<description>An archetype which contains a sample Maven Webapp project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-webapp</artifactId>
<version>1.3</version>
<description>An archetype which contains a sample Maven Webapp project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-webapp</artifactId>
<version>1.0</version>
<description>An archetype which contains a sample Maven Webapp project.</description>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-webapp</artifactId>
<version>1.0-alpha-4</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-webapp</artifactId>
<version>1.0-alpha-3</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-webapp</artifactId>
<version>1.0-alpha-2</version>
</archetype>
<archetype>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-webapp</artifactId>
<version>1.0-alpha-1</version>
</archetype>
</archetypes>
</archetype-catalog>
- 修改idea 的新建maven 目录
- 修改完成后,可以看到 有很多版本
更多链接:https://blog.csdn.net/wuchoujb/article/details/127059248