On Thu, Jan 6, 2011 at 11:52 PM, Mathias Nilsson <[email protected]> wrote: > > Hi, > > I have dependencies to my own projects and they are not added in the library > eclipse( helios mac ) but only as /path in the .classpath. I have to remove > my projects in eclipse and after that the project is added in library. Any > clues?
I'm using Helios (PC), I'm not sure I understand what you are saying. I dont know what you mean by "library". >From a correctly working project, if you open the project's properties (right click on the project in the package explorer > Properties) and then select "Java Build Path" you will see that there are four tabs available: Source, Projects, Libraries, Order and Export. If you want to have your projects depend upon other projects already in eclipse then you need to use the "Projects" tab and ensure that they are listed correctly. (This is the preferred approach since it means you can work in Eclipse most of the time and only rarely do you need to use maven at a shell command) If you want to have your projects depend upon your ~/.m2/repository versions then you need to use the "Libraries" tab and ensure they are listed correctly. (This is not recommended as it means you need to run "mvn install" every time you make a change in a dependent project in order to see the changes in a project that depends upon it) By default useProjectReferences=true (http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html) so eclipse:eclipse will make sure that the "Projects" tab is set correctly. Have you previously had eclipse:eclipse work? Did you try with maven 2.1? Have you read http://maven.apache.org/plugins/maven-eclipse-plugin/reactor.html and the bit about "Note, you have to delete the .project-file of your parent project before. " If you don't delete the parent's .project file, when you attempt to import the projects Eclipse will present an empty list. Once you delete the .project file, and then import, Eclipse will show you all the projects that eclipse:eclipse has configured. Hope some of this helps, if you solve the problem don't forget to post back the solution so that others can find it in the archives. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
