我项目导入之后,pom.xml有红叉,找不到jar包,但是我本地仓库有这个jar包,不知道为什么找不到,点了clean 又 maven--》update project还是报错
到底怎么回事,求教
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>parent</artifactId>
<groupId>com.auchan</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>com.auchan.web</groupId>
<artifactId>web</artifactId>
<packaging>war</packaging>
<version>1.0.0-SNAPSHOT</version>
<name>${project.artifactId} v${project.version}</name>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<!--inner project dependency start -->
<dependency>
<groupId>com.auchan.service</groupId>
<artifactId>service</artifactId>
<version>${training.version}</version>
<exclusions>
<exclusion>
<artifactId>commons-fileupload</artifactId>
<groupId>commons-fileupload</groupId>
</exclusion>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.auchan.engine</groupId>
<artifactId>engine</artifactId>
<version>${training.version}</version>
</dependency>
<!--inner project dependency end -->
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewrite</artifactId>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-util</artifactId>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jsp-2.1</artifactId>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jsp-api-2.1</artifactId>
</dependency>
<!--generate validate code denpendency -->
<dependency>
<groupId>com.googlecode</groupId>
<artifactId>kaptcha</artifactId>
</dependency>
</dependencies>
</project>
pom文件的错误,你贴一下
少发一张你把jdk变成自己的版本
右击项目找到properties-->
你看一下你有木有把你的maven包加载上
你看一下是不是改成1.7的JDK之后,编译级别没有改过来:
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。