Hi Mauro, Perhaps I can shed some light on these questions:
1) I saw that in the main_module there is not any folder for putting the source code file, but from the manual I read that it is right because it has been created as main project. Is it right? In the case you have described main_module should have no build artifacts associated with it other than a pom file. It is a container rather than anything that produces production, test, or documentation artifacts. It's type should be pom. There should be a section in main_module that tells maven to build the submodules. The other modules (in this case module_1, module_2, and module_3) should produce production, test, or documentation artifacts. Their types might be jar, war, ear, etc. 2) I have defined a package in "module_1" that I would like to re-use in "module_2", but it does not see it. How can I do this? You should add a dependency on module_1 in module_2's pom. Check out the following links for some guidance on multi module projects: http://maven.apache.org/guides/mini/guide-multiple-modules.html http://www.sonatype.com/books/mvnex-book/reference/multimodule.html John Kramer email: [email protected] mobile: 314.435.2370 skype: kramer.mojiva twitter: @KramerKnowsTech <https://twitter.com/KramerKnowsTech> 0xCAFEBABE00000032 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
