以上命令就把相关内容安装到本地仓库 ${home}/.m2/repository/ archetype
Basically, an archetype is like a template for your project that is reusable for similar projects. The archetype will create the directory structure, including all the files needed, and download all plug-ins and dependencies needed by the project, saving you a lot of time in the creation and configuration of your project. [意思就是可以建立项目的框架架构,这样以后其他的项目可以在这些框架结构基础上再发展]
以上是两个构建Flex的archetype. FNA
FNA is an open source project started by Adobe consulting that helps Java and Flex development with open source projects and Maven archetypes. You can see and read more about FNA at http://code.google.com/p/fna-v2/ You can find more interesting and useful Flex-Java archetypes at http://fna-v2.googlecode.com/svn/trunk/mvn_archetypes/such as:
· flex-cairngorm-stubbed-crud-archetype
· flex-cairngorm-flexunit-archetype
· flex-library-archetype Flex Mojos Maven plugin
http://flexmojos.sonatype.org/
http://www.sonatype.com/book
http://flexmojos.sonatype.org/getting-started.html
一个例子:
mvn archetype:create -DarchetypeGroupId=org.foj -DarchetypeArtifactId=flex-mojos-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=org.foj -DartifactId=flex-bugs-ria -DremoteRepositories=http://flexonjava.googlecode.com/svn/repository
http://filippodipisa.artifactoryonline.com/filippodipisa/libs-releases-local/archetype-catalog.xml 命令