大漠駝鈴

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

          MVN 報錯

          [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>

          就會引起上面的錯誤,改成如下的寫法即可

                  <dependency>

              <groupId>log4j</groupId>

              <artifactId>log4j</artifactId>

              <version>[1.2,)</version>

          </dependency>



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

          主站蜘蛛池模板: 晋中市| 古蔺县| 澄江县| 盐城市| 资溪县| 祥云县| 饶阳县| 开平市| 磴口县| 宿迁市| 余干县| 大方县| 日土县| 青海省| 思茅市| 华坪县| 翁源县| 南通市| 太保市| 江津市| 宁乡县| 文水县| 祁连县| 利川市| 宁晋县| 南投市| 祁阳县| 遵化市| 赫章县| 吉林市| 汝南县| 景宁| 襄汾县| 来宾市| 车险| 顺平县| 望江县| 蒙城县| 临澧县| 辰溪县| 永顺县|