如何在Eclipse(.ear)中向EJB项目添加Normal Java项目功能? [英] How can I add Normal Java project capabilities to EJB project in Eclipse (.ear)?

查看:75
本文介绍了如何在Eclipse(.ear)中向EJB项目添加Normal Java项目功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚开始使用EJB(已经开发的项目).

Just started working with EJB (already developed project).

从git导入项目并将其转换为Maven项目.但是,该项目看起来像普通的文件夹结构,与常规的Java项目不同.这些文件旁边没有任何Eclipse Java功能.尽管它们是Java文件,但对我来说,它们看起来像是类文件,带有不同的符号(可以在图像中看到).

Imported the project from git and converted it to Maven project. However the project looks like a normal folder structure unlike regular java project. I cannot have any eclipse Java capabilities in side those files. Though they are Java files they look like class files to me with different symbol (can see that in image).

除非我做过maven build,否则它不会编译.即使存在编译错误,Eclipse也不显示这些文件的任何错误.

It won't compile unless I do maven build. Eclipse not showing any errors for those files even there are compile errors.

每次Maven都会浪费时间及其烦人的时间.

Running each time maven kills time and its irritating too.

任何帮助将不胜感激.如何使具有eclipse编译器功能的普通Java项目.

Any help will be greatly appreciated. How to make that a normal Java project with eclipse compiler capabilities.

要实现此目的,我必须做哪些配置?

What configuration I have to do achieve this ?

推荐答案

尝试从项目的根文件夹中运行命令 mvn eclipse:eclipse .它将创建eclipse配置文件,然后可以在Eclipse中导入项目.

Try running the command mvn eclipse:eclipse from the root folder of the project. It will create eclipse configuration files after which the project can be imported in Eclipse.

这篇关于如何在Eclipse(.ear)中向EJB项目添加Normal Java项目功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆