Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Junit integration test with Felix, SpringDM and maven Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Junit integration test with Felix, SpringDM and maven

    Hi,

    I am struggling to create a simple junit test with SpringDM and Felix Osgi container.

    Below is the POM I use.
    For spring-osgi-test I tried the latest version 1.2.1, but then I get an error because this one requires the spring-context version 2.5.6.SEC01

    For spring-osgi-test version 1.2.0, I get the error
    org/springframework/osgi/log4j.osgi/1.2.15-SNAPSHOT/log4j.osgi-1.2.15-SNAPSHOT.jar (No such file or directory)

    Don't know how to solve these....

    Pls help.

    Code:
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-test</artifactId>
    			<version>2.5.6</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    		    <groupId>org.springframework</groupId>
    		    <artifactId>spring-context</artifactId>
    		    <version>2.5.6</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    		    <groupId>org.springframework</groupId>
    		    <artifactId>spring-core</artifactId>
    		    <version>2.5.6</version>
    			<scope>test</scope>
    		</dependency>
    
    		<dependency>
    		     <groupId>org.springframework.osgi</groupId>
    		     <artifactId>spring-osgi-test</artifactId>
     		     <version>1.2.0</version>
    		     <scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.osgi</groupId>
    			<artifactId>spring-osgi-extender</artifactId>
    			<version>1.2.0</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.osgi</groupId>
    			<artifactId>log4j.osgi</artifactId>
    			<version>1.2.15-SNAPSHOT</version>
    			<scope>test</scope>
    		</dependency>
    
    		<!-- Logging -->
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>com.springsource.slf4j.api</artifactId>
    			<version>${slf4j.version}</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>com.springsource.slf4j.org.apache.commons.logging</artifactId>
    			<version>${slf4j.version}</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-log4j12</artifactId>
    			<version>${slf4j.version}</version>
    			<scope>test</scope>
    		</dependency>
    
    		<!-- Felix -->
    		<dependency>
    			<groupId>org.apache.felix</groupId>
    			<artifactId>org.apache.felix.main</artifactId>
    			<version>1.4.1</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.felix</groupId>
    			<artifactId>org.apache.felix.framework</artifactId>
    			<version>3.2.0</version>
    			<scope>test</scope>
    		</dependency>
Working...
X