Source folders for a maven project in eclipse

Posted by 4NDR01D3 on Stack Overflow See other posts from Stack Overflow or by 4NDR01D3
Published on 2010-05-26T15:02:13Z Indexed on 2010/05/26 16:11 UTC
Read the original article Hit count: 195

Filed under:
|
|

Hello all,

I have a that uses maven... and I want to put it in my working environment with eclipse(Galileo)... the project is in a svn server, and I can create check out the project and everything looks OK. I even can run the unit test and everything is working there. However, now that everything is there I wanted to work in the code, and oh surprise there are no packages in my project... I mean all the source code is in the src folder and browsing through it i can see all my files, ut if I open the files from there, the files are opened as text files with no coloring, but worst no help at all about errors in compilation.

I don't know what im I doing wrong now, because I had the same project in other machine and it was working well.

So here is what I did, please let me know if you notice if I did something wrong, miss any steps or anything that can help me:

  1. In the SVN Repository (Using subclipse 1.6.10) I added my SVN Repository
  2. Browsed to the folder where I have the pom file
  3. Right Click> Check out as a Maven project...(Using m2eclipse 0.10.020100209)
  4. Used the default options and finish.
  5. The projects were created with no problem. I said projects because this maven project has modules, and each module became a project in eclipse.
  6. Back in the java perspective, Right click in the project, Run as > maven test(Using JWebUnitTest, because I am testing a servlet)
  7. BUILD SUCCESS!!

But as I said there is not packages so I can't really develop in this environment.

Any help??

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse