`
darcy_lee
  • 浏览: 1745 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

Maven tips

阅读更多
1.版本
mvn -version
Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven home: D:\mvn303\bin\..
Java version: 1.6.0_10-rc2, vendor: Sun Microsystems Inc.
Java home: D:\Java\jdk1.6.0_10\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows vista", version: "6.1", arch: "x86", family: "windows"

2.建项目
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-

You executed the Maven goal archetype:generate, and passed in various parameters to that goal. The
prefix archetype is the plugin that contains the goal.

3.Build the Project
mvn package

4.其他命令
• validate: validate the project is correct and all necessary information is available
• compile: compile the source code of the project
• test: test the compiled source code using a suitable unit testing framework. These tests should
not require the code be packaged or deployed
• package: take the compiled code and package it in its distributable format, such as a JAR.
• integration-test: process and deploy the package if necessary into an environment where
integration tests can be run
• verify: run any checks to verify the package is valid and meets quality criteria
• install: install the package into the local repository, for use as a dependency in other projects
locally
• deploy: done in an integration or release environment, copies the final package to the remote
repository for sharing with other developers and projects.
There are two other Maven lifecycles of note beyond the default list above. They are
• clean: cleans up artifacts created by prior builds
• site: generates site documentation for this project

分享到:
评论

相关推荐

    maven-3.6.1-3.6.2-tips.rar

    maven3.6.1版本、maven3.6.2版本、本人使用中遇到的一些问题分享。3.6.1和3.6.2是有区别的,有区别的

    博客系统:web前端+管理后台+java源码

    Mblog 开源Java博客系统, 支持多用户, 支持切换主题 配置:src/main/resources/application-mysql.yml (数据库账号... TIPS: 如遇到启动失败/切换环境变量后启动失败的,请先maven clean后再尝试启动 IDE得装lombok插件

    重庆理工大学数据结构课程设计

    2019级重庆理工大学数据结构课程设计 题目1一元多项式计算器 题目2 数据压缩与解压缩 ...tips:这是maven项目,如果你的电脑没有配置maven,应该不太行,不过你可以把主要代码移动到你的工程里面

    java后台查看所有订单源码-vaadin-tips:Vaadin开发的一些有价值的提示和技巧

    Maven,您还可以从我们提供的原型中受益,以启动您的项目: vaadin-archetype-application - 基本应用程序框架 vaadin-archetype-application-multimodule - 具有生产和开发配置文件的多模块项目 vaadin-archetype-...

    SoupUI测试指南

    SoapUI Pro Version: For the 4 pro only recipes and pro functionality tips recipes marked with (pro), version 5.1.1 was used. SoapUI NG Pro should also work, but it has not been officially tested. Java...

    基于SSM+Druid+Shrio+Ehcache构建CMS系统

    运行系统 ...进入Autumn-Framework目录cd Autumn-Framework 执行mvn install 再进入cms目录cd cms 在执行mvn tomcat7:run 最后在浏览器中访问localhost:...Tips:以上所有操作基于您的电脑已经安装了jdk8、maven3和git环

    Android代码-LoadingPopPoint

    LoadingPopPoint this is a view that three colorful point circle in the screen Preview It may looks like this Get Started repositories { ... Wish you can learn some basic tips from my repository!

    Android代码-HotXposed

    HotXposed: Useage Step 1 compile the library in your build.gralde gradle allprojects { ...Tips Only need kill the target app in MainActivity, not reboot the device anymore ,Enjoy! XD

    50-Android-Hacks.pdf

    works, like cocos2d-x, to build systems, like Apache Maven. In November 2010 I was asked to review a book from Manning Publications called Android in Practice (www.manning.com/collins/). Delving deep ...

    CityPicker-master:修改城市列表开源项目

    Tips:(旧版本1.x)会报高德定位jar包冲突,推荐使用2.x版本。主要功能:字母悬浮栏指定热门城市自定义动画效果自定义主题名称或拼音搜索返回城市名、code等数据提供定位接口,解耦定位SDKPreviewAPK下载体验....

    BlogSystem:个人博客

    技术栈SpringBootHtmlCSSJavaScriptJQueryAmazeUIThymeleafdruid数据源Maven构建工具Mybatis持久层Mysql数据库功能登录模块,注册模块,文章详情, 文章分类详情, 文章标签详情友链详情富文本写文章模块, 管理系统注册...

    WebsiteParserForTJUT-client-Android:天津理工大学掌上校园,用于学生查询课表成绩校园新闻等,及时获取校园信息

    天津理工大学学生信息查询系统-移动校园 本项目是面向天津理工大学学生的...本项目依赖于和,在编译本项目之前需把这两个项目的工件发布到Maven本地仓库(可在这两个项目下运行./gradlew install)。 build任务依赖于as

    mblog博客系统-其他

    http://localhost:8080/后台:http://localhost:8080/admin账号:默认管理员账号为 admin/12345TIPS: 如遇到启动失败/切换环境变量后启动失败的,请先maven clean后再尝试启动IDE得装lombok插件mblog v3.5 更新内容...

    hibernate3.6 文档(pdf 格式)

    1.1.5. Building with Maven ................................................................................. 9 1.1.6. Startup and helpers .................................................................

Global site tag (gtag.js) - Google Analytics