使用eclipse调试git java maven项目

来源:互联网 发布:广州广大淘宝培训 编辑:程序博客网 时间:2024/05/17 06:51
(1):File -> Import -> Git -> Projects From Git > URI -> git repority
(2):Import as general project
(3):Notice the imported data is no valid Eclipse project (no build path available)
(4):Open the .project xml file in the project folder in Eclipse
(5):Go to source tab
(6):Search for <natures></natures> and change it to 
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures> and save the file
(7):Right click the src folder, go to Build Path... and click Use as Source Folder
(8):If you still have troubles running the project (something like "main class not found"), 
make sure the <buildSpec> inside the .project file is set
(9):
<buildSpec>
    <buildCommand>
        <name>org.eclipse.jdt.core.javabuilder</name>
        <arguments>
        </arguments>
    </buildCommand>
</buildSpec>
(10) project -> configure -> Convert to maven project
0 0