tycho

Combine/aggregate eclipse p2 repositories / extendable p2 repository

守給你的承諾、 提交于 2019-11-28 19:45:12
With maven/tycho build for Nodeclipse Eclipse plugin there is new p2 repository every release. Release is done on Bintray that does not allow to update files. So every version goes in its folder. BaseFolder BaseFolder/VersionFolder1 BaseFolder/VersionFolder2 BaseFolder/VersionFolder3 Is it possible to have BaseFolder prepared once as extendable p2 repository, and VersionFolderN added later? So that there would be only one URL for updates and Eclipse platform could discover updates in the repository. What you are looking for is a composite p2 repository. You'll just need the following two files

Building a p2 repository by resolving Tycho features from a Maven repository

余生颓废 提交于 2019-11-28 19:42:14
I'm trying to build a p2 repository from Tycho feature artifacts which are deployed in a remote Maven repository, without having to install the artifacts into the local Maven repository first (as in Tycho fails to resolve reference from product to eclipse-feature from a different reactor build ), and without having to build all features and the repository together in a single reactor build. Background I have a multi-module Tycho project that builds several Eclipse plugins and features. So that I can build each module separately - and so that I can reference OSGI artifacts in our Nexus Maven

Should I use POM first or MANIFEST first when developing OSGi application with Maven?

限于喜欢 提交于 2019-11-28 19:33:15
There are two main approaches when developing an OSGi application with Maven: POM-first and MANIFEST first. I'm looking for an answer that is in a form of a table that shows pros and cons of each method. To be more specific, I would also like to know how it relates to: Maturity of toolset Vendor independence Development ease (which includes finding people who can do the development on the tooling) Compatibility Avoiding ClassNotFound Avoiding manual work At present this is what I can come up with POM-First Pros (using maven-bundle-plugin) Leverages existing Maven skills, repositories and

Tool for managing/hosting own p2 repositories?

风格不统一 提交于 2019-11-28 17:47:06
Our company uses Maven. We use the Nexus repository manager in order to store our snapshots and releases. Currently, we are developing a product based on Eclipse. We use Tycho to do that. The problem is the following: In our Eclipse-based product we have many features. Our idea is build each feature (or group of features) separately and put them in internal p2 repositories. When one features requires another feature, we point the target platform to necessary internal p2 repository. Currently, we build application with Tycho. We make our features "deployable", so Tycho produces a P2 site in

“Unknown packaging: eclipse-plugin” in Maven

南楼画角 提交于 2019-11-28 10:52:03
I want to build a project in Maven using eclipse-plugin packaging, but I get the following error for my POM: [ERROR] Unknown packaging: eclipse-plugin @ line 15, column 13 . pom.xml: <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> <parent> <relativePath>../releng/pom.xml</relativePath> <groupId>net.sf.logsaw</groupId> <artifactId>parent</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <artifactId

Custom pom.xml filename in Maven multimodule for Tycho

女生的网名这么多〃 提交于 2019-11-28 08:15:13
问题 I have a project with a couple of dozen Eclipse plugins, all inter-related and living in different subfolders. The build was converted to a multi-module manifest-first Tycho build a couple of years ago and it works quite well. One of the plugins is rather key, and can also be built as a standalone Java app, which doesn't use an Eclipse runtime. Currently it has its own POM file ( pom-standalone.xml ) so that Jenkins can build the standalone app separately and the Tycho build knows nothing

How to reference mockito within tycho?

走远了吗. 提交于 2019-11-28 00:40:36
问题 I'm currently trying to get my build (~30 bundles) done by tycho. I faced some confusing problems when using Mockito in my unit tests. I created an eclipse-test-plugin as fragment project to the tested bundle. Since tycho should resolve the required bundles using the manifest, I removed the dependency to mockito from the pom.xml . When I then try to add mockito to the required bundles in the manifest mockito isn't listed. I found this post and created a target platform pointing to eclipse

Dependencies from pom.xml not considered by Eclipse in Tycho Project

浪尽此生 提交于 2019-11-27 21:31:39
I created a Tycho project with an eclipse-plugin packaging. The project includes some dependencies that are specified via pom.xml. The relevant pom sections are: <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <tycho.version>0.15.0</tycho.version> </properties> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-maven-plugin</artifactId> <version>${tycho.version}</version> <extensions>true</extensions> </plugin> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform

Tool for managing/hosting own p2 repositories?

依然范特西╮ 提交于 2019-11-27 20:11:45
问题 Our company uses Maven. We use the Nexus repository manager in order to store our snapshots and releases. Currently, we are developing a product based on Eclipse. We use Tycho to do that. The problem is the following: In our Eclipse-based product we have many features. Our idea is build each feature (or group of features) separately and put them in internal p2 repositories. When one features requires another feature, we point the target platform to necessary internal p2 repository. Currently,

Building a p2 repository by resolving Tycho features from a Maven repository

不问归期 提交于 2019-11-27 12:43:11
问题 I'm trying to build a p2 repository from Tycho feature artifacts which are deployed in a remote Maven repository, without having to install the artifacts into the local Maven repository first (as in Tycho fails to resolve reference from product to eclipse-feature from a different reactor build), and without having to build all features and the repository together in a single reactor build. Background I have a multi-module Tycho project that builds several Eclipse plugins and features. So that