I recently started working with this java development team. They use maven and svn to manage all their code, and I have no real experience with maven, so I try to play catch-up. From what I saw, if you are going to change one of your projects, you check it with svn and then mess with dependencies in pom.xml for 20 minutes, then you can build it using mvn install or something yet. We have an internal repository, and all projects have many dependencies for the code in the repository, so I was practically stuck using maven to build every time. Creating an eclipse project from maven does not work due to dependencies.
What really upsets me is that there seems to be no good way to run the code or debug it. Maven creates jar files that can only be executed by maven, because the manifest.mf file does not have the correct path to the main function, etc. Java-jar will not work on them.
As for debugging, I spent most of today's day at Google trying to figure out how to use eclipse to navigate through my code, but apparently this just can't be done. I tried to configure remote debugging using the surefire plugin, but you need to write unit tests for this or something that is too complicated for my purposes. In my previous java experience, we used svn, ant and eclipse, which were much simpler.
Anyway, can anyone with more experience give me some development tips using maven as a build tool? Asking my staff was generally useless. I feel that maven is probably a great tool that I just don’t know anything about, and I just can’t do anything without executing and debugging my code.
source share