建一个 JAVA 项目 :
mvn archetype:create
-DgroupId=com.demo
-DartifactId=App
[-Dversion=0.0.1-SNAPSHOT]
[-Dpackaging=jar]
建一个 web 项目 :
mvn archetype:create
-DgroupId=com.demo
-DartifactId=web-app
-DarchetypeArtifactId=maven-archetype-webapp
简单解释一下:
archetype 是一个内建插件,他的create任务将建立项目骨架
archetypeArtifactId 项目骨架的类型
DartifactId 项目名称
常用用项目骨架类型有:
* maven-archetype-archetype
* maven-archetype-j2ee-simple
* maven-archetype-mojo
* maven-archetype-portlet
* maven-archetype-profiles (currently under development)
* maven-archetype-quickstart
* maven-archetype-simple (currently under development)
* maven-archetype-site
* maven-archetype-site-simple, and
* maven-archetype-webapp
运行mvn eclipse:eclipse :生成 Eclipse 项目文件,最后导入Eclpse试试
分享到:
相关推荐
Maven 的41种骨架功能介绍,使用maven创建模板,能够更好的创建自己想要的项目结构
该资源包含了一个手动创建的maven工程,简单易懂,喜欢的下载。可以参考博客http://blog.csdn.net/mockingbirds/article/details/47302815
通过命令创建maven骨架文件,方便maven对项目进行管理。
123,345,maven四十一种骨架罗列maven四十一种骨架罗列
maven仓库完整版,解决了由于网络代理而无法自动更新的问题。
maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装...
从来修改字体的样式,手动导入该依赖,在对应软件修改
repository.rarrepository.rarrepository.rarrepository.rar
建立Maven私服 – Nexus下载、安装、配置、使用 建立Maven私服 – Nexus下载、安装、配置、使用
maven安装和ideas建立maven工程.exe
IDEA建立maven项目1
帮助使用maven进行开发的开发者们在myeclipse上快速手动安装maven
引入插件生成骨架进入generated-sources/archetype这样就把自定义的archetype安装到本地仓库了发布到私服进入generated-s
ojdbc14手动发布到maven仓库
自动生成:mvn install:install-file -Dfile=jar包的位置 -DgroupId=jar包的groupId -DartifactId=jar包的artifactId -Dversion=jar包的version -Dpackaging=jar
手动导jar包到Maven本地仓库!当Maven镜像里没有该jar包时需要自己去网上下载,手动导入到Maven仓库!
https://mvnrepository.com/ 输入想要的jar包,点击 search 点击版本号,复制maven pom.xml,点击View All,下载jar包到本地 cmd 命令,安装jar包到本地仓库
Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令
手动导jar包到Maven本地仓库的教程!
maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0