maven install
来源:互联网 发布:windows route 编辑:程序博客网 时间:2024/06/01 09:41
Recently, reading the book activeMQ in action.
when I used the souce code of this book at home in my own computer, all are okay, but in computer , the pom.xml of this project show error.
It showed that the josql-1.5 and gentlyweb-utils-1.5 couldn't be found!
Why? Maybe the broker in computer prevent the downloading of these jar files, so I email them from home to my computer.and then unzip
them to the local maven repository.Then in eclipse ,run as maven install, still build error, the same error!
So I think I should manually install them use maven install, and I found the correspond artifactId, groupId,version on the internet in maven
repository,
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-josql</artifactId>
<version>1.5.0</version>
</dependency>
and use mvn install:install-file -DgroupId=org.apache.camel -DartifactId=camel-josql -Dversion=1.5.0 -Dpackaging=jar -Dfile=D:\josql-1.5.jar
and the same way as gentlyweb-utils,but still the same error.
Spending a whole day but not solving it.
The next day, I went to the project directory ,and open cmd, type mvn install, it show errors and also showed some instructions information,like
if you want run right ,please
mvn install:install-file -DgroupId=net.sf.josql -DartifactId=josql -Dversion=1.5 -Dpackaging=jar -Dfile=/jar/file/path
Obviously, the artifactId,version and grouldId is different.
So I run this, and then mvn install,all are okay.
The consultion:
Sometimes, the IDE isn't the best choice,maybe, the raw software can instuct us more detail
- 【Maven】 install:install-file
- maven install
- Maven Install
- maven Install
- maven install 和 maven package
- Install XDoclet into maven
- ubuntu install maven
- Install Maven to Eclipse
- maven run install error
- Eclipse Maven Install
- maven install问题
- mac maven install
- Maven install 出错解决方法
- Maven(1) -- install
- maven install 失败处理
- maven install 失败
- maven install时报错
- linux install maven
- 自定义View解析之自定义View实战(四)
- 动态规划 Problem C
- eclipse如何使用快捷键实现编辑窗口放大还原
- 解决:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- 在linux中 apache 重写失效(各种模块都开了不启作用。 httpd.conf中是否加载其它配置文件
- maven install
- Ubuntu 14.04 邮件服务器配置
- 观光旅游 最短路 floyd
- 吉姆拉尔森计算星期公式
- Robot Framework 自定义library
- id和class
- Javascript值拷贝与引用
- set和map
- 第六周项目四-静态成员应用