maven会根据pom.xml去下载jar到仓库,仓库没有jar,说明你项目的pom.xml没有配置,或者仓库配置的下载地址不对吧[/quote]
解决啦!谢谢,但是新建maven的时候pom.xml报错,用了java ee tools 生成web.xml也不行。而且pom打开后也不是xml文件,而是个网页一样的东西,报错如下:Failure to transfer org.apache.maven:maven-parent:pom:9 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-parent:pom:9 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.