tycho

Plugin.xml file is not found /generated for eclipse plugin project

醉酒当歌 提交于 2019-12-07 10:40:49
问题 I am developing one maven plugin which will be used to override default maven lifecycle.To resolve dependencies (eclipse and other) , I want to use tycho. So I cofigured maven project to convert it into eclipse-plugin-project. Heres my POM <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> <groupId>com.test

Tycho: Bundle X - Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.7

霸气de小男生 提交于 2019-12-07 07:35:15
问题 I have changed the BREE from JavaSE-1.6 to JavaSE-1.7 in the manifest files of my application: Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Now I can not compile the application again. When I run mvn clean install I get: [INFO] Resolving dependencies of MavenProject: Xgroup:X:4.0.100-SNAPSHOT @ C:\Users\....\X\pom.xml [WARNING] The following locally built units have been used to resolve project dependencies: [WARNING] Za [WARNING] Zb [INFO] Resolving class path of MavenProject: Xgroup:X:4

Build local eclipse plugins using tycho pointing to local p2 repository

限于喜欢 提交于 2019-12-07 05:49:52
问题 I am creating some Eclipse plugin and features that require third-party plugins and features. In order to include these dependencies into my project, I created a p2 layout repository. Note: My p2 artifacts are not Maven project... However, I am using Maven style building. Here is the pom.xml for the p2 repository <properties> <tycho-version>0.18.0</tycho-version> </properties> <repositories> <repository> <id>eclipse-platform-m6</id> <layout>p2</layout> <url>http://download.eclipse.org/eclipse

Installing an additional feature during product build for some Eclipse versions only

荒凉一梦 提交于 2019-12-06 16:40:24
When building a product based on Eclipse 3.7+, I want to include a marketplace feature (org.eclipse.epp.mpc). I don't want to explicitly add this feature to one of the product features because I am also building for Eclipse 3.5. Is there a way to add this feature during the build? It is currently not possible to create a product distribution which contains additional features, i.e. features which are not directly or indirectly referenced from the product. This enhancement was requested in this ticket , but is not available in the current Tycho version (0.16.0). However there is the possibility

Tycho: Categorize p2 metadata

大憨熊 提交于 2019-12-06 11:53:09
Iam trying to generate a categorized p2 repository with Tycho. There are basically three steps to make (compare Eclipse documentation ): Download Bundles Trigger org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher Trigger org.eclipse.equinox.p2.publisher.CategoryPublisher which i configured in a maven pom-file. Steps 1 and 2 are doing well whereas step 3 fails with: Status ERROR: this code=0 publishing result null children=[Status ERROR: org.eclipse.equinox.p2.updatesite code=0 Error generating category xml action. org.eclipse.equinox.p2.core.ProvisionException: Error reading update

How can I use Eclipse p2 repositories from Maven?

喜你入骨 提交于 2019-12-06 11:04:20
问题 I am trying to create an Eclipse based setup where Eclipse projects are Maven based. So it should all work with Maven whether or not Eclipse is used. I have a dependencies on various Eclipse project libraries, with more to be added. I want to use p2 repositories, and I've managed to pull an Eclipse EMF library and turn it into a jar following this example: Use dependencies from Eclipse p2 repository in a regular Maven build? The problem is, I could not find a way of streamlining the process.

Adding test-only dependencies for non-OSGi JUnit test in a Tycho project

江枫思渺然 提交于 2019-12-06 07:15:31
问题 I have several OSGi-bundles that I build with Eclipse Tycho. All code dependencies are managed manifest-first. Now I want to develop some pure JUnit-Tests in order to test bundle-internal functionality. These tests do not need an OSGi-container in order to be executed, but they do need Mockito. As Mockito obviously is only needed when this non-OSGi-tests are being run and not during the execution of the bundle itself, it feels wrong to add the dependency to the MANIFEST.MF file. My current

Maven Tycho: How to Exclude eclipsec.exe in a product build?

最后都变了- 提交于 2019-12-06 03:19:20
问题 I switched the build of our Eclipse RCP product from PDE-build to Maven Tycho. In addition to the main (branded) launcher executable, the product now includes the "eclipsec.exe" file. We would like to omit this console-based launcher from our product as it might confuse our customers. Is there a way to do that with Tycho? 回答1: I got this answer on the tycho-users list: In your eclipse-repository project, assuming that you have a .product file, you can place another file in the same directory

Build Eclipse cross-platform with Maven Tycho

折月煮酒 提交于 2019-12-06 01:41:45
问题 I try to compile an Eclipse Indigo RCP application with Maven and Tycho . It works fine if I just build it for one platform but if I try to build it for more the build stops working. The Problem is that I have platform specific plugins in my product file I want to build. Dependencies like org.eclipse.swt.win32.win32.x86 which are fragment plugins for org.eclipse.swt . When I add no platform specific fragments to my product the application wouldn't start because there are no platform libraries

eclipse tycho + java 11 = Unknown OSGi execution environment: 'JavaSE-11'

怎甘沉沦 提交于 2019-12-05 11:52:47
How to build an eclipse RCP app based on Java 11 with tycho? I'm using eclipse 2018-09 RCP + the Java 11 plugin + OpenJDK 11 My application is plugin-based and in all the plugins, the MANIFEST.MF file contains: Bundle-RequiredExecutionEnvironment: JavaSE-11 The tycho build fails with the following exception: [ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST {...}\META-INF\MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-11' -> [Help 1] org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.core