6) mvn archetype:create-from-project

cd %old%
mvn archetype:create-from-project
cd %old%/target/generated-sources/archetype 
mvn install
cd %newParent%

mvn archetype:generate -DarchetypeCatalog=local

步骤:
生成原型
安装到本地
使用本地该原型
位置 ~\.m2\repository\cn\zxg\struts-hello-archetype\1.0\struts-hello-archetype-1.0.jar

http://maven.apache.org/archetype/maven-archetype-plugin/create-from-project-mojo.html

时间: 2024-10-12 03:57:47

6) mvn archetype:create-from-project的相关文章

Maven创建项目: Failed to execute goal org.apache.maven.plugin( mvn archetype:create)

一.概述: 在使用mvn 命令mvn archetype:create -DgroupId=com.chuanliu.c11 -DartifactId=c11searcher在控制创建maven项目和pom项目时,没有创建成功,错误信息如下: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli)  on project standalone-p

[Maven] 从mvn archetype:create命令说起

起因 在使用mvn archetype:create -DgroupId=com.test.demo -DartifactId=news-interface -DarchetypeArtifactId=maven-archetype-webapp在控制创建pom项目时,没有创建成功,错误信息如下: 1: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:create (defaul

mvn archetype:create报错解决办法

执行下列命令:mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app -X  会报错: 此时将archetype:create 改为archetype:generate,执行下列命令: mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -X 此时加上-DarchetypeCatalog=internal,执行下列命令:mvn

idea新建maven项目时,mvn archetype:generate 速度缓慢

原文 idea新建maven项目时,mvn archetype:generate 速度缓慢 1 现象: 用IDEA新建maven项目,填写完各种参数,创建时,控制台卡在“[INFO] Generating project in Batch mode”处: 同时,右下方状态栏处,显示创建过程仍在进行: 2 原因 IDEA根据maven archetype的本质,其实是执行mvn archetype:generate命令,该命令执行时,需要指定一个archetype-catalog.xml文件. 该

通过mvn archetype:generate创建Maven项目模板慢的问题

通过mvn archetype:generate这种交互方式来创建Maven项目模板的时候,经常会长时间卡在Generating project in Interactive mode这一行提示(图1). 看了网上的帖子(文章最底下有说明),发现是获取archetype-catalog.xml导致的(浏览器访问http://repo1.maven.org/maven2/archetype-catalog.xml,需要等待很长时间才能获取到). 其实下载下来会发现Maven提供的archetype

新建maven项目时,mvn archetype:generate 速度缓慢

来自:http://www.bubuko.com/infodetail-1110458.html 一.原因 IDEA根据maven archetype的本质,其实是执行mvn archetype:generate命令,该命令执行时,需要指定一个archetype-catalog.xml文件. 该命令的参数-DarchetypeCatalog,可选值为:remote,internal  ,local等,用来指定archetype-catalog.xml文件从哪里获取.默认为remote,即从htt

Visual Studio Create Setup project to deploy web application in IIS

Introduction: In this article I will explain how to create setup file in visual studio 2008/2010 to deploy web application file directly in IIS or in client machine or how to place web application folder in c:\\inetpub\wwwroot folder by running setup

Mac Error Create Android Project - “Errors running builder 'Android Resource Manager' on project”

http://stackoverflow.com/questions/18096315/mac-error-create-android-project-errors-running-builder-android-resource-man 在mac笔记本上运行android eclipse报标题的错误,然后在stackoverflow上找到了答案 18down votefavorite 5 I spent the whole day just trying to create a simple

How to create a project with Oracle Policy Modeling

This blog is about how to create a project with Oracle Policy Modeling. You can do it successfully if you do what I teach you, en, Now, we will start! Step 1: Open Oracle Policy Modeling, File --> New Project... Type the "hongten-pom" for the