Re: eclipse:eclipse maven 3.0.1 not adding dependency
On Fri, Feb 18, 2011 at 2:54 AM, Mathias Nilsson < wicket.program...@gmail.com> wrote: > > Ok I will try to explain in more detail and hope someone can help me. > > I have 2 dependencies to projects build by me. When clicking properties in > eclipse these projects show up in the java build path/projects. In the > libraries tab all other dependencies is present. > > When trying to run the project only one of the depending project is found. > Again classpath. When you say "run" are you running it inside eclipse, or running it inside a web container. As I can't understand how Eclipse java build path/projects is correct but then fails to run inside eclipse. Eclipse only has one concept of the classpath.
Re: eclipse:eclipse maven 3.0.1 not adding dependency
On Thu, Feb 17, 2011 at 5:14 PM, Mathias Nilsson < wicket.program...@gmail.com> wrote: > > My problem now is that even if I have added my project as reference Spring > won´t recognize my beans. Is there a change with this for 2x and 3x? Why > isn't my project added as a var as it always has on the pc? > > This sounds like a classpath isuse. Have you enabled Spring debugging? This will show you which spring config files are being loaded and where the beans are. It should be obvious where the problem is.
Re: eclipse:eclipse maven 3.0.1 not adding dependency
Ok I will try to explain in more detail and hope someone can help me. I have 2 dependencies to projects build by me. When clicking properties in eclipse these projects show up in the java build path/projects. In the libraries tab all other dependencies is present. When trying to run the project only one of the depending project is found. -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3389730.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse maven 3.0.1 not adding dependency
My problem now is that even if I have added my project as reference Spring won´t recognize my beans. Is there a change with this for 2x and 3x? Why isn't my project added as a var as it always has on the pc? -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3388969.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse maven 3.0.1 not adding dependency
On Wed, Feb 16, 2011 at 2:44 AM, Mathias Nilsson < wicket.program...@gmail.com> wrote: > > I still can't build my applications. My dependency to my own project is not > included! It will be included if I build it to repository and delete it > from > eclipse! > Did you follow my original advice? Stop trying to get mvn eclipse:eclipse to work. Create a fresh workspace and then manually configure your eclipse projects so that they are working. Once they are working you can then compare the working copy with the broken mvn eclipse:eclipse copy. You need to look at .project and .classpath files.
Re: eclipse:eclipse maven 3.0.1 not adding dependency
On Tue, Feb 8, 2011 at 8:13 PM, Mathias Nilsson wrote: > > Hi again, > > I have fixed this now but it didn't help with just mvn clean:clean install > to get it in the local repository. I also needed to mvn eclipse:eclipse on > all referencing projects to get it to work. This was not necessary when > working on the pc. > When you say "I have fixed this", it is very important to specify *how* you fixed this. This is needed so that others facing the same problem can use your knowledge to fix their problems. I note in other emails later that you are still having problems. Therefore it's may also be possible that your fix is not correct, but since I don't know what you did I can't help.
Re: eclipse:eclipse maven 3.0.1 not adding dependency
I still can't build my applications. My dependency to my own project is not included! It will be included if I build it to repository and delete it from eclipse! -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3386192.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse maven 3.0.1 not adding dependency
When looking in .classpath this is the differens why is my own maven project added as src? -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3376109.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse maven 3.0.1 not adding dependency
Ok, thought this was fixed but when running tomcat inside eclipse the jar file is not found -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3376077.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse maven 3.0.1 not adding dependency
Hi again, I have fixed this now but it didn't help with just mvn clean:clean install to get it in the local repository. I also needed to mvn eclipse:eclipse on all referencing projects to get it to work. This was not necessary when working on the pc. Thanks for your help. -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3375620.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse maven 3.0.1 not adding dependency
Hi, I have got this to work on my pc before but I´m now using mac. Never have problem with any version of maven. When in eclipse I can see my projects that is defined in the pow file. All external is under the library tab and my two own is under the project tab. But Eclipse still complains that it doesn't find one of my project. -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3375510.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse maven 3.0.1 not adding dependency
On Thu, Jan 6, 2011 at 11:52 PM, Mathias Nilsson 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
eclipse:eclipse maven 3.0.1 not adding dependency
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? -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3330388.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org