[英]Generating classes in eclipse Maven project
I have an existing project and I have imported it to a maven project in Eclipse Juno. 我有一个现有项目,并将其导入到Eclipse Juno中的maven项目中。
The classes are to be generated into the folder target->classes by default settings 默认情况下,这些类将生成到文件夹target-> classes中
But i see the java files in there and not the class files. 但我看到那里的Java文件,而不是类文件。 Sounds weird to me.
对我来说听起来很奇怪。 I tried to build the project, try creating new project.
我尝试构建项目,尝试创建新项目。 Doesn't seem to work.
似乎不起作用。 If its a normal project, it does generate the classes.
如果是正常项目,它将生成类。
Anyone faced this problem before? 有人遇到过这个问题吗? Your inputs on this is highly appreciated.
非常感谢您对此的投入。
Thanks, Reema 谢谢,瑞玛
Just realized that I have added java files under the src/main/resources directory and not the src/main/java directory. 刚刚意识到我已经在src / main / resources目录下添加了Java文件,而不是在src / main / java目录下添加了Java文件。 Moving the files to java directory solved the issue.
将文件移动到java目录解决了该问题。
Thanks all for the inputs. 感谢大家的投入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.