Problem solved!

We use local repository to deploy the modules during development. The other modules that need those other modules as dependencies will take them from the local repository. No need to change the version in POM file while deploying (locally), previously deployed content is replaced by the new one.

Thanks anyway.

Eguzki Astiz Lezaun escribió:
Hello,

In our project, we have two different modules separated into two eclipse projects. We use ant for project compilation, packaging and deployment. Dependency management is achieved using maven inside ant build.xml script.

One of the modules depends on the other, i.e. module B depends on module A. Therefore, in the pom.xml file of module B we set something like:

<dependency>
          <groupId>my.company</groupId>
          <artifactId>moduleA</artifactId>
          <version>1.0.0</version>
          <scope>compile</scope>
</dependency>

When we want module B to use the new features we implemented in module A, we have to change the version of module A in pom.xml file and deploy module A in the local maven repository. After that, when module B calculates dependencies, it takes the newest version of module A. That's ok for production environment, but during development it is unconfortable to work in that way.

We would like to include dependencies of module A in module B with no need to deploy it in the maven repository.

In order to achieve that we would like to include module A's pom file as an "include" in the pom file of module B. That way, module B can compute and gather all the dependencies (needed libraries at runtime) taking into account dependencies of module A. After that, using ant tasks, we could include moduleA.jar file in the classpath of module B.

We are looking for a way to achieve this. Any other way to avoid deploying of moduleA is also welcome.

Any help would be appreciated.

Thank you very much in advance,

Eguzki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
________________________________________________________________

Eguzki Astiz Lezaun
Departamento de Sociedad Conectada              Mail: [EMAIL PROTECTED]
TELEFONICA I+D                                  Tel: +34 93 29 56384
C\ VIA AUGUSTA, 177                             www.tid.es
08021 BARCELONA
________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to