Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] testing m2e conectors



----- Forwarded message -----
From: "Rafał Krzewski" <rafal.krzewski@xxxxxxxxx>
Date: Fri, Jul 1, 2011 09:58
Subject: Re: [m2e-dev] testing m2e conectors
To: "David Carver" <d_a_carver@xxxxxxxxx>

I do have org.eclipse.view.runtime dependency in my manifest:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: tests for m2e connector for javacc-maven-plugin
Bundle-SymbolicName: org.objectledge.maven.connectors.javacc.tests;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: ObjectLedge.org
Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6
Require-Bundle: org.eclipse.core.resources;bundle-version="3.4.0",
org.eclipse.core.runtime;bundle-version="3.4.0",
org.eclipse.jdt.core;bundle-version="3.4.0",
org.eclipse.m2e.jdt;bundle-version="[1.0.0,1.1.0)",
org.eclipse.m2e.core;bundle-version="[1.0.0,1.1.0)",
org.eclipse.m2e.maven.runtime;bundle-version="[1.0.0,1.1.0)",
org.eclipse.m2e.tests.common;bundle-version="[1.0.0,1.1.0)",
org.junit;bundle-version="3.8.2",
org.objectledge.maven.connectors.javacc;bundle-version="1.0.0.qualifier"

Thanks,
Rafał

----- Reply message -----
From: "David Carver" <d_a_carver@xxxxxxxxx>
Date: Fri, Jul 1, 2011 02:50
Subject: [m2e-dev] testing m2e conectors
To: "Maven Integration for Eclipse developers mailing list" <m2e-dev@xxxxxxxxxxx>

Do you have a requirement on org.eclipse.core.runtime in your Manifest
for your test bundle?

I've seen this issue with Tycho on the past when this was missing.

Dave

On 06/30/2011 08:06 PM, Rafał Krzewski wrote:
> Hi,
>
> I am trying to add plugin tests to my m2e connectors
> (https://github.com/objectledge/maven-extensions/tree/master/connectors)
>
> I am trying to write a test for my JavaCC connector modeling it after
> antlr connector test from m2eclipse-extras and I have run into a problem.
>
> I got to a point where the plugin compiles correctly and Eclipse
> starts for running the test but then it fails claiming that the test
> bundle was not found.
>
> Here's the relevant part of build output:
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building JavaCC connector - tests 1.0.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.12.0:build-qualifier
> (default-build-qualifier) @ tests ---
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.12.0:validate-version
> (default-validate-version) @ tests ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
> @ tests ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/rafal/workspaces/maven-extensions-host/maven-extensions/connectors/modules/javacc/tests/src/main/resources
> [INFO]
> [INFO] --- tycho-compiler-plugin:0.12.0:compile (default-compile) @
> tests ---
> [INFO] Using compile source roots from build.properties
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:testResources
> (default-testResources) @ tests ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/rafal/workspaces/maven-extensions-host/maven-extensions/connectors/modules/javacc/tests/src/test/resources
> [INFO]
> [INFO] --- tycho-compiler-plugin:0.12.0:testCompile
> (default-testCompile) @ tests ---
> [INFO] Using compile source roots from build.properties
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.12.0:package-plugin
> (default-package-plugin) @ tests ---
> [INFO] Building jar:
> /home/rafal/workspaces/maven-extensions-host/maven-extensions/connectors/modules/javacc/tests/target/tests-1.0.0-SNAPSHOT.jar
> [INFO]
> [INFO] --- tycho-p2-plugin:0.12.0:p2-metadata (default-p2-metadata) @
> tests ---
> [INFO]
> [INFO] --- tycho-surefire-plugin:0.12.0:test (default-test) @ tests ---
> [INFO] Adding repository (cached)
> http://download.eclipse.org/technology/m2e/milestones/1.0
> [INFO] Adding repository (cached)
> http://download.eclipse.org/releases/helios
> [INFO] Adding repository (cached)
> http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site
> [INFO] Expected eclipse log file:
> /home/rafal/workspaces/maven-extensions-host/maven-extensions/connectors/modules/javacc/tests/target/work/data/.metadata/.log
> [INFO] Command line:
>     /bin/sh -c cd
> /home/rafal/workspaces/maven-extensions-host/maven-extensions/connectors/modules/javacc/tests
> && /usr/lib/jvm/java-6-sun-1.6.0.24/jre/bin/java
> -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk
> -Dosgi.arch=x86_64 -Xmx800m -XX:MaxPermSize=256m -jar
> /home/rafal/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.1.1.R36x_v20101122_1400/org.eclipse.equinox.launcher-1.1.1.R36x_v20101122_1400.jar
> -data
> /home/rafal/workspaces/maven-extensions-host/maven-extensions/connectors/modules/javacc/tests/target/work/data
> -dev
> file:/home/rafaHR


Back to the top