开发者

Does Maven eliminate IDE dependency?

If our group uses Maven, will it promote IDE independence?

NetBeans generates a lot of project files that Eclipse doesn't use - if a developer creates something 开发者_JS百科with NetBeans and Maven, can this project be directly ported to Eclipse using Maven?


If you've your pom.xml you can generate an Eclipse project with

mvn eclipse:eclipse

In general with Eclipse, I avoid committing any eclipse-specific artifacts to the source code repository, they are in my ignore file (in my case with Git, in .gitignore).

UPDATE: As for the comment regarding m2eclipse, then you can you can install m2eclipse plugin with Help -> Eclipse Marketplace. After installing it you can import the project from Eclipse with File > Import... > Maven > Existing Maven Projects.


Basically yes. You'll create one pom file and have all your source code, then you'll use different maven plugins to generate the project property files for each IDE. For eclipse the command is mvn eclipse:eclipse same stands for flexbuilder and intelliJ I'm sure others as well.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜