> Except that then Maven complains it cannot find the repository that it is > in.
If you haven't run "mvn install" from the common-module, then the jar does not exist (as far as Maven is concerned) when you build in the service-module. > So, I had to flatten my Eclipse projects because I am using IBM Rational > Team Concert for SCM and it does not yet support nested projects the way I am not a fan of "flat" multimodule projects and don't use them. I know that things generally work OK with them but I would not be surprised if you run into issues. > When I tried running from the parent Maven threw a NullPointerException. I > found an article somewhere where other people had this same problem. There > was some advice there, but I have not got back to researching it further. > Maybe I just need to configure the parent POM properly? This is a problem you MUST RESOLVE first and foremost. None of the rest of this will work until you get this fixed. If you can't build from the parent, then the reactor cannot find the common-module artifact to use when it is building service-module. Thus, you will get the problems you keep complaining about. Fix this first! > OK, that makes sense - I will try that after my system backup finishes. Did you run "mvn install" or not? > "Versioned artifacts are immutable in Maven." That sounds serious? Can I > take that to mean that you typically version a project after it has been > released because you are never going to change it again? If you changed it > then it would be another version wouldn't it? Yes, that's exactly the point. A versioned artifact can never change. If you have changes to make to an artifact, they must be made in a new version of that artifact. Never fall into the trap of just making some tweaks to a jar file and leaving it with the same version. > As it is, I don't even know how to change the version yet. The release plugin can help when you get to that point. But I don't know how well it handles flat multimodule projects like yours. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
