Java Web Project referencing another Java project

后端 未结 5 954
故里飘歌
故里飘歌 2020-12-13 22:37

I have a Java Project, for which I\'m now creating a Web interface, using a Dynamic Web Project from Eclipse. The Web project consists of a single

5条回答
  •  有刺的猬
    2020-12-13 22:44

    In Eclipse project properties, add the project to the Java EE Module Dependencies (Eclipse 3.5 or older)

    Java EE Module Dependencies

    or Deployment Assembly (Eclipse 3.6 or newer) entry in the project properties.

    Deployment Assembly

    This way Eclipse will take care about doing the right thing to create a WAR out of this all (it will end in /WEB-INF/lib). No other configuration is necessary, even not some fiddling in Build Path.

提交回复
热议问题