Create a system that allows you to share modules among different binary files

I am trying to choose the most suitable build system for working in an enterprise with a common source repository, emphasizing the sharing of common code. I would like the original hierarchy to look something like this:

 - src
   - java
     - common
       - net
       - database
     - team1
     - team2
     - team3
       - lib
 - tests
   - java
     - common
       - net
       - database
     - team1
     - team2
     - team3
       - lib

The goal is to have an assembly system in which the team [1-3] can have independent assemblies that explicitly define their dependencies. Dependencies may look like this:

 - team1
   - common / net
   - team3 / lib
 - team2
   - common / database
 - team3

, , team1 1, common/net team3/lib; . ( 1 team1, common/net team3/lib).

Ant, . Maven 2 , , , , . , , , , Java. , , , buildr, , .

- -, ?

+3
6

, .

  • , .
  • .
  • .

Maven , , . , . , .

, , Java? , .

, , . , , , Nexus Artifactory, . , , , , SNAPSHOT RELEASE , .

-, , IDE Maven. , - Rational Application Developer 7.0.x IDE - , Eclipse 3.4, M2Eclipse. M2Eclipse , . Netbeans 6.7 6.8 Maven.

+2

, Maven 2 . Maven - ​​, . , , , .

, , , , .

0

Ant, .

, Ant (+ Ivy?) .

Maven 2 , , , .

pom.xml , .

, , , , Java.

, Maven , . () , , ( ). , , , Maven, , , , ( , ).

, , , Java. -, Maven Java, . -, , ( ) . , , ...

, , , buildr, , , .

, buildr , , , . , Ant , , buildr .

, buildr Ant + Ivy Maven. , .

Maven . , .

0

Maven 2 , , , .

. , Maven :

project
    module-1
        src
            main
                ....
            test
                ....
        pom.xml
    module-2
        src
            main
                ....
            test
                ....
        pom.xml
    ...
    pom.xml

pom.xml , . BTW, Eclipse maven , .

0

, ... , , , . Maven2 .

0

Buildr. .

, , . base_dir .

0

Source: https://habr.com/ru/post/1725581/


All Articles