How to use maven2.0 -quick start
来源:互联网 发布:网络大电影票房排行 编辑:程序博客网 时间:2024/05/17 01:05
create project:
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
if you want to create other type project you can do that
mvn archetype:create -DgroupId=cn.sqsoft -DartifactId=sqsoft
mvn archetype:create -DgroupId=cn.sqsoft.steel -DartifactId=sqsoft-steel -DarchetypeArtifactId=maven-archetype-webapp
compile application sources:
mvn compile
run unit tests:
mvn test
compile test source:
mvn test-compile
create a jar and install it in my local repository
mvn package
mvn install
we have walked through the process for setting up, building,testing,packaging,and installing a typical Maven project.
generating the site is very simple,and fast.
mvn site
--------------------------------------------
How do i build other types of projects?
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
--------------------------------------------
How do i build more than one project at once?
mvn clean install
--------------------------------------------
How do i using Maven 2 to generate Eclipse project files?
mvn eclipse:eclipse
Eclipse needs to know the path to the local maven repository. Therefore the casspath variable M2_REPO has to be set.so we should execute the following command:
How do i define a classpath variable for your maven repository?
$ cd workspace_dir
$ mvn -Declipse.workspace=. eclipse:add-maven-repo
- How to use maven2.0 -quick start
- A Ajax.NET quick guide how to start
- Start to use JAXP
- Ajax.Net Professional——A quick guide how to start(AjaxPro开始向导)
- How to set up a multi-domain SSO demonstration for a quick start with CAS.
- Windows Phone 7 Quick Tip: How to use Bing Maps in XNA games
- How to start SSHD
- How to start Rootkit
- How to start it?
- How to use VB6.0's Event.
- How to use gdi+ in vc6.0
- How To Use DataGird
- how to use typedef
- how to use gz
- How to use chkconfig
- How to use ,,,,
- how to use dialog
- How to use UIDs
- 小偷程序
- 关于java的classpath问题的总结
- 用SQL语句实现的网吧计费
- 从睡前行动看男人秘密
- c#&excel
- How to use maven2.0 -quick start
- 编成之道
- eclipse设置显示行号
- 七个经典推理(zz)
- 显示时间js
- Asp.net 2.0 GridView的几个事件(如实现: 行的双击/单击/捕捉键盘按键/鼠标悬浮/移出效果)(示例代码下载)
- 正则表达式(regular expression)
- java1.5 enum case
- Visual Studio Team Edition for Database Professionals