You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cleiton Dos Santos Garcia <cl...@weg.net> on 2009/03/30 19:03:18 UTC

Compiling a specific module with the dependencies

Hello,

I have a project with 2 jars maestro-ee -> maestro-core.
I'm trying to setup the continuous integration with cruisecontrol, but I'm having some problems.

Is it possible when a compile the project maestro-ee automatically compile the project maestro-core?

I'm not interested in always run a "mvn install:install-file ...". And I wouldn't like compile all projects in the parent POM.

_ _ _

I have a parent Project with all modules:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>net.weg.eng</groupId>
	<artifactId>maestro-project</artifactId>
	<packaging>pom</packaging>
	<version>0.2</version>
	<url>http://maven.apache.org</url>
...
    <modules>
        <module>maestro-core</module>
        <module>maestro-ee</module>
		...
    </modules>
...
And the dependencies specified in each modules, for example:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>net.weg.eng</groupId>
	<artifactId>maestro-ee</artifactId>
	<packaging>jar</packaging>
	<version>0.2</version>
	<name>maestro-ee</name>
	<url>http://maven.apache.org</url>
	<parent>
		<groupId>net.weg.eng</groupId>
		<artifactId>maestro-project</artifactId>
		<version>0.2</version>
		<relativePath>../pom.xml</relativePath>
	</parent>
	...
	<dependency>
		<groupId>${project.groupId}</groupId>
		<artifactId>maestro-core</artifactId>
		<version>${project.version}</version>
		<scope>compile</scope>
	</dependency>
	....

Thanks a lot,
Cleiton Garcia. 
Depto. de Sistemas de Informação
Fone (0xx47)3276-6917 / 3276-7829 Fax (0xx47) 3276-4010


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org