title: Maven java project in eclipse doesn't see classes in same package
body: <p>I've just started using maven for trying to build a multi module project.</p>
  
  <p>Everything would be fine other than 2 small problems.</p>
  
  <p>Using the eclipse wizard to create a new maven project of 'simple J2EE' archetype fails due to a bug in eclipse whereby when looking for archetypes it ignores the proxy setting (https://bugs.eclipse.org/bugs/show_bug.cgi?id=348893)</p>
  
  <p>solution is to create my project on the command line and then copy the resulting file structure into a 'simple maven' project inside my workspace - the import project fails also!</p>
  
  <p>My real issue however is the following</p>
  
  <p>When I click on the project folder and 'create a new java class' it puts the class in the wrong place, according to where it should be in the maven architecture (am I selecting the wrong option?). So I move it.</p>
  
  <p>so now I create a second class, that has the first class as a member. Both classes are obviously inside the same package namespace. But I can't see any of the methods of the member class from my second.</p>
  
  <p>I'm guessing I'm doing something wrong in my POM or in my structure.</p>
  
  <p>But I don't know what and don't know what info you may need to help me resolve it.</p>
  
  <p>For now I have reverted to creating my sub module as a separate package in eclipse, using ANT and the various eclipse tools to point to the required libraries etc. then when I've done testing I convert the project into a 'maven' project. My parent POM and child POM all validate OK from within eclipse after I have done this. But again if I decide to extend the functionality and add in a new class to my module the class file ends up in the wrong place and I can't see my other classes from it (or this new class from them).</p>
  
  <p>Please help. I like the idea of Maven and using it to control my dependencies, by the way things are going I'm going to head over to ANT, and maybe learn IVY for dependency control (although I'm a bit muffed to have gone to all the struggle of getting maven to function only to throw it out!)</p>
  
  <p>Should I stick to ANT / IVY and forget maven, but keep up the maven directory structure for the future?</p>
  
  <p>Edit.</p>
  
  <p>So I may have missed something... I just tried again creating a simple maven project in eclipse, this time I didn't select an archetype.
  I has put my new 'module' underneath the parent folder. This isn't what I have been doing, I've created a numer of external modules at the same level as my parent. I notice from the effective POM in the parent (with my test module) it has a section  and  and other tags. Will I solve my problem by adding this into my individual module POM's ? </p>