Questions tagged [tycho]

1

votes
1

answer
812

Views

“Project build error: Unknown packaging: eclipse-plugin” in Maven

I have a maven parent in which I have defined 1 module for the plugin. The parent pom looks like this: 4.0.0 com.angle angle-eclipse 1.0.0 pom ../com.angle.ui 1.8 1.0.0 http://download.eclipse.org/releases/oxygen clean install oxygen p2 ${oxygen-repo.url} org.eclipse.tycho tycho-maven-plugin ${tycho...
Arjun Panicker
1

votes
1

answer
65

Views

Filling the gap between PDE and Tycho

I used to package my various Eclipse RCP products with PDE, for years. With my latest upgrade attempt to Eclipse Oxygen, I got some new strange resolution errors which I could not solve, and I decided it really was time to give Tycho a try. I followed the excellent article about Tycho by Lars Vogel,...
Steph
1

votes
0

answer
55

Views

What is the best way to cache a P2 target in a Gitlab CI Tycho build?

I have an existing Tycho project, which uses Eclipse Target Defintions to resolve the target platform. The download is slow, so I would like to implicitly cache this, if possible. I have the Gitlab CI cache mechanism available. However, I do not know what the most elegant way would be to cache the t...
Jörn Guy Süß
1

votes
0

answer
55

Views

Is it possible to have the materialize-products goal of tycho-p2-director-plugin include source features?

I am using tycho-source-plugin and tycho-source-feature-plugin to generate plugin source jars and source features. I am generating a p2 repository using tycho-p2-repository-plugin and a product using tycho-p2-director-plugin. For the p2 repository, I was able to include source jars by adding a c...
ajh158
1

votes
0

answer
84

Views

P2.inf filtering in Maven/Tycho during build phase of RCP

I'm trying to replace a variable in my p2.inf during the build phase using the maven-resources-plugin. According to this post I copied the p2.inf to another directory using filtering to replace my variable and in a later phase copy the filtered p2.inf back to it's original folder. This works fine fo...
Vincent
1

votes
0

answer
38

Views

Free Maven Repository with p2 support for Eclipse Tycho

I'm trying to find a free-to-use app that can serve as a maven repository with support for eclipse p2 that will allow me to deploy target platforms from a eclipse tycho maven build and I'm conflicted on Sonatype Repository Manager because it seems that p2 support was free in 2x with additional plugi...
Duncan Krebs
1

votes
0

answer
57

Views

Deleted eclipsec.exe back in installation folder of Eclipse RCP application after p2 update

I have an Eclipse RCP application that could be updated via a p2 repository. In the p2.inf file is defined that the eclipsec.exe is copied to a file with another name and after that it is deleted. units.0.instructions.configure=\ org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}...
illane
1

votes
1

answer
85

Views

Tycho: generate proguard/obfuscated feature

I have a working tycho build that does: build a set of bundles, for each of them: build a regular bundle.jar build/attach a source jar (using the tycho-source-plugin) build an obfuscated jar (using proguard-maven-plugin (com.github.wvengen)) build a number of features, for each of them: build a regu...
pitseeker
1

votes
1

answer
220

Views

Cannot resolve dependencies of MavenProject

My question is very unspecific, because i dont know where to start fixing the problem. I hope that you point to specific 'keywords' or code points, which i can use to analyze the problem. I was able to deploy eclipse bundle and eclipse feature and deployed it to my own repository mvnrepo.company.de...
Markus Lausberg
1

votes
1

answer
198

Views

Tycho build is failing because of p2 repositories

I use Tycho already a couple of months now. But yesterday I got an issue during building my application with Tycho. On first look, it was a repository that was down. But today I have the same issue and not only on the general Eclipse 4.7 repo but on other repo's. I use those repositories in my targe...
JimmyD
1

votes
0

answer
26

Views

Building non self-contained p2 repository

When I build p2 repository all the dependencies are resolved into repository. I want these dependencies to be downloaded when update site is installed. I set includeAllDependencies=false in tycho-p2-repository as discussed here, but that doesn't do anything. Non of my features explicitly require any...
Alex Kravets
1

votes
0

answer
114

Views

How to build a multiplatform Eclipse update site with Tycho

On my PDE/Tycho Eclipse environment I want to build a plugin of type eclipse-repository which contains 3 features each one for a specific platform. The eclipse-repository plugin reads all its configuration from a parent plugin which content is the following: 0.26.0 UTF-8 neon p2 http://download.ecli...
GLampros
1

votes
0

answer
73

Views

Product ini file name not being set to the launcher name

I'm creating an Eclipse RCP product and I set the launcher name to be 'MyProduct.' Maven/ Tycho build seem to be successful. But only the launcher name changes and not the ini; it keeps eclipse.ini. I thought the ini file was supposed to change to the launcher name if it's set. I've used the Eclipse...
Hayyy
1

votes
0

answer
15

Views

Programmatically pre-populating remote help URL in for Eclipse RCP

I'm trying to build an Eclipse RCP application and have a remote help URL pre-populated in the Preferences > Help > Content table. Is there an extension point or .product setting I can add to build an RCP application with a remote help link pre-populated? I'd like to add a remote help entry here: So...
noob noob
1

votes
1

answer
71

Views

target platform not found if building from child project with tycho

In my project there are multiple eclipse product files (100+ for differnt customers), I would like to build only one specific product at the time. If I build the whole project from the root folder, the project is build correctly with all products. cd scodi mvn clean verify I get an error if I try to...
flavio.donze
1

votes
0

answer
36

Views

RCP application missing required jar

I'm trying to build an RCP application which I've revived from an old project which was originally using a PDE build. The porting to maven was accomplished with the help of Tycho and I'm now able to create an eclipse.exe under Windows. The application uses a bundle and feature. The build is targeted...
Tschühüp
1

votes
0

answer
25

Views

Local maven repository in Eclipse installation

How can I copy a resource during Tycho build from Nexus repository so that it resides in Eclipse install directory once it's uncompressed? My end goal is to copy archived Maven repository to Eclipse install directory and use that as local Maven repository. In our Eclipse application we use Shrinkwra...
Alex Kravets
1

votes
3

answer
1.3k

Views

Tycho: How to prevent deployment in case of JUnit test failures?

I got an eclipse-plugin with some unit tests. In maven I kept the unit tests in the same bundle and specified junit as testing dependency in the pom.xml. Now I want to switch to tycho and I read that tycho is looking for a bundle with the same name plus a postfix '.tests' which gets executed. But I...
1

votes
1

answer
729

Views

How to remove directories from final build zip archive using maven 3

When the build is ready i have p2 folder in all build archives for different platforms.As i understand it's imposible to exclude p2 directory from archives on building stage. So I try pack archive myself instead of using archive-products execution. The problem is if i want to make archives for other...
Volad
1

votes
2

answer
832

Views

java.util.Date shows different values with the same input parameters

I try to System.out the same strings System.out.println(' DATE 29 ' + new Date(1330462800000l) + ' Date 01 ' + new Date(1330549200000l)); but I have different results when I check it in Build(running in console mode) and when i run application from eclipse. output from eclipse(seems like it is corr...
Volad
1

votes
2

answer
680

Views

Plugin JARs are missing in an application built with Tycho

I am building an Eclipse application with Maven Tycho. I managed to create the pom files for building the plugins and features. I ran install on them and got Build successful. I have also cretaed the pom for the application (product) and set the Packaging to 'eclipse-application'. The application is...
Jenny Smith
1

votes
4

answer
3.7k

Views

Tycho tests failing due to java.lang.NoClassDefFoundError: junit/framework/AssertionFailedError

I am completely flummoxed and flabbergasted by this one. In my understanding, it should work, but I don't know why. I have a tycho build that just runs a few tests in an eclipse worksbench. However, all of my tests fail with this kind of exception: java.lang.NoClassDefFoundError: junit/framework/A...
1

votes
1

answer
183

Views

tycho: missing org.eclipse.tycho.core.TychoProject

I try to run tycho in ubuntu, but I face this error. Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.14.1:build-qualifier (default-build-qualifier) on project tychodemo.bundle: Execution default-build-qualifier of goal org.eclipse.tycho:tycho-packaging-plugin:0.14.1:build-qualifier...
Narges
0

votes
0

answer
4

Views

maven cannot find javafx 11 when compiling an eclipse application

I have an eclipse application using javafx 11. For lack of better solution, I have javafx installed in /opt/javafx-sdk-11.0.2, the product definition contains --module-path /opt/javafx-sdk-11.0.2/lib/ --add-modules=javafx.controls as vm arguments, and .classpath contains these lines: My pom.xml look...
1

votes
1

answer
778

Views

tycho surefire with windowtester pro does not open correct window

I'm trying to set up a UI testing system with windowtester pro. I want to link those tests into the maven build process by using the Tycho plugin. For practising purpose I'm currently using an example project. Now, when I build my project everything seems to compile fine, but when the test starts I...
user1728683
1

votes
1

answer
673

Views

How to define an OSGI/Eclipse plugin with binary components for multiple platforms

I created an Eclipse plugin and there is a native binary needed to support its functionality. I have the native code ready for Win and Mac. The invocation of the native code is different for each platform, so there is also some plugin code related to the native code. (In fact the native code is JNA...
Peter Kofler
1

votes
2

answer
383

Views

Running unit tests in Tycho fails: resolves google-collections instead of Guava

I am having an issue running tests using tycho due to an incorrect dependency resolution that, somehow, is placing the the old Google Collections .jar on the classpath and not the Guava one, despite the fact that at no point in any of my poms do I specify a dependency on collections (only guava). My...
Erika Redmark
1

votes
1

answer
781

Views

Maven update site creation and deployment

I am trying to build an update site for my plugins built with maven. I have a site project with following entry; eclipse-update-site I get the site.zip in the end containing only site.xml in it even though within target/site I have all the folders i.e features/.jar, plugin/.jar, artefacts.jar, conte...
SJunejo
1

votes
1

answer
636

Views

How to specify the platform when generating POMs with Tycho?

My company has been building their Eclipse RCP Application with Ant as a PDE-build. I'm trying to migrate the build process to Tycho but I am getting several errors of the same kind. I only want to build for Windows 64-bit but Tycho keeps looking for Cocoa plugins, which are marked as optional in th...
qwertz
1

votes
1

answer
369

Views

How to build a feature to a zip file using Tycho

I'm trying to export an Eclipse feature using Tycho, replacing the 'Export Wizard' found on the Eclipse overview of the feature. The wizard gives the option for the export destination as a zip file. Is there a way to do the same with Tycho?
bak202
1

votes
3

answer
558

Views

Using Tycho, how do I build a Feature that includes other Features that I have built and deployed on my p2 repository

I want to build a Feature that is made up only of other Features that I have also built using Tycho. So, lets say the aggregator Feature is com.myurl.feature.agg In its feature.xml file, I have a couple of entries that look like this... ... The two features included are successfully built and reside...
twindham
1

votes
1

answer
291

Views

Jenkins + Tycho: propagating update sites

I'm wondering if there is an easy way to 'publish' p2 update sites in Jenkins (built with Tycho) so that they can easily be accessed in downstreams jobs? Currently I'm doing it semi-manually using Jenkins support for copying artifacts between jobs, and then specifying a repository-mirror element in...
JesperE
1

votes
1

answer
224

Views

how to convert plugin (Created from existing jar) to maven

I had created eclipse plugin from existing jar and I'm exporting all the packages as in below image. All the packages Exported packages. Now I'm converting This plugin to Maven by using configurator Now my plugin look like following and there no package is showing for export. Now packages showing...
Sumit Singh
1

votes
1

answer
199

Views

Run Cobertura on xtext-project together with Maven and Tycho-surefire

I have a multi-modul project with one test modul that tests three others. I have already set up the cobertura instrumentation, merging and reporting with maven antrun-plugin described here: cobertura on maven multi module project but I don't override the normal classes with the instrumented ones but...
Christian
1

votes
1

answer
726

Views

Jarsigner doesn't sign plugin dependencies

In a maven repository I have an eclipse plugin, which I need in order to create a feature. The local dependency test.branding.plugin is signed, but the downloaded from nexus test.plugin.nexus isn't. This is how I have defined the dependency in my parent pom.xml test.plugin nexus 1.0.0 Here is the r...
aphex
1

votes
2

answer
2k

Views

Replace snapshot with qualifier tycho

I'm building my eclipse plugin by using Tycho(0.19). In MENIFEST.MF My plugin ID is 1.0.0.qualifier, In pom file for same plgugin there is no version because master pom has version 1.0.0-SNAPSHOT (Even I tried to put version in plugin also but same result) When I ran the build I'm getting my plugin...
Sumit Singh
1

votes
1

answer
276

Views

Same plugin in two features in the same product leads to conflict because of version qualifier

I build mutiple Eclipse products using Tycho. I have a job in Jenkins per feature of my applications, plus one for utilities and one for products. The following diagram describes my setup: In one job ('A'), I build a plugin ('a') among others. Its version has the 'qualifier' placeholder. This plugin...
S. Cambon
1

votes
2

answer
428

Views

How to include uncompiled java files in a JAR built by Tycho?

I have a source root with *.java files, but I don't want them to be compiled. Instead, the *.java files should be copied into the jar as they are. The use case for this is that the *.java files are templates and hence should be preserved as they are. To achieve this, I tried to exclude a source fold...
Danny Lo
1

votes
2

answer
3.4k

Views

Project dependency error when using my local p2 repository with necessary jar files

I have created a eclipse plugin and I am in need of converting the eclipse plugin project into maven so that I converted it into maven with the help of Tycho.when i try to execute as eclipse application it works fine.But when i try to maven clean it fails. [INFO] Scanning for projects... [INFO] Can...
Obuli Sundar
1

votes
1

answer
49

Views

Tycho/Maven cross references between source directories of the same plugin

when building a project using Maven and Tycho, I receive an error message saying Class xy 'cannot be resolved to a type'. This happens on multiple occasions with one thing they all have in common: In the plugins, there are 1-3 source directories (e.g. src, src-gen and xtend-gen). If there is a class...
Bumperguard

View additional questions