<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Maven Introduction

    Maven Introduction

    First, download maven-1.0.2.exe or maven-1.0.2.zip from

    http://apache.justdn.org/maven/binaries/maven-1.0.2.exe

    Then, unzip maven-1.0.2.zip to C:/ maven-1.0.2

    Set MAVEN_HOME as : C:/ maven-1.0.2

    Set %MAVEN_HOME%\bin to environment path.

    Now, you can have a try to use it:

    Go to ms-dos, and input C: >meven , and you will see:

    __? __

    |? \/? |__ _Apache__ ___

    | |\/| / _` \ V / -_) ' \? ~ intelligent projects ~

    |_|? |_\__,_|\_/\___|_||_|? v. 1.0.2

    ?

    This is showed that you have configured maven successfully.

    ?

    Now, we can do a simple example to use maven.

    ?

    Create a new folder named maventest in the C disk, and the go into ms-dos, input C:\MavenTest>maven genapp, press enter, you can input follow messages:

    ?

    __? __

    |? \/? |__ _Apache__ ___

    | |\/| / _` \ V / -_) ' \? ~ intelligent projects ~

    |_|? |_\__,_|\_/\___|_||_|? v. 1.0.2

    ?

    Enter a project template to use: [default]

    ?

    Please specify an id for your application:? [app]

    wangxq

    Please specify a name for your application:? [Example Application]

    wangxq

    Please specify the package for your application:? [example.app]

    wangxq

    build:start:

    ?

    genapp:

    ??? [copy] Copying 1 file to C:\MavenTest\src\java\wangxq

    ??? [copy] Copying 3 files to C:\MavenTest\src\test\wangxq

    ??? [copy] Copying 1 file to C:\MavenTest

    ??? [copy] Copying 2 files to C:\MavenTest

    BUILD SUCCESSFUL

    Total time: 33 seconds

    Finished at: Wed Mar 01 09:26:00 CST 2006

    ?

    Now, you can find that there are two new folders and two files in the maventest folder, these things are created automaticly by maven genapp plugin.

    ?

    And then, you can implement C:\MavenTest>maven java:compile:

    Maven will download needed jar form internet, and when it finishes, it will compile java files in the src folder. And then create a new folder contain class files.

    ?

    build:start:

    java:prepare-filesystem:

    ??? [mkdir] Created dir: C:\MavenTest\target\classes

    ?

    java:compile:

    ??? [echo] Compiling to C:\MavenTest/target/classes

    ??? [echo]

    ==========================================================

    ?

    ? NOTE: Targetting JVM 1.4, classes

    ? will not run on earlier JVMs

    ?

    ==========================================================

    ?

    ??? [javac] Compiling 1 source file to C:\MavenTest\target\classes

    BUILD SUCCESSFUL

    Total time: 2 minutes 48 seconds

    Finished at: Wed Mar 01 09:29:58 CST 2006

    ?

    ?

    ?

    And then, you can implement C:\MavenTest>maven jar:

    Maven will download needed jar form internet, and when it finishes, it will implement jar files in the target folder.

    ?

    ?

    build:start:

    ?

    java:prepare-filesystem:

    ?

    java:compile:

    ??? [echo] Compiling to C:\MavenTest/target/classes

    ??? [echo]

    ==========================================================

    ?

    ? NOTE: Targetting JVM 1.4, classes

    ? will not run on earlier JVMs

    ?

    ==========================================================

    ?

    ?

    java:jar-resources:

    ?

    test:prepare-filesystem:

    ?

    test:test-resources:

    ?

    test:compile:

    ?

    test:test:

    ??? [junit] Running wangxq.AppTest

    ??? [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.125 sec

    BUILD SUCCESSFUL

    Total time: 7 seconds

    Finished at: Wed Mar 01 10:35:05 CST 2006

    ?

    ?

    By the way, we should know that maven find configure parameters start from defaults.properties which is in the maven.jar, open the defaults.properties, modify maven.repo.remote =

    http://apache.linuxforum.net/dist/java-repository,?

    http://dist.codehaus.org ,

    http://mirrors.sunsite.dk/maven,?

    http://public.planetmirror.com/pub/maven ,

    http://www.ibiblio.org/mavenMaven

    These URLs should in the same line; we modify this just because some one cannot download files in the default remote repository----ibiblio.org. And then, we had better modify default location where download jars placed. We create a new folder in the MAVEN_HOME named local, and then,

    Set maven.home.local = ${maven.home}/local.

    ?

    Maybe there will have random code problem in the Chinese environment, so we find org\apache\maven\messages\ messages_zh_CN.properties in the maven.jar, and modify Chinese characters to English characters.

    ?

    ?

    posted on 2006-03-01 11:01 扭轉(zhuǎn)乾坤 閱讀(264) 評論(0)  編輯  收藏 所屬分類: 開源軟件


    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
    <2006年3月>
    2627281234
    567891011
    12131415161718
    19202122232425
    2627282930311
    2345678

    導航

    統(tǒng)計

    常用鏈接

    留言簿(2)

    隨筆分類(31)

    隨筆檔案(30)

    文章分類(32)

    文章檔案(33)

    相冊

    PHP小站-首頁

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲av手机在线观看| 天堂在线免费观看中文版| 国产亚洲精品a在线无码| 好湿好大好紧好爽免费视频| 亚洲国产成人精品女人久久久 | 亚洲偷自拍另类图片二区| 无人影院手机版在线观看免费| 亚洲人成人77777网站不卡| 青青视频观看免费99| 亚洲色大成网站www永久男同| 国产成人免费高清激情视频| 自拍偷区亚洲国内自拍| 四虎影视永久免费观看网址| 在线播放国产不卡免费视频| 国产成人A亚洲精V品无码| 国产精品白浆在线观看免费| 亚洲美女免费视频| 99精品国产免费久久久久久下载| 亚洲中文无码亚洲人成影院| 国产成人免费片在线视频观看| 国产高潮流白浆喷水免费A片 | 亚洲AV中文无码字幕色三| 最好看的中文字幕2019免费| 亚洲中文字幕乱码一区| 亚洲欧洲精品成人久久奇米网| 最近免费中文字幕MV在线视频3| 亚洲精彩视频在线观看| 四虎影院免费视频| 中国一级特黄的片子免费 | 亚洲精品无码Av人在线观看国产| 69视频在线是免费观看| 亚洲欧美日韩自偷自拍| 亚洲综合色视频在线观看| 无码A级毛片免费视频内谢| 亚洲熟妇AV乱码在线观看| 亚洲精品国产福利一二区| 4444www免费看| 337p日本欧洲亚洲大胆人人| 人人狠狠综合久久亚洲88| 无码日韩人妻av一区免费| 国产成人无码精品久久久久免费|