关于eclispe创建一个maven project项目,无法启动的问题。

由于创建的maven工程并不是一个java工程,所以eclispe无法运行。 

在工程目录中找到“.project”文件,放入一下内容

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>springcloud-root</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.m2e.core.maven2Builder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.m2e.core.maven2Nature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>

 

posted @ 2020-05-08 15:11  你瞅你胖地  阅读(166)  评论(0)    收藏  举报