Results 1 to 4 of 4

Thread: Spring, Maven, Eclipse

  1. #1
    Join Date
    Oct 2006
    Posts
    8

    Default Spring, Maven, Eclipse

    Hello,

    I'm sure this is an issue with the maven-eclipse-plugin, and not an issue with Spring or Maven, but I'm sure someone here has run into this issue.

    I'm creating an Eclipse RCP plugin using maven. I'm running the maven-eclipse-plugin during the validate phase to sync Eclipse and Maven with the Maven dependencies and generate the manifest.mf file.

    The issue I'm running into is that none of Spring dependencies are being included in the manifest.mf file. How can I get around this?

    Here is my POM:
    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>bm.company_I_work_for</groupId>
    		<artifactId>parentpom</artifactId>
    		<version>1.1.5-SNAPSHOT</version>
    	</parent>
    
    	<groupId>bm.company_I_work_for</groupId>
    	<artifactId>bm.company_I_work_for.plugin.poc</artifactId>
    	<packaging>zip</packaging>
    	<name>POC</name>
    	
    	<description>A Simple Product PDE Example</description>
    
    	<dependencies>
    		<dependency>
    			<groupId>hsqldb</groupId>
    			<artifactId>hsqldb</artifactId>
    			<version>1.8.0.7</version>
    		</dependency>
    ...
    
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring</artifactId>
    			<version>2.5.4</version>
    		</dependency>
    
    	</dependencies>
    
    	<build>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-eclipse-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>synchronise-eclipse</id>
    						<phase>validate</phase>
    						<goals>
    							<goal>eclipse</goal>
    						</goals>
    					</execution>
    				</executions>
    				<configuration>
    					<pde>true</pde>
    				</configuration>
    			</plugin>
    			
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-dependency-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>copy-dependencies</id>
    						<phase>process-resources</phase>
    						<goals>
    							<goal>copy-dependencies</goal>
    						</goals>
    						<configuration>
    							<excludeScope>provided</excludeScope>
    							<outputDirectory>
    								${basedir}
    							</outputDirectory>
    							<overWriteReleases>false</overWriteReleases>
    							<overWriteSnapshots>
    								false
    							</overWriteSnapshots>
    							<overWriteIfNewer>true</overWriteIfNewer>
    						</configuration>
    					</execution>
    				</executions>
    			</plugin>
    
    			<plugin>
    				<artifactId>maven-clean-plugin</artifactId>
    				<configuration>
    					<filesets>
    						<fileset>
    							<directory>${basedir}</directory>
    							<includes>
    								<include>*.jar</include>
    							</includes>
    							<followSymlinks>false</followSymlinks>
    						</fileset>
    					</filesets>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>pde-maven-plugin</artifactId>
    				<version>1.0-SNAPSHOT</version>
    				<extensions>true</extensions>
    				<configuration>
    					<eclipseInstall>
    						C:/eclipse/eclipse
    					</eclipseInstall>
    					<pdeProductFilename>poc.product</pdeProductFilename>
    					<pdeBuildVersion>3.3.2.v20071019</pdeBuildVersion>
    					<buildProperties>
    						<javacSource>1.5</javacSource>
    						<javacTarget>1.5</javacTarget>
    					</buildProperties>
    				</configuration>
    
    			</plugin>
    		</plugins>
    	</build>
    </project>

  2. #2
    Join Date
    Oct 2006
    Posts
    8

    Default

    I ran the eclipse goal through the debugger and it seems that the reason spring dependencies are not written to the manifest file is because the "deps" are "Osgi Bundle".

    I will post a solution when I figure this out.

  3. #3
    Join Date
    May 2007
    Location
    Netherlands
    Posts
    614

    Default

    Spring Integration is a separate project related to Enterprise Integration Patterns. Your question is not relevant to this project (although the confusion is understandable).

  4. #4

    Default

    There's a Maven Bundle Plugin if you haven't found it yet. It's for creating OSGi bundles with Maven.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •