ok, sure my pom files (i was with my laptop when starting this thread ;-)
parent-Pom:
PHP Code:
<!--This is the main pom-->
<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>com.testapp</groupId>
<artifactId>com.testapp</artifactId>
<version>${testappVersion}</version>
<name>Complete Application</name>
<packaging>pom</packaging>
<modules>
<module>com.testapp.db</module>
<module>com.testapp.web</module>
<module>com.testapp.common</module>
</modules>
<properties>
<pgVersion>8.3.603</pgVersion>
<testappVersion>0.01-SNAPSHOT</testappVersion>
</properties>
<build>
<extensions>
<extension>
<groupId>org.postgresql</groupId>
<artifactId>com.springsource.org.postgresql.jdbc3</artifactId>
<version>${pgVersion}</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.0-alpha-2</version>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.core</artifactId>
<version>1.0.0</version>
</dependency>
<!-- =========================================================== -->
<!-- Log dep -->
<!-- =========================================================== -->
<dependency>
<groupId>org.apache.log4j</groupId>
<artifactId>com.springsource.org.apache.log4j</artifactId>
<version>1.2.15</version>
</dependency>
<!-- =========================================================== -->
<!-- Log dep -->
<!-- =========================================================== -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>com.springsource.org.apache.commons.lang</artifactId>
<version>2.4.0</version>
</dependency>
<!-- =========================================================== -->
<!-- DB dep -->
<!-- =========================================================== -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>org.hibernate.ejb-library</artifactId>
<type>libd</type>
<version>3.3.2.GA</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>com.springsource.org.postgresql.jdbc3</artifactId>
<version>${pgVersion}</version>
</dependency>
<!-- =========================================================== -->
<!-- spring -->
<!-- =========================================================== -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.spring-library</artifactId>
<type>libd</type>
<version>2.5.5.A</version>
</dependency>
<!-- =========================================================== -->
<!-- JUnit -->
<!-- =========================================================== -->
<dependency>
<groupId>org.junit</groupId>
<artifactId>com.springsource.org.junit</artifactId>
<version>4.4.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
<repository>
<id>com.springsource.repository.libraries.release</id>
<name>SpringSource Enterprise Bundle Repository - SpringSource Library Releases</name>
<url>http://repository.springsource.com/maven/libraries/release</url>
</repository>
<repository>
<id>com.springsource.repository.libraries.external</id>
<name>SpringSource Enterprise Bundle Repository - External Library Releases</name>
<url>http://repository.springsource.com/maven/libraries/external</url>
</repository>
</repositories>
</project>
one child-module: common
PHP Code:
<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>
<parent>
<groupId>com.testapp</groupId>
<artifactId>com.testapp</artifactId>
<version>${testappVersion}</version>
</parent>
<artifactId>com.testapp.common</artifactId>
<packaging>bundle</packaging>
<name>Common</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<version>1.0.0</version>
<configuration>
<instructions>
<manifestLocation>META-INF</manifestLocation>
<Export-Package>com.testapp.common*</Export-Package>
<Import-Bundle>*</Import-Bundle>
</instructions>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<!-- =========================================================== -->
<!-- Log dep -->
<!-- =========================================================== -->
<dependency>
<groupId>org.apache.log4j</groupId>
<artifactId>com.springsource.org.apache.log4j</artifactId>
</dependency>
<!-- =========================================================== -->
<!-- DB dep -->
<!-- =========================================================== -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>org.hibernate.ejb-library</artifactId>
<type>libd</type>
</dependency>
<!-- =========================================================== -->
<!-- JUnit -->
<!-- =========================================================== -->
<dependency>
<groupId>org.junit</groupId>
<artifactId>com.springsource.org.junit</artifactId>
</dependency>
<!-- =========================================================== -->
<!-- spring -->
<!-- =========================================================== -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.spring-library</artifactId>
<type>libd</type>
</dependency>
</dependencies>
</project>