开发者

Setting up maven project structure with several components

开发者 https://www.devze.com 2023-02-20 23:35 出处:网络
a question: I have three maven projects that should make up one war file. The three projects are: simple-domain

a question: I have three maven projects that should make up one war file. The three projects are:

simple-domain simple-weather simple-webapp

where simple is the parent pom. I've tried a multi module project under eclipse but I had to add relative paths to the parent project. Can someone provide me a simple set of poms or examples that would help me achieve the following:

build all projects by running maven install on the parent, run each of the three sub projects by themselve ( so it should find the parent ) and avoid using relative paths.

the latter is impo开发者_StackOverflow社区rtant as I will deploy the projects to a hudson server where each project is a job where the relative paths might differ

kind regards,

Michael


You should use the standard Maven directory structure simple simple-domain simple-weather simple-webapp

Then remove any relative path and use m2eclipse to handle everything in Eclipse.

Also, set up one job for simple, not one for every module. Hudson handles multiple modules well.

0

精彩评论

暂无评论...
验证码 换一张
取 消