OT/Equinox and Tycho [message #962794] |
Mon, 29 October 2012 06:32  |
Eclipse User |
|
|
|
I have looked the very good and simple example and tested it successfully (Wiki: Object_Teams_Quick-Start).
Then I wanted to compile the plugin with Tycho and read 2Between the Times" from objectteams blog.
But it didn't work.
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ OCEqui ---
[INFO] Compiling 1 source file to C:\Projekte\Java\SE\aktuelle\OCEqui\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] C:\Projekte\Java\SE\aktuelle\OCEqui\src\aspect\MyTeam.java:[3,0]
import base org.eclipse.ui.internal.about.AboutItem;
^^^^^^^^^^^^^^
The import org.eclipse.ui cannot be resolved
[ERROR] C:\Projekte\Java\SE\aktuelle\OCEqui\src\aspect\MyTeam.java:[7,0]
protected class MyRole playedBy AboutItem {
^^^^^^^^^
AboutItem cannot be resolved to a type
2 problems (2 errors)
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project OCEqui: Compilation
failure: Compilation failure:
[ERROR] C:\Projekte\Java\SE\aktuelle\OCEqui\src\aspect\MyTeam.java:[3,0]
[ERROR] import base org.eclipse.ui.internal.about.AboutItem;
[ERROR] ^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.ui cannot be resolved
[ERROR] C:\Projekte\Java\SE\aktuelle\OCEqui\src\aspect\MyTeam.java:[7,0]
[ERROR] protected class MyRole playedBy AboutItem {
[ERROR] ^^^^^^^^^
[ERROR] AboutItem cannot be resolved to a type
[ERROR] 2 problems (2 errors)
Why didn't Tycho read the dependencies from the manifest.mf?
pom.xml
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse</groupId>
<artifactId>objectteams-parent-pom</artifactId>
<version>2.1.0</version>
</parent>
<groupId>OCEqui</groupId>
<artifactId>OCEqui</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<sourceDirectory>src</sourceDirectory>
</build>
<repositories>
<repository>
<id>ObjectTeamsRepository</id>
<name>Object Teams Repository</name>
<url>http://download.eclipse.org/objectteams/maven/3/repository</url>
</repository>
</repositories>
</project>
manifest.mf
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: OCEqui
Bundle-SymbolicName: OCEqui;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.objectteams.otequinox,
org.eclipse.core.runtime,
org.eclipse.ui.workbench
plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.objectteams.otequinox.aspectBindings">
<aspectBinding
icon="platform:/plugin/org.eclipse.objectteams.otdt.ui/icons/ot/calloutbinding_obj.gif">
<basePlugin
icon="platform:/plugin/org.eclipse.pde.ui/icons/obj16/plugin_obj.gif"
id="org.eclipse.ui.workbench">
</basePlugin>
<team
activation="ALL_THREADS"
class="aspect.MyTeam"
icon="platform:/plugin/org.eclipse.objectteams.otdt.ui/icons/ot/team_obj.gif">
</team>
</aspectBinding>
</extension>
</plugin>
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04534 seconds