maven install

         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




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值