tycho

JUnit test fails with java.lang.ClassNotFoundException: com.mysql.jdbc.Driver on Tycho environment

ⅰ亾dé卋堺 提交于 2019-12-13 21:18:13
问题 I have a very strange situation. I have a set of eclipse plugin projects which I am using tycho and maven for building them. I used JDBC driver in one of the projects and I have a test plugin to test this project. Since the com.mysql.jdbc plugin was not available in the eclipse p2 repository ( and we don't have our own p2), I imported the jdbc plugin and created an OSGi plugin and add the dependency to my local plugin. I have multiple eclipse workspaces sat up. Only in the very first

Maven offline build fails when it encouners google guava url with invalid character

不羁的心 提交于 2019-12-13 08:56:12
问题 I need to make my Tycho-Maven build work in offline mode, so I can deploy it to environments with no Internet connection and let people run the build from the previously downloaded artifacts for the third party code my app depends on. The product being built is an Eclipse RCP product, using the org.eclipse.tycho:target-platform-configuration plug-in to load the dependencies from an RCP target file. First I run mvn -Dmaven.repo.local=/some/path/ -DgeneratePom=true clean install to create the

Try to generate a p2 site with mixed osgi and non osgi bundle

霸气de小男生 提交于 2019-12-13 07:24:03
问题 I try many thing to create a p2 repository with all transitive (OSGI and non OSGI) maven dependencies of my project, but tycho take only account of osgi.bundle ? The maven-dependency-plugin copy all the maven files, and tycho-p2-extras-plugin generate the metadata for p2 site. tycho-p2-repository-plugin generate the p2 repository using the /target/source/plugins dependencies previously downloaded. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema

Creating Tycho product error: Missing requirement

天大地大妈咪最大 提交于 2019-12-13 04:29:55
问题 I'm new to Tycho. I am trying to create a product using Tycho, but every time I run it, I run into the following error: Cannot resolve project dependencies: [ERROR] Software being installed: RCPplugin.RCPplugin 0.0.1.qualifier [ERROR] Missing requirement: RCPplugin.RCPplugin 0.0.1.qualifier requires 'org.eclipse.rcp.feature.group [3.7.2.dist-8R9GFpOFUdy-521934]' but it could not be found [ERROR] [ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is

How to add a dependency to an Eclipse bundle in a Tycho build

梦想与她 提交于 2019-12-13 02:56:33
问题 I want to include org.eclipse.uml2.uml_4.0.0.v20120604-0919.jar in a Maven module. I've set up the p2 repository <repository> <id>juno</id> <layout>p2</layout> <url>http://download.eclipse.org/releases/juno</url> </repository> and configured the Tycho build extension. Which groupdId and artifactId do I have to use so that Tycho will include org.eclipse.uml2.uml_4.0.0.v20120604-0919.jar as a dependency? 回答1: In Tycho, you need to specify the dependencies of your plug-in in the OSGi manifest

Staged deployment of snapshot artifacts with Maven and Jenkins

南楼画角 提交于 2019-12-13 02:49:52
问题 Problem Description We have several multi-module projects which are depending on each other. So something like this: messaging framework othercomponent They have separate source control repository, and lets say, that submodules inside messaging and othercomponent are using bundles from the submodules of framework . All of the projects are OSGI based multi-module maven projects. All of them have a server part, and a single sourced GUI part (Eclipse RAP+RCP). So this ends up in a three step

How to get a Fragment-Bundle into Tycho test runtime?

倖福魔咒の 提交于 2019-12-12 10:50:50
问题 I have an implementation bundle and fragment bundle dependent on it (Fragment-Host in MANIFEST). Moreover, there is a bundle with some tests. Now I want to test my implementation and use the tycho-surefire-plugin. The bundle with tests refers to the implementation bundle by means of Require-Bundle in MANIFEST. So far so good. The question is how do I get the fragment bundle into the test runtime? I have tried the dependency in the configuration of the tycho-surefire-plugin in my eclipse-test

Define .eclipseproduct during build

谁都会走 提交于 2019-12-12 06:02:03
问题 When I build my product .eclipseproduct is generated. Is this file still relevant for Eclipse 3.6+? Is there a way to modify this file to reflect my product? I know I can alter this file myself, but was wondering if there is a plugin that can do this? 回答1: In the installation profile ( p2/org.eclipse.equinox.p2.engine/profileRegistry/<ProfileName>.profile/<highest number>.profile.gz ) of your product installation, you can find out where the .eclipseproduct file comes from: It is extracted

How to build and deploy war file of e4 RAP application with tycho

隐身守侯 提交于 2019-12-12 04:23:49
问题 I have an e4 RCP product which I want to deliver a e4 RAP application for. Thus, I added a new OSGi bundle which contributes the following implementation of the org.eclipse.rap.rwt.application.ApplicationConfiguration interface, which is declared in the contribution.xml in OSGI-INF folder: public class BasicApplication implements ApplicationConfiguration { public void configure(Application application) { Map<String, String> properties = new HashMap<String, String>(); properties.put(WebClient

Failed to Resolve Target Definition on OpenShift

半世苍凉 提交于 2019-12-12 01:36:57
问题 I'm trying to get a Tycho build to work on an OpenShift server. Locally resolving the target definition and building works fine, but when deploying I get the following error: Unable to read repository at http://download.eclipse.org/rt/rap/2.2/content.xml. Permission denied I'm not sure if its a problem in the Tycho configuration (but as far as I can remember, I didn't do anything outside the build reactor to make Tycho work) or the one of OpenShift. Could someone tell me what the problem is