Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] fragment could not be found by tycho-surefire

There are couple of problems.

First, com.c4biz.osgiutils.configuration.manager.test.conf project
should have packaging=eclipse-plugin in pom.xml.

Second, Tycho does not expand .qualifier version in Fragment-Host
bundle-version, so 0.0.1.qualifier is interpreted as [0.0.1.qualifier,)
version range, which does not match anything. The workaround is to use
0.0.1 Fragment-Host version range. Feel free to open an enhancement
request if you feel strongly about .qualifier expatiation in fragment
host version, but most like somebody would have to provide a quality
patch before this one gets looked at.

--
Regards,
Igor

On 12-01-29 6:52 PM, Cristiano Gavião wrote:
Hi,

The example is attached.

cheers

Cristiano


On 29/01/12 18:59, Igor Fedorenko wrote:
Can you provide complete standalone example project that demonstrates
the problem?

--
Regards,
Igor

On 12-01-29 4:53 PM, Cristiano Gavião wrote:
Hi,

I need some help to resolve a problem in a test where I'm trying to
install a fragment needed for the test using tycho 0.14.

The problematic fragment is part of the reactor and is being built
properly:

[INFO] Reactor Summary:
[INFO]
[INFO] Parent POM ...................... SUCCESS [0.154s]
[INFO] Configuration Manager Service Wrapper Bundle SUCCESS [3.104s]
[INFO] com.c4biz.osgiutils.configuration.manager.test.conf SUCCESS
[1.448s]
[INFO] com.c4biz.osgiutils.tests ......................... FAILURE
[1.152s]
[INFO]
------------------------------------------------------------------------


but tycho could not found it:
[INFO]
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,

osgi.ws=cocoa, osgi.arch=x86_64, osgi.os=macosx,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install 'bundle
com.c4biz.osgiutils.configuration.manager.test.conf 0.0.0' but it
could not be found
[ERROR]
that is my tycho-surefire config:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includes>
<include>**/*Test.class</include>
</includes>
<failIfNoTests>false</failIfNoTests>
<showEclipseLog>true</showEclipseLog>
<!-- <argLine>${ui.test.vmargs}</argLine> -->
<bundleStartLevel>
<bundle>
<id>org.eclipse.osgi</id>
<level>-1</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.common</id>
<level>1</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.ds</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>

</bundleStartLevel>

<dependencies>
<dependency>
<type>instalable-unit</type>
<artifactId>org.eclipse.osgi</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<type>instalable-unit</type>
<artifactId>org.eclipse.osgi.services</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<type>eclipse-plugin</type>
<artifactId>com.c4biz.osgiutils.configuration.manager.test.conf</artifactId>


<version>0.0.0</version>
</dependency>
</dependencies>
<useUIHarness>false</useUIHarness>
<useUIThread>false</useUIThread>
</configuration>
</plugin>

please, could someone give a tip what am I missing here?

thanks

Cristiano

_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev



_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev


Back to the top