隨筆-7  評論-3  文章-0  trackbacks-0
              使用Maven開發dashboard,發現report.jar不是用Maven開發的,怎么用Maven依賴report.jar呢?

          命令如下:
          mvn install:install-file -DgroupId=<your_group_name> -DartifactId=<your_artifact_name> -Dversion=<snapshot> -Dfile=<path_to_your_jar_file> -Dpackaging=jar -DgeneratePom=true


          示例:
          mvn install:install-file -DgroupId=com.bupt.liutong -DartifactId=report -Dversion=1.0 -Dfile=e:/report.jar -Dpackaging=jar -DgeneratePom=true


          執行成功后,
          在pom.xml文件中添加:
          <dependency>
              
          <groupId>com.bupt.liutong</groupId>
              
          <artifactId>report</artifactId>
              
          <version>1.0</version>
          </dependency>


          專注于Java,數據庫性能,Web Server負載,數據挖掘,機器學習等方向
          posted on 2011-09-14 13:05 柳桐 閱讀(2005) 評論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 京山县| 遂平县| 城固县| 象州县| 都江堰市| 叶城县| 井研县| 金溪县| 普安县| 襄汾县| 江油市| 温宿县| 侯马市| 江山市| 夏邑县| 连山| 鄂托克旗| 宜丰县| 慈利县| 南雄市| 江津市| 江口县| 衡阳市| 临沂市| 通州市| 连城县| 句容市| 黄大仙区| 孟村| 安顺市| 邵阳市| 浑源县| 红河县| 河曲县| 武陟县| 乐至县| 班玛县| 五常市| 岳西县| 濮阳县| 海丰县|