maven-archetype-webapp eclipse problem

后端 未结 17 1724
囚心锁ツ
囚心锁ツ 2020-11-29 20:49

I\'m trying to create a very simple webapp with maven and eclipse, but I\'m having no joy at all, in fact the reverse of joy.

I go to File -> New Project, select Mav

17条回答
  •  时光说笑
    2020-11-29 21:16

    a webapp structure gets generated but with no 'java' directory under main

    Create src/main/java on your own.

    furthermore, there seems to be no compilation of it by java. I can make stupid errors and no syntax highlighting comes up. It's like java isn't recognizing it.

    after creating appropriate dir structure execute the maven command

    mvn eclipse:eclipse 
    

    then refresh the project in eclipse.

    -SE

提交回复
热议问题