Unable to “Run on Server” a webapp from Eclipse

后端 未结 15 1608
悲哀的现实
悲哀的现实 2021-01-30 11:20

When running my WebApp project from Eclipse most of times it run correctly. But if by mistake to stop server, I kill it in \"Console\" view on instead of \"Stop\" Server from \"

15条回答
  •  自闭症患者
    2021-01-30 11:45

    Dont do those crazy cosmic workarounds !!

    This works fine:

    Add to your ".project" file (hidden) these lines:

     
        org.eclipse.jem.workbench.JavaEMFNature
        org.eclipse.wst.common.modulecore.ModuleCoreNature
        org.eclipse.jdt.core.javanature
        org.eclipse.m2e.core.maven2Nature
        org.eclipse.wst.common.project.facet.core.nature
        org.eclipse.wst.jsdt.core.jsNature
      
    

    Enjoy !

    Why? if you check that unexisting directory, well, that "../.metadata/blah/blah/tmp0/wtpwebapps/YOURPROJECT/" is EMPTY: then your build aint creating the WAR... !!! Because maven plugin isnt understanding HE HAVE TO !

    I found this after comparing two .project files from both different deploying/non-deploying projects...

    Hope helped !

提交回复
热议问题