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

I don't see why Tycho should block or complain about non-tycho projects
being present in the reactor. There is absolutely no way to tell what
these projects are and what they are supposed to do, so Tycho can't tell
if the user should be concerned or not.

--
Regards,
Igor

On 12-01-30 9:06 AM, Cristiano Gavião wrote:
On 30/01/12 09:59, Igor Fedorenko wrote:
packaging=jar is the Maven default.
Ok understand that, but a common jar doesn't make any sense in a osgi
environment / tycho reactor because we can't use it, am I right ?

If so, wouldn't be a good thing tycho complains about such projects in
the reactor ?

cheers,
Cristiano

--
Regards,
Igor

On 12-01-30 7:04 AM, Cristiano Gavião wrote:
On 29/01/12 22:42, Igor Fedorenko wrote:
There are couple of problems.

First, com.c4biz.osgiutils.configuration.manager.test.conf project
should have packaging=eclipse-plugin in pom.xml.
Upps... such a shame ! :(

It was the first time that I've used m2e to convert a plugin (such a
nice tool btw) and I don't pay attention in the packaging...
really don't see that... sorry


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.
I don't care about not use the qualifier in the host clause because
mostly time we are building only one version for the entire product. But
I think I was influenced by the PDE tool when I selected the host.

But what called my attention was the fact that a jar (without any
packaging) being built in a tycho reactor...

would this be allowed ?

thanks for your time, Igor.

regards

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

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


Back to the top