首页 > 其他分享 >maven 中的 archetype 原型修改

maven 中的 archetype 原型修改

时间:2023-09-21 09:11:06浏览次数:40  
标签:archetypes contains maven 原型 apache org archetype

目的: 添加idea 新建项目时,选择更多版本的 archetype 原型

  1. 找到目录 D:\KaiFa\maven\repositorys\org\apache\maven\archetype\archetype-catalog\3.2.1
  2. 添加 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>
  1. 修改idea 的新建maven 目录
    image
  2. 修改完成后,可以看到 有很多版本
    image

更多链接:https://blog.csdn.net/wuchoujb/article/details/127059248

标签:archetypes,contains,maven,原型,apache,org,archetype
From: https://www.cnblogs.com/ko25891wan/p/17719060.html

相关文章

  • Springboot 的 maven项目利用 maven插件构建 docker 镜像(免 DockerFile编写)
    Springboot的maven项目利用maven插件构建docker镜像(免DockerFile编写)本小节目的是springboot项目maven插件构建容器实验步骤:1.本地创建springboot项目,写业务逻辑代码2.提交代码到远程git仓库3.在linux环境拉取远程git仓库代码,构建镜像4.把构建完成的镜像推送......
  • Maven配置阿里云仓库地址
    Maven下载与安装:  https://www.cnblogs.com/ychun/p/15547423.htmlMaven配置阿里云仓库地址: https://developer.aliyun.com/mvn/guide  ......
  • gradle/maven/eclipse工程相互转化
    。gradle/maven/eclipse工程相互转化:前提安装好相应的工具和插件。1、Maven->eclipsemvneclipse:eclipse 2、eclipse->maven安装好maven插件后,在eclipse工程右键项目:转换为maven工程即可。 3、gradle->eclipse编辑build.gradle文件,在文件最前面增加一行:a......
  • 如何使用Maven的test进行UT测试生成测试报告
    要使用Maven中的test对指定的脚本进行测试并生成测试报告,你可以按照以下步骤进行操作:确保你的项目中已经引入了JUnit依赖。在你的pom.xml文件中,添加以下依赖:<dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.12</version><......
  • 【gradle.kts maven 添加】【android】
    org.gradle.api.InvalidUserCodeException:Buildwasconfiguredtoprefersettingsrepositoriesoverprojectrepositoriesbutrepository'maven'wasaddedbybuildfile'app/build.gradle.kts'在setting里加  dependencyResolutionMa......
  • Failed to determine a suitable driver class(maven不编译配置文件)
    现象:启动报错 问题排查与处理:1:根据错误翻译,是datasource没有一些配置属性。不过检查下来写法没有啥问题 2:注意启动端口是不是生效了。发现是配置文件没起作用 3:maven添加resources<resources><resource><directory>src/main/java</dir......
  • 「开源系统」mybatis-plus代码生成工具(自己基于官方的封装的,打包成了maven插件的方式)
    mybatis-plus代码生成工具本工具基于MyBatis-Plus的代码生成器,MyBatis-Plus官网:https://baomidou.com/,请尊重原作者作品。demo:https://gitee.com/javalaoniu/mybatis-code-maven-plugin-demo插件:https://gitee.com/javalaoniu/mybatis-plus-code-maven-plugin生成的项目......
  • Linux安装maven(详细教程)
    一、简介 Maven是意第绪语,意思是“知识的积累者”,最初是为了简化JakartaTurbine项目中的构建过程。有几个项目,每个项目都有自己的Ant构建文件,所有项目都略有不同。JAR已检入CVS。我们想要一种标准的方式来构建项目,清晰地定义项目的组成,一种简单的方式来发布项目信息,以及一......
  • 软件设计模式系列之七——原型模式
    1模式的定义原型模式(PrototypePattern)是一种创建型设计模式,其主要目的是通过复制现有对象来创建新对象,而不是使用构造函数。原型模式将对象的创建委托给原型对象,通过克隆(复制)来生成新对象,这种方式可以避免对象的重复初始化,提高性能,并使对象的创建更加灵活和动态。原型模式的关......
  • Maven环境配置
    Maven环境配置找到maven的安装目录 点击电脑属性进入环境变量创建MAVEN_HOME 检查环境变量配置是否成功  ......