开发者

multi-product project layout with svn and maven

I need to migrate a project from Ant to Maven.

This project has multiple proprietary packages (lets say, stacked in 3/4 layers. some of the layers share the same svn repo).

Also, it's using ~30 3rd party packages (which are currently manages with svn:externals).

On top of that, there are ~10 different "products" (different packagings of the packages above + some i18n + some .properties + launch4j and such).

What would be the classic layout of such an environment wrt. Maven modules and svn reops?

We plan to branch frequently across packages.

thanks, asaf :-)

开发者_如何转开发

A simplified outline of the project (and each of it's branches, if changes are required in several packages and products):

+ 3rd party
  + log4j
    - log4j.jar
  + junit
    - junit.jar
  ...

+ that-package
  + src
  + bin
  + lib
    - log4j.jar

+ this-package
  + src
  + bin
  + lib
    - that-package.jar

+ product A
  + resources
  + launcher
  + lib
    - this-package.jar
    - that-package.jar

+ product B
  + resources
  + launcher
  + lib
    - this-package.jar
    - that-package.jar
    - 3rd-party.jar  


I'm not sure this is exactly what you're asking for but have a look at:

  • How to Migrate from Ant to Maven: Project Structure

Also check this previous answer:

  • Maven parent pom vs modules pom
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜