What is Archetype?
In short, Archetype is a Maven project templating toolkit. An archetype is defined as an original pattern or model from which all other things of the same kind are made . The names fits as we are trying to provide a system that provides a consistent means of generating Maven projects. Archetype will help authors create Maven project templates for users, and provides users with the means to generate parameterized versions of those project templates.
Using archetypes provides a great way to enable developers quickly in a way consistent with best practices employed by your project or organization. Within the Maven project we use archetypes to try and get our users up and running as quickly as possible by providing a sample project that demonstrates many of the features of Maven while introducing new users to the best practices employed by Maven. In a matter of seconds a new user can have a working Maven project to use as a jumping board for investigating more of the features in Maven. We have also tried to make the Archetype mechanism additive and by that we mean allowing portions of a project to be captured in an archetype so that pieces or aspects of a project can be added to existing projects. A good example of this is the Maven site archetype. If, for example, you have used the quick start archetype to generate a working project you can then quickly create a site for that project by using the site archetype within that existing project. You can do anything like this with archetypes.
You may want to standardize J2EE development within your organization so you may want to provide archetypes for EJBs, or WARs, or for your web services. Once these archetypes are created and deployed in your organization's repository they are available for use by all developers within your organization.
分享到:
相关推荐
Maven: The Complete Reference The essential reference for anyone working with Apache Maven. Explore the details of the POM, Maven Settings, Maven Archetypes.
然而,开发者在使用IntelliJ IDEA(简称Idea)导入Maven项目时,可能会遇到“Unable to import Maven project”的错误提示,这会阻碍项目的正常启动和开发工作。本文将详细解释这个问题的原因,并提供解决方案。 ...
Maven 使用 tomcat8-maven-plugin 插件 Maven 是一个流行的构建自动化工具,它可以帮助开发者自动完成项目的编译、测试、打包、部署等任务。 Tomcat 是一个流行的 Web 服务器,Maven 提供了一个插件 tomcat8-maven-...
当在Eclipse中创建一个Maven项目时,为了快速启动开发,我们可以选择使用Maven Archetypes。Archetypes是预定义的项目模板,它们可以自动生成一个具有基本结构的项目,从而简化初始化过程。 **什么是Maven ...
解决tomcat8-maven-plugin-3.0-r1655215.jar阿里云同有的问题。放到路径org\apache\tomcat\maven\tomcat8-maven-plugin\3.0-r1655215\就可以了
Maven是由Sonatype公司出版的一本权威指南——《Maven:完整参考手册》(Edition 0.4,2010年2月版)。本书由多位Maven领域的专家共同编写,包括Tim O’Brien、Jason van Zyl、Brian Fox等,这些作者都是Maven项目的...
idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,...
Maven更新问题 今天Maven在更新的时候发现一直更新不成功,总结下解决方法。 在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven ...
Maven作为Java领域的构建工具,自2002年开源以来,成为了一个事实上的标准。Maven最初由Jason Van Zyl创建,目前由Sonatype公司维护。Maven的目的是为了简化Java项目的构建过程,并提供项目信息、文档、报告等。本文...
#介绍Dockerfile 使用 JDK、maven、git 和 openssh 从 sameersbn/gitlab-ci-runner 基本映像构建 GitLab CI Runner。... 例如, docker pull lemonbar/gitlab-runner-jdk-maven:1.0 或者,您可以自己构建
rules_maven 规则 Maven 规则用于处理传递Maven依赖项。...load ( "@org_pubref_rules_maven//maven:rules.bzl" , "maven_repositories" ) maven_repositories () 2a。 定义一个初始的maven_repository
魅力Maven插件 该插件在Maven构建过程中通过生成Allure报告。入门pom.xml添加到pom.xml构建部分: <plugin><groupId>io.qameta.allure</groupId><artifactId>allure-maven</artifactId><version>2.9</version></...
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project
Maven是Java开发中不可或缺的构建工具,它管理项目依赖、构建流程,并且提供了一套标准的项目对象模型(Project Object Model, POM),使得开发者能够更有效地管理与构建Java项目。Maven 3.6.0是其最新的稳定版本,...
Apache Maven 是一个强大的项目管理和构建工具,主要用于Java项目。它基于项目对象模型(Project Object Model,POM),能够自动化构建过程,包括编译、测试、打包、部署等。Maven通过使用一组预定义的规则和插件,...
Apache Maven 是一个强大的项目管理和构建工具,主要用于Java应用程序的开发。它通过定义项目的结构和依赖关系,自动处理构建过程,简化了项目的构建、测试和部署。Maven 3.8.6是Maven的一个版本,它包含了从早期...
在<plugins></plugins>中添加 <groupId>org.apache.maven.plugins <artifactId>maven-compiler-plugin <version>3.8.1 <source>1.8 <target>1.8 </plugin>
maven安装与配置
docker-npm-maven ... maven-3.5.4( )maven:alpine docker映像 python 2.7.15 宝石与危险 如何使用 最新的docker映像版本是1.3.0 docker run --rm -it cschockaert/docker-npm-maven:latest /bin/bash 使