Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350740 - Platform filter did not match: (&(osgi.os=linux) (osgi.arch=x86))
Summary: Platform filter did not match: (&(osgi.os=linux) (osgi.arch=x86))
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 14:49 EDT by stevetsh CLA
Modified: 2021-04-28 16:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stevetsh CLA 2011-06-29 14:49:47 EDT
Build Identifier: 

Hello,

I am using Bundles base on fragment from org.vtk.
The plugins created are {org.vtk.win32, org.vtk.linux_x86, org.vtk.linux_x86_64} when I specify it on the MANIFEST file (& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86)), then run them with Maven3/Tycho; I get an error "Platform filter did not match"; Here is the full error message:

[ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.vtk.linux.x86 cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle org.vtk.linux.x86 - Platform filter did not match: (&(osgi.os=linux) (osgi.arch=x86))
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.vtk.linux.x86 cannot be resolved
Resolution errors:
   Bundle org.vtk.linux.x86 - Platform filter did not match: (&(osgi.os=linux) (osgi.arch=x86))

	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.vtk.linux.x86 cannot be resolved


Reproducible: Always

Steps to Reproduce:
1. create Bundles based on fragment (e.g.: org.vtk.linux_x86) 
2. run mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms -DgroupId=$prjName
3. run mvn clean install -Dtycho.targetPlatform=$ECLIPSE
Comment 1 Igor Fedorenko CLA 2011-07-13 08:22:37 EDT
If I understood your scenario correctly, integration test [1] covers this exact case so please check if your project has correct target environment configuration in pom.xml file. If you still believe this is a bug or a missing feature, please reopen but make sure to attach complete standalone sample project and steps to reproduce the problem.

[1] https://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/TYCHO242multiplatformReactor