Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Tycho surefire throws PluginExecutionException

Tycho version : 0.22
Java version : 1.8_40 ea

Hello,

I have a problem with my test plugins during a Tycho build. The project compiles, and I can execute the tests from within the IDE (with PDE), but while launching the tests during a build I get the following stack :

[INFO] ------------------------------------------------------------------------
[INFO] Building Tests CodelistProvider 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] Deleting C:\git\portfolio\be.groups.portfolio.service.codelistprovider.test\target
[INFO] 
[INFO] --- tycho-packaging-plugin:0.22.0:build-qualifier (default-build-qualifier) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] The project's OSGi version is 0.0.1.201503101054
[INFO] 
[INFO] --- tycho-packaging-plugin:0.22.0:validate-id (default-validate-id) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.22.0:validate-version (default-validate-version) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\git\portfolio\be.groups.portfolio.service.codelistprovider.test\src\main\resources
[INFO] 
[INFO] --- tycho-compiler-plugin:0.22.0:compile (default-compile) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] Compiling 1 source file to C:\git\portfolio\be.groups.portfolio.service.codelistprovider.test\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\git\portfolio\be.groups.portfolio.service.codelistprovider.test\src\test\resources
[INFO] 
[INFO] --- tycho-surefire-plugin:0.22.0:test (default) @ be.groups.portfolio.service.codelistprovider.test ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Presta Desktop Portfolio - releng ................. SUCCESS [  0.990 s]
[INFO] Portfolio Domain .................................. SUCCESS [ 32.002 s]
[INFO] Portfolio Domain Edit ............................. SUCCESS [  2.813 s]
[INFO] Json Parser ....................................... SUCCESS [  1.612 s]
[INFO] Domain ............................................ SUCCESS [  1.189 s]
[INFO] CodelistProvider .................................. SUCCESS [  8.131 s]
[INFO] Domain Validator .................................. SUCCESS [  1.569 s]
[INFO] Transaction Utilities ............................. SUCCESS [  1.403 s]
[INFO] Domain Manager .................................... SUCCESS [  1.172 s]
[INFO] UI Controls ....................................... SUCCESS [  1.481 s]
[INFO] Presta Desktop Portfolio - application bundle ..... SUCCESS [  3.053 s]
[INFO] LifecycleManager .................................. SUCCESS [  2.513 s]
[INFO] Domain Constraints ................................ SUCCESS [  0.669 s]
[INFO] Logging Configuration Fragment .................... SUCCESS [  0.221 s]
[INFO] RestClient Configuration Fragment ................. SUCCESS [  0.155 s]
[INFO] Presta Desktop Portfolio - application feature .... SUCCESS [  3.770 s]
[INFO] Presta Desktop Portfolio - application product .... SUCCESS [03:35 min]
[INFO] be.groups.portfolio.targetdefinition .............. SUCCESS [  0.002 s]
[INFO] Tests CodelistProvider ............................ FAILURE [ 11.678 s]
[INFO] Tests JsonParser .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:46 min
[INFO] Finished at: 2015-03-10T11:59:05+01:00
[INFO] Final Memory: 90M/420M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.22.0:test (default) on project be.groups.portfolio.service.codelistprovider.test: Execution default of goal org.eclipse.tycho:tycho-surefire-plugin:0.22.0:test failed: Tycho build extension not configured for MavenProject: be.groups.portfolio:be.groups.portfolio.service.codelistprovider.test:0.0.1-SNAPSHOT @ C:\git\portfolio\be.groups.portfolio.service.codelistprovider.test\pom.xml -> [Help 1]
[ERROR] 

The POM of the test plugin is as follows :

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>Tests CodelistProvider</name>
<groupId>be.groups.portfolio</groupId>
<artifactId>be.groups.portfolio.service.codelistprovider.test</artifactId>
<packaging>eclipse-test-plugin</packaging>

<parent>
<groupId>be.groups.portfolio</groupId>
<artifactId>be.groups.portfolio.releng</artifactId>
<relativePath>../be.groups.portfolio.releng/pom.xml</relativePath>
<version>0.0.1-SNAPSHOT</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<frameworkExtensions>
<frameworkExtension>
<groupId>org.eclipse.fx.runtime</groupId>
<artifactId>org.eclipse.fx.osgi</artifactId>
<version>1.2.0</version>
</frameworkExtension>
</frameworkExtensions>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>

Any idea what this might be ? I do not understand the error message...

Thomas Elskens



Back to the top