大漠駝鈴

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

          MVN 報(bào)錯(cuò)

          [INFO] ------------------------------------------------------------------------

          [ERROR] BUILD ERROR

          [INFO] ------------------------------------------------------------------------

          [INFO] Failed to resolve artifact.



          Missing:

          ----------

          1) javax.jms:jms:jar:1.1



          Try downloading the file manually from:

          http://java.sun.com/products/jms/docs.html



          Then, install it using the command:

          mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file



          Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]



          Path to dependency:

          1) example.helloworld:WicketHelloWorld:war:0.0.1-SNAPSHOT

          2) log4j:log4j:jar:1.2.15

          3) javax.jms:jms:jar:1.1



          2) com.sun.jdmk:jmxtools:jar:1.2.1



          Try downloading the file manually from:

          http://java.sun.com/products/JavaManagement/download.html



          Then, install it using the command:

          mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file



          Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor

          yId=[id]



          Path to dependency:

          1) example.helloworld:WicketHelloWorld:war:0.0.1-SNAPSHOT

          2) log4j:log4j:jar:1.2.15

          3) com.sun.jdmk:jmxtools:jar:1.2.1



          3) com.sun.jmx:jmxri:jar:1.2.1



          Try downloading the file manually from the project website.



          Then, install it using the command:

          mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file



          Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=

          [id]



          Path to dependency:

          1) example.helloworld:WicketHelloWorld:war:0.0.1-SNAPSHOT

          2) log4j:log4j:jar:1.2.15

          3) com.sun.jmx:jmxri:jar:1.2.1



          ----------

          3 required artifacts are missing.



          這一般是由log4j的版本問題引起的,我之前的配置如下:

                  <dependency>

              <groupId>log4j</groupId>

              <artifactId>log4j</artifactId>

              <version>1.2.5</version>

          </dependency>

          就會(huì)引起上面的錯(cuò)誤,改成如下的寫法即可

                  <dependency>

              <groupId>log4j</groupId>

              <artifactId>log4j</artifactId>

              <version>[1.2,)</version>

          </dependency>



          posted on 2009-02-12 21:04 草原上的駱駝 閱讀(810) 評(píng)論(0)  編輯  收藏 所屬分類: 項(xiàng)目管理

          主站蜘蛛池模板: 桓仁| 鹿邑县| 同德县| 六枝特区| 赣州市| 肥乡县| 桃园市| 琼中| 奉化市| 嘉定区| 达孜县| 海盐县| 绵竹市| 涿州市| 宜兴市| 永泰县| 玉溪市| 晋州市| 峨山| 克拉玛依市| 古蔺县| 广德县| 荆州市| 乐清市| 江达县| 沙湾县| 浪卡子县| 胶州市| 同仁县| 安宁市| 克拉玛依市| 盘山县| 玉门市| 会同县| 河间市| 五莲县| 河北省| 乌拉特前旗| 阿克陶县| 公主岭市| 益阳市|