开发者

In NetBeans, how do I convert a "Java Application" Project to a "Web Application" Project?

In NetBeans, how do I con开发者_如何学Cvert a "Java Application" Project to a "Web Application" Project?


If it is Maven project, try adding this line to your POM file:

<packaging>war</packaging>

I've just added it and it changed from java app (red coffee icon) to web app (blue globe icon; if that is what you mean) automatically.


As far as i know there is no direct convert option.

In the past what I've done is either added the "Java Applicaton" as a dependency in a new web application or created a new web application and moved the code over.


I had the same problem coming up; Try this utility:

erichauser.net/2009/10/26/ant2maven-easy-migration-from-ant-to-maven-with-nexus


Try delete the NetBeans Project configuration files and create a Web Application with existing sources.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜