User Tools

Site Tools


maven:maven_tycho

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
maven:maven_tycho [2015/09/03 16:51] skipmaven:maven_tycho [2023/11/01 07:15] (current) – ↷ Page moved from camunda:maven:maven_tycho to maven:maven_tycho skipidar
Line 1: Line 1:
 +===== Maven tycho =====
  
 +Maven tycho is a maven plugin, which is able to build eclipse artefacts.
 +  * plugins
 +  * update-sites
 +  * features
 +  * RCP applications
 +
 +
 +====  ====
 +
 +
 +
 +==== eclipse-target-definition ====
 +The target platform may should be packages as **eclipse-target-definition**
 +
 +<code>
 +<?xml version="1.0" encoding="UTF-8"?>
 +<project>
 + <modelVersion>4.0.0</modelVersion>
 + <groupId>ru.mine</groupId>
 + <artifactId>target</artifactId>
 + <version>1.0.0-SNAPSHOT</version>
 + <packaging>eclipse-target-definition</packaging>
 +
 + <properties>
 + <tycho-version>0.23.1</tycho-version>
 + </properties>
 +
 + <build>
 + <plugins>
 + <plugin>
 + <groupId>org.eclipse.tycho</groupId>
 + <artifactId>tycho-maven-plugin</artifactId>
 + <version>${tycho-version}</version>
 + <extensions>true</extensions>
 + </plugin>
 + </plugins>
 + </build>
 +</project> 
 +</code>
 +
 +
 +
 +==== eclipse-plugin ====
 +The plugin is build via **eclipse-plugin**. \\
 +The dependencies may be resolved via e.g. via a [[https://wiki.eclipse.org/Tycho/Target_Platform#Target_platform_configuration|target platform]] \\
 +The following references the upper target, to resolve dependencies.
 +
 +<code>
 + <plugins>
 + <plugin>
 + <groupId>org.eclipse.tycho</groupId>
 + <artifactId>target-platform-configuration</artifactId>
 + <version>${tycho.version}</version>
 + <configuration>
 + <target>
 + <artifact>
 + <groupId>ru.mine</groupId>
 + <artifactId>target</artifactId>
 + <version>1.0.0-SNAPSHOT</version>
 + </artifact>
 + </target>
 + </configuration>
 + </plugin>
 + </plugins>
 + </build>
 +</project>
 +</code>
 +
 +The relevant plugin is configured separately via **target-platform-configuration**
 +
 +Here is the complete project configuration, to build a plugin.
 +
 +<code>
 +<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>ru.mine.annotationbinder</groupId>
 + <artifactId>ru.mine.annotationbinder</artifactId>
 + <version>1.0.0-SNAPSHOT</version>
 + <packaging>eclipse-plugin</packaging>
 +
 + <properties>
 + <tycho.version>0.23.0</tycho.version>
 + </properties>
 +
 + <build>
 + <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-configuration</artifactId>
 + <version>${tycho.version}</version>
 + <configuration>
 + <target>
 + <artifact>
 + <groupId>ru.mine</groupId>
 + <artifactId>target</artifactId>
 + <version>1.0.0-SNAPSHOT</version>
 + </artifact>
 + </target>
 + <environments>
 + <environment>
 + <os>win32</os>
 + <ws>win32</ws>
 + <arch>x86</arch>
 + </environment>
 + <environment>
 + <os>win32</os>
 + <ws>win32</ws>
 + <arch>x86_64</arch>
 + </environment>
 + </environments>
 + </configuration>
 + </plugin>
 + </plugins>
 + </build>
 +</project>
 +</code>