Java – why does m2eclipse complain about missing artifacts when the MVN command line is not available?

I have just set up a new installation of eclipse Helios and have configured m2eclipse to use Maven's external (V 2.2.1) installation

The system compiles well on the command line, but there are errors in several project modules from m2eclipse:

Missing artifact javax jms:jms:jar:1.1:test

I can resolve the error by excluding JMS artifacts from atomikos dependencies But my main question is how the two provide different results!

What's more strange is that I have another eclipse Helios installation, and everything is normal

Solution

The dependency parser in m2eclipse does not use external Maven installation, it must use embedded Maven version Therefore, I recommend getting the latest version of m2eclipse and Maven 3 X version to minimize the difference in dependency resolution

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>