大漠驼铃

置身浩瀚的沙漠,方向最为重要,希望此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 草原上的骆驼 阅读(805) 评论(0)  编辑  收藏 所属分类: 项目管理


只有注册用户登录后才能发表评论。


网站导航: