Creating Eclipse Plugins from Existing Jars in Automated Builds

I want the build process of my Eclipse RCP plugin to be fully automatic. It has third-party jar dependencies (available from Maven repositories) that are not distributed as OSGi packages, and I currently use the Eclipse plugin from existing JAR archives wizard to manually convert them. Can PDEBuild or Maven / Tycho (or maybe some other build system) do this as a build step?

+3
source share
3 answers

Peter Tillemans mentioned the PAX wrap jar command in this post

Maven bundle Apache Felix .

, Bundlor SpringSource osgi jar.

+4

p2-maven-plugin, . , :

  • , OSGi ( )
  • p2, Eclipse PDE
  • ( )

: http://projects.reficio.org/p2-maven-plugin/manual.html

:

<plugin>
    <groupId>org.reficio</groupId>
    <artifactId>p2-maven-plugin</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <executions>
        <execution>
            <id>default-cli</id>
            <configuration>
                <artifacts>
                    <!-- specify your depencies here -->
                    <!-- groupId:artifactId:version -->
                    <artifact><id>commons-io:commons-io:2.1</id></artifact>
                    <artifact><id>commons-lang:commons-lang:2.4</id></artifact>
                    <artifact><id>commons-lang:commons-lang:2.5</id></artifact>
                    <artifact><id>commons-lang:commons-lang:2.6</id></artifact>
                    <artifact><id>org.apache.commons:commons-lang3:3.1</id></artifact>
                </artifacts>
            </configuration>
        </execution>
    </executions>
</plugin>
+3

Take a look at the differences between a third party bank and its equivalent link. This is just an extra plugin.xml and a few extra lines in the manifest.

Write your own code to combine banners.

0
source

All Articles