Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-user Digest, Vol 49, Issue 27


Here it is.


There are 3 projects, a parent pom, an eclipse-plugin and its eclipse-test-plugin.

Just run mvn install on parent and the problem will appear.


(very nice quote btw)


Thansk for your help,
Regards,

Pierre GAUTIER



On Mon, Sep 29, 2014 at 10:38 AM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:


On Mon, Sep 29, 2014 at 10:35 AM, Pierre GAUTIER <pierre.pg.gautier@xxxxxxxxx> wrote:

Hey Jeff,


Thanks for your answer.


I've check the lead you suggested, but, since in the same test class a pure (non-birt) SWT test works fine I guess it's not be the good path.

I believe it's not a fragment related problem but some kind of non-needed dependencies that surefire cannot resolve, or don't load or anything.

Since they are declared and seem to be loaded well it may be some kind of order problem.


Would it help if I'd make a similar project for someone who wants to try and reproduce it ?
Yes, of course !!!

Jeff 


Regards,

Pierre GAUTIER




 
Date: Sat, 27 Sep 2014 09:05:02 +0200
From: Jeff MAURY <jeffmaury@xxxxxxxxxxxxx>
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] tycho-surefire-plugin & birt unitesting
Message-ID:
        <CANyrOm7gXOEMkt37D2MFKK31PLVi9Y=aW3G5bUZ45MQ8tU4P5w@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

You should check about swt native libraries. I suspect the birt.swt or
birth.swt is not loaded because of native dependencies

Jeff

On Fri, Sep 26, 2014 at 3:41 PM, Pierre GAUTIER <pierre.pg.gautier@xxxxxxxxx
> wrote:

>
> Hello,
>
>
> I'm currently facing an issue with tycho-surefire-plugin version 0.21.0
> for which I've found nothing relevant on the web.
>
> I have a plugin c.m.s.c.charts that depends :
> - explicitly on org.eclipse.birt.chart.engine,
> - implicitly on org.eclipse.birt.chart.engine.extension and
> org.eclipse.birt.chart.device.swt
>
> These 3 dependencies are put in the MANIFEST.MF and the RCP application is
> running well.
>
> I also have a test fragment c.m.s.c.charts.tests based on this previous
> plugin.
>
> I've written a few tests but surefire fails to run some of them with error
> message : Caused by: java.lang.ClassNotFoundException:
> org.eclipse.birt.chart.device.swt.SwtRendererImpl cannot be found by
> org.eclipse.birt.chart.engine_4.4.0.v201405191524
>
> I've declared them like said in tycho FAQ:
>
> <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.eclipse.tycho</groupId>
>                 <artifactId>tycho-surefire-plugin</artifactId>
>                 <version>${tycho.version}</version>
>                 <configuration>
>                     <dependencies>
>                         <dependency>
>                             <type>eclipse-plugin</type>
>
>  <artifactId>org.eclipse.birt.chart.device.swt</artifactId>
>                             <version>4.4.0</version>
>                         </dependency>
>                         <dependency>
>                             <type>eclipse-plugin</type>
>
>  <artifactId>org.eclipse.birt.chart.engine.extension</artifactId>
>                             <version>4.4.0</version>
>                         </dependency>
>                     </dependencies>
>                 </configuration>
>             </plugin>
>         </plugins>
>     </build>
>
> And I've not the install error I got when tried with swt2:
>
> ERROR] Cannot resolve project dependencies:
> [ERROR]   You requested to install 'bundle
> org.eclipse.birt.chart.device.swt2 4.4.0' but it could not be found
>
> At this point I'm really confused and I've now been stuck on it for hours.
>
> Anyone could help me with this problem ?
>
>
> By advance, many thanks,
> Regards,
>
> Pierre GAUTIER
>
>
>
> _______________________________________________
> 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/20140927/13bc281c/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



--
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

_______________________________________________
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

Attachment: tycho.surefire.problem.zip
Description: Zip archive


Back to the top