大漠駝鈴

          置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
          Java,Php,Shell,Python,服務(wù)器運維,大數(shù)據(jù),SEO, 網(wǎng)站開發(fā)、運維,云服務(wù)技術(shù)支持,IM服務(wù)供應(yīng)商, FreeSwitch搭建,技術(shù)支持等. 技術(shù)討論QQ群:428622099
          隨筆 - 238, 文章 - 3, 評論 - 117, 引用 - 0
          數(shù)據(jù)加載中……

          MAVEN命令不斷完善中。。。

          MAVEN命令
          http://www.mvnrepository.com  #中央倉庫

          mvn eclipse:eclipse  #生成eclipse配置文件
          mvn clean package #打包項目
          mvn clean install #安裝成本地庫
          mvn clean install -DoutputDirectory=lib -Dsilent=true -Pmodules
          mvn clean install -Pmodules #安裝指定的模塊到本地倉庫
          mvn jetty:run #運行jetty
          mvn tomcat7:run #運行tomcat




          mvn compile #編譯
          mvn test #運行測試




          下載源碼和文檔
          mvn -DdownloadJavadocs=true eclipse:eclipse
          mvn -DdownloadSources=true eclipse:eclipse
          mvn archetype:generate -DgroupId=cn.ourwill.maven -DartifactId=hello-world -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false   #mvn 創(chuàng)建項目

          mvn install -Dmaven.test.skip=true#不執(zhí)行測試




          環(huán)境分離
          <profiles>
                  <profile>
                      <id>mine</id>
                      <activation>
                          <activeByDefault>true</activeByDefault>
                      </activation>
                      <build>
                          <filters>
                              <filter>src/main/filters/filter-mine.properties</filter>
                          </filters>
                      </build>
                  </profile>
                  <profile>
                      <id>test</id>
                      <activation>
                          <activeByDefault>false</activeByDefault>
                      </activation>
                      <build>
                          <filters>
                              <filter>src/main/filters/filter-test.properties</filter>
                          </filters>
                      </build>
                  </profile>
                  <profile>
                      <id>release</id>
                      <activation>
                          <activeByDefault>false</activeByDefault>
                      </activation>
                      <build>
                          <filters>
                              <filter>src/main/filters/filter-release.properties</filter>
                          </filters>
                      </build>
                  </profile>
              </profiles>

          mvn install -Denvironment.type=prod  #使用不同的環(huán)境,生產(chǎn)環(huán)境,開發(fā)環(huán)境,測試環(huán)境  

          mvn install:install-file -Dfile=Sample.jar -DgroupId=uniquesample -DartifactId=sample_jar -Dversion=2.1.3b2 -Dpackaging=jar -DgeneratePom=true  #安裝到本地

          mvn dependency:tree #依賴樹
          mvn dependencies: copy-dependency #復(fù)制依賴的jar包



          生成java-doc
          mvn javadoc:javadoc
          mvn javadoc:jar
          mvn javadoc:aggregate
          mvn javadoc:aggregate-jar
          mvn javadoc:test-javadoc
          mvn javadoc:test-jar
          mvn javadoc:test-aggregate
          mvn javadoc:test-aggregate-jar



          生成jar
          mvn jar:jar
          mvn jar:test-jar



          說明文檔
          1. mvn help:describe -Dplugin=eclipse -Dfull > eclipse-help.txt
          2. mvn help:describe -Dplugin=help -Dfull > help-help.txt
          3. mvn help:describe -Dplugin=dependency -Dfull > dependency-help.txt
          4. mvn help:describe -Dcmd=compiler:compile –Ddetail
          5. mvn help:describe -Dplugin=org.apache.maven.plugins:maven-compiler-plugin

          GRADLE命令

          posted on 2016-02-15 17:13 草原上的駱駝 閱讀(1159) 評論(0)  編輯  收藏 所屬分類: JAVA框架

          主站蜘蛛池模板: 庐江县| 龙海市| 留坝县| 崇义县| 孝义市| 镇宁| 岳阳市| 夏津县| 望谟县| 家居| 洛宁县| 荔波县| 卓尼县| 托克逊县| 白山市| 宽城| 晋城| 甘泉县| 东安县| 卓资县| 武义县| 渭源县| 察雅县| 诏安县| 江城| 连州市| 扎赉特旗| 南宁市| 康乐县| 高邮市| 石门县| 永登县| 牙克石市| 永州市| 盈江县| 略阳县| 马公市| 中宁县| 台东市| 鄂尔多斯市| 噶尔县|