Home  >  Q&A  >  body text

java,idea,maven的三个使用问题

1.我使用的jdk是1.7,但是我的maven项目无论如何都会对@Override报错:

我设置了project level和preference中的complie level都没有用,maven的配置文件什么都没有写。。这种情况该怎么处理?配置如下:


2.为什么我的idea一创建或者打开项目就会提示这个。。。该怎么处理?

拜托大家了

ringa_leeringa_lee2761 days ago339

reply all(4)I'll reply

  • 迷茫

    迷茫2017-04-18 10:36:03

    Git is detected, but the root folder of Git is not told to Idea. This should be the problem. As for the error reported by Override, take a look at what error is reported.

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:36:03

    Overwrite error is usually caused by the following rewriting error

    reply
    0
  • 阿神

    阿神2017-04-18 10:36:03

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
            <source>1.7</source>
            <target>1.7</target>
        </configuration>
    </plugin>

    Try using the Maven compile pluginspecified version.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:36:03

    Set the maven compilation version. Otherwise, your maven compiled version will be changed to 1.5 every time

    Reference:
    http://blog.csdn.net/high2011...

    reply
    0
  • Cancelreply