JDT Debug dependencies in MAVEN [message #1705397] |
Fri, 14 August 2015 10:47  |
Eclipse User |
|
|
|
Hi all,
I am trying to use the jdt debug in a project.
I have created a bundle project and added the dependencies with maven:
<project ....>
<modelVersion>4.0.0</modelVersion>
<!-- | Parent specification | -->
<parent>
.......
</parent>
<groupId>mygroupID</groupId>
<artifactId>myartifactID</artifactId>
<name>Implementation</name>
<packaging>bundle</packaging>
<dependencies>
<dependency>
<groupId>org.eclipse.debug</groupId>
<artifactId>core</artifactId>
<version>[3.3.0,4.0.0)</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>core</artifactId>
<version>[3.3.0,4.0.0)</version>
</dependency>
<dependency>
<groupId>org.eclipse.core</groupId>
<artifactId>runtime</artifactId>
<version>[3.3.0,4.0.0)</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>debug</artifactId>
<version>3.2.1-r321_v20060731</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt.launching</groupId>
<artifactId>macosx</artifactId>
<version>3.1.100-v20061211</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<sourceDirectory>/src/main/java</sourceDirectory>
<testSourceDirectory>/src/test/java</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Activator>myActivator</Bundle-Activator>
<Import-Package>*</Import-Package>
<Export-Package>myExportedPackage.*</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
everything looks fine except for the
import org.eclipse.jdt.debug.core.*
that is not recognized by Eclipse and that gives me a compilation error telling me that the type cannot be resolved.
I checked the library and I saw that it contains a jar with other jars, so I tried a small workaround extracting one of the jar outside (jdimodel.jar) and asking maven to point directly to the jar in the file system like this:
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>debug</artifactId>
<version>3.2.1-r321_v20060731</version>
<scope>system</scope> <systemPath>${project.basedir}/lib/jdimodel.jar</systemPath>
</dependency>
but nothing happened.
Someone have any idea?
Many thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03636 seconds