We're building bundles with the following build configuration:

    <packaging>bundle</packaging>

    <build>
        <extensions>
            <extension>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.osgi.core</artifactId>
                <version>1.2.0</version>
            </extension>
        </extensions>
        
        <plugins>

            <!-- configure the bundle plugin executed as part of the bundle 
packaging type -->
            <!-- generate an OSGI manifest -->
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <manifestLocation>META-INF</manifestLocation>
                    <instructions>
                        <_nouses>true</_nouses>
                        
<Bundle-SymbolicName>com.foobar.platform.rules.deployer.config;singleton:=true</Bundle-SymbolicName>
                        <Bundle-Name>Foobar Deployer Configuration</Bundle-Name>
                        
<Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
                        <Bundle-DocURL />
                        <Import-Package>!*</Import-Package>
                        
<Private-Package>com.foobar.platform.rules.deployer.config.*</Private-Package>
                        <Export-Package />
                        
<Bundle-Activator>com.foobar.platform.rules.deployer.config.plugin.DeployerConfigPlugin</Bundle-Activator>
                        <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
                        
<Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
                        <Embed-Transitive>true</Embed-Transitive>
                        
<Include-Resource>plugin.xml,src/main/resources</Include-Resource>
                        
<Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
                        
<Require-Bundle>org.eclipse.core.runtime,org.eclipse.ui,com.foobar.core,com.foobar.core.deployer.rc.config,com.axegroup.rcp.plugins.log4j,org.apache.commons.lang</Require-Bundle>
                        
<Eclipse-RegisterBuddy>com.foobar.core,com.axegroup.rcp.plugins.log4j</Eclipse-RegisterBuddy>
                    </instructions>
                </configuration>
            </plugin>

            <!-- Unpack jar dependencies into the target directory so they can 
be used by the pde plugin -->
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <configuration>
                    <excludeTransitive>false</excludeTransitive>
                </configuration>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <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>
            <!-- clean up all the dependency jars dumped in the plugin root 
directory for the pde 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>
            
            <!-- configuration for the Eclipse IDE -->
            <plugin>
                <artifactId>maven-eclipse-plugin</artifactId>
                <configuration>
                    <pde>true</pde>
                    <useProjectReferences>false</useProjectReferences>
                    <classpathContainers>
                        
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6</classpathContainer>
                        
<classpathContainer>org.eclipse.pde.core.requiredPlugins</classpathContainer>
                    </classpathContainers>
                </configuration>
                <executions>
                    <execution>
                        <id>run eclipse plugin</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>clean</goal>
                            <goal>eclipse</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

On 28/09/2011, at 2:14 PM, Barrie Treloar wrote:

> On Wed, Sep 28, 2011 at 11:40 AM, Stephen Coy <st...@resolvesw.com> wrote:
>> FWIW, we're using pde mode at present.
>> 
>> We have a largish (~ 40 modules) framework that builds both RCP applications 
>> and web applications.
>> 
>> I haven't had a chance to figure out how to integrate Tycho into this 
>> arrangement. On the surface it looks like you're either using p2 
>> dependencies or maven dependencies but not both.
> 
> I don't suppose you have some documentation that describes your setup?
> 
> For the RCP application I was building we used (the now defunct)
> org.codehaus.mojo:pde-maven-plugin.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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

Reply via email to