1

I have a pom.xml with the following entry

<dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>3.1.0.RELEASE</version>
        </dependency>

And on maven install the jar is added to the maven repository and is also listed in the maven dependencies library.

But I am not able to import any of the classes from the added jar 'spring-web-3.1.0.RELEASE.jar' for the particular entry, though it shows in the classpath

The error - in eclipse "cannot be resolved to a type"

environment - maven 3.1 and Spring tool suite

Thanks

4

1 回答 1

1

已解决 - 通过其他论坛找到解决方案

存储库中的 jar 已损坏。

清除物理驱动器中的 .m2 文件夹并重复 maven 全新安装后工作。

感谢@techidiot @jtravaglini 的时间。

于 2013-08-17T06:46:12.673 回答