Hello, Okay moving to the default test phase apparently solved this problem. There is another one, though. The needed framework extension cannot be found : [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.22.0:test (default-test) on project be.groups.portfolio.service.codelistprovider.test: Failed to resolve framework extension org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar: Missing: [ERROR] ---------- [ERROR] 1) org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.0.0 This framework extension is a fragment that is part of my target platform. It contains no exported packages, so I cannot explicitly add it to my manifest. Any suggestions... ? Regards, Thomas Elskens > From: "Sievers, Jan" <jan.sievers@xxxxxxx> > To: Tycho user list <tycho-user@xxxxxxxxxxx> > Subject: Re: [tycho-user] Tycho surefire throws > PluginExecutionException > Message-ID: > <F8F18CC0DECD384BAC6FBAD1A7C49A4899662872@xxxxxxxxxxxxxxxxxxxxxxxxxxx> > Content-Type: text/plain; charset="iso-8859-1" > > there is a known issue when moving the tycho-surefire test execution from phase "integration-test" to phase "test": > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=440094 > > just run your tests in phase "integration-test" (this is the default). > > Regards > Jan > > From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Thomas Elskens > Sent: Dienstag, 10. M?rz 2015 12:06 > To: tycho-user@xxxxxxxxxxx > Subject: [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 > > > > > ------------------------------ > > Message: 2 > Date: Tue, 10 Mar 2015 13:33:07 -0400 > From: Lutz Wrage <lutz.wrage@xxxxxxxxx> > To: Tycho user list <tycho-user@xxxxxxxxxxx> > Subject: [tycho-user] Tycho-p2-plugin question > Message-ID: > <CAERrEKkqZDsO=2AK1ZBWQd0eo9WD-eRB2SvQ2ffq46M3f0fzkQ@xxxxxxxxxxxxxx> > Content-Type: text/plain; charset="utf-8" > > Dear all, > > I just came across the tycho-p2-plugin in a couple of examples. It seems > there are two use cases, one has to do with validation against baseline > repositories (whatever that means) and the other has something to do with > p2 metadata. > > Is there any documentation on what this plugin can do and when I should use > it? I couldn't find anything helpful on the tycho wiki. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <https://dev.eclipse.org/mailman/private/tycho-user/attachments/20150310/82774ead/attachment.html> > > ------------------------------ > > Message: 3 > Date: Wed, 11 Mar 2015 15:55:16 +0800 > From: Knut Wannheden <knut.wannheden@xxxxxxxxxx> > To: Tycho user list <tycho-user@xxxxxxxxxxx> > Subject: [tycho-user] conditionally skip eclipse product build > Message-ID: > <CAFx=KgfrvsyPtCfdJTTVw+nMoq-u9DJmRaiKX1xDoBN3u=brCg@xxxxxxxxxxxxxx> > Content-Type: text/plain; charset="utf-8" > > Hi all, > > I have noticed that during our Tycho builds the actual building of the > Eclipse product and update sites (handled by the Maven module with > eclipse-repository packaging using the tycho-p2-director-plugin plugin) > takes a lot of time. Depending on the build (e.g. CI verification builds) > this may not be required, so I was looking into skipping that. > > What I first did was to add a Maven profile to the product pom.xml > containing the <build> with the tycho-p2-director-plugin so that the > product would only be built when the corresponding profile was specified on > the command line. This worked well but I noticed that Maven would still > spend some time (around 6 seconds) processing the product module (it would > for instance still archive the repository). So as a next step I moved the > profile to the aggregator module where I using that only conditionally > include the product module in the build. > > I would like to know if there are any best practices regarding this. Are > there for instance some good reasons not to do what I am doing or are there > better ways? > > Thanks, > > Knut > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <https://dev.eclipse.org/mailman/private/tycho-user/attachments/20150311/b8eb28c2/attachment.html> > > ------------------------------ > > Message: 4 > Date: Wed, 11 Mar 2015 09:45:10 +0100 > From: Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> > To: Tycho user list <tycho-user@xxxxxxxxxxx> > Subject: Re: [tycho-user] conditionally skip eclipse product build > Message-ID: > <CANyrOm7XCzLf5UE+aW12p8ugZgz3cwNWywTD9-86fEtf6iATmw@xxxxxxxxxxxxxx> > Content-Type: text/plain; charset="utf-8" > > This is what I do for my Eclipse based product. Each commit will run Tycho > for plugins and features (and tests, of course) only and on a daily basis, > I build the product enabling the profile > > Jeff > > On Wed, Mar 11, 2015 at 8:55 AM, Knut Wannheden <knut.wannheden@xxxxxxxxxx> > wrote: > > > Hi all, > > > > I have noticed that during our Tycho builds the actual building of the > > Eclipse product and update sites (handled by the Maven module with > > eclipse-repository packaging using the tycho-p2-director-plugin plugin) > > takes a lot of time. Depending on the build (e.g. CI verification builds) > > this may not be required, so I was looking into skipping that. > > > > What I first did was to add a Maven profile to the product pom.xml > > containing the <build> with the tycho-p2-director-plugin so that the > > product would only be built when the corresponding profile was specified on > > the command line. This worked well but I noticed that Maven would still > > spend some time (around 6 seconds) processing the product module (it would > > for instance still archive the repository). So as a next step I moved the > > profile to the aggregator module where I using that only conditionally > > include the product module in the build. > > > > I would like to know if there are any best practices regarding this. Are > > there for instance some good reasons not to do what I am doing or are there > > better ways? > > > > Thanks, > > > > Knut > > > > _______________________________________________ > > tycho-user mailing list > > tycho-user@xxxxxxxxxxx > > To change your delivery options, retrieve your password, or unsubscribe > > from this list, visit > > https://dev.eclipse.org/mailman/listinfo/tycho-user > > > > > > -- > Jeff MAURY > > > "Legacy code" often differs from its suggested alternative by actually > working and scaling. > - Bjarne Stroustrup > > http://www.jeffmaury.com > http://riadiscuss.jeffmaury.com > http://www.twitter.com/jeffmaury > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <https://dev.eclipse.org/mailman/private/tycho-user/attachments/20150311/22a0330b/attachment.html> > > ------------------------------ > > _______________________________________________ > tycho-user mailing list > tycho-user@xxxxxxxxxxx > To change your delivery options, retrieve your password, or unsubscribe from this list, visit > https://dev.eclipse.org/mailman/listinfo/tycho-user > > End of tycho-user Digest, Vol 55, Issue 10 > ****************************************** |
↧
Re: [tycho-user] Tycho surefire throws PluginExecutionException
↧