How to add maven dependencies as classpath libraries to Eclipse plugin Runtime? -


i'm developing eclipse plugin , i'm in process of converting maven project. used "configure->convert maven project" option , wrote pom.xml file appropriate dependencies , reference tycho , maven plugin.

<properties>     <tycho.version>0.23.0</tycho.version>     <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties>  <build>     <sourcedirectory>src</sourcedirectory>         <pluginmanagement>         <plugins>             <plugin>                 <groupid>org.eclipse.tycho</groupid>                 <artifactid>tycho-p2-repository-plugin</artifactid>                 <version>${tycho.version}</version>                 <configuration>                     <includealldependencies>true</includealldependencies>                 </configuration>             </plugin>         </plugins>     </pluginmanagement>     <plugins>         <plugin>             <groupid>org.eclipse.tycho</groupid>             <artifactid>tycho-maven-plugin</artifactid>             <version>${tycho.version}</version>             <extensions>true</extensions>         </plugin>          <plugin>             <groupid>org.eclipse.tycho</groupid>             <artifactid>target-platform-configuration</artifactid>             <version>${tycho.version}</version>             <configuration>                 <target>                     <artifact>                         <groupid>${project.groupid}</groupid>                         <artifactid>${project.artifactid}</artifactid>                         <version>${project.version}</version>                     </artifact>                 </target>                 <environments>                     <environment>                         <os>linux</os>                         <ws>gtk</ws>                         <arch>x86</arch>                     </environment>                     <environment>                         <os>linux</os>                         <ws>gtk</ws>                         <arch>x86_64</arch>                     </environment>                     <environment>                         <os>win32</os>                         <ws>win32</ws>                         <arch>x86</arch>                     </environment>                     <environment>                         <os>win32</os>                         <ws>win32</ws>                         <arch>x86_64</arch>                     </environment>                     <environment>                         <os>macosx</os>                         <ws>cocoa</ws>                         <arch>x86_64</arch>                     </environment>                 </environments>             </configuration>         </plugin>         <plugin>             <inherited>true</inherited>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <configuration>                 <source>1.6</source>                 <target>1.6</target>             </configuration>         </plugin>     </plugins> </build> 

however, maven dependency libraries not automatically added project's classpath , when tried adding them .classpath file e.g. <classpathentry kind="var" path="m2_repo/net/sf/jung/jung-api/2.0.1/jung-api-2.0.1.jar"/> (m2_repo classpath variable configured) still getting exception missing classes in manifest file.

is possible in eclipse set classpath outside project's root , if yes possible automatically add maven dependency libraries classpath of project?

the eclipse plugin takes osgi bundles , plugins dependency. if giving dependency normal jar wont take. manifest file take plugins , bundles available in p2 repository of eclipse home ,target definition file or eclipse site. suggest convert maven dependency jar osgi bundle or plugin , add dependency eclipse plugin wont error during maven build.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -