unknowIfGuestInDream / tlstudio

Currently includes SWT examples, and will support jface and other examples in the future
Eclipse Public License 2.0
0 stars 0 forks source link

[KnowHow] Jenkins工作流打包 #48

Open unknowIfGuestInDream opened 1 month ago

unknowIfGuestInDream commented 1 month ago

Describe the knowHow

https://wiki.eclipse.org/Tycho/Packaging_Types

unknowIfGuestInDream commented 1 month ago

https://www.cnblogs.com/hibou/p/7763927.html

如何用maven tycho构建自己的Eclipse RCP应用 - Hibou - 博客园
在你写了一个Eclipse插件之后,也许你就会想如何把它变成一个P2的项目或者是一个Java App让大家可以安装到自己的Eclipse上,dangdangdang~~ 这是你就可以利用maven-tycho插件构建你的RCP应用了。 下面是Step by step的教程: Eclipse Tych
unknowIfGuestInDream commented 1 month ago

https://www.vogella.com/tutorials/EclipseTycho/article.html

Maven Tycho for building Eclipse plug-ins, OSGi bundles and Eclipse applications with the command line - Tutorial
unknowIfGuestInDream commented 1 month ago

https://blog.csdn.net/qq_57581439/article/details/126281020 https://zhuanlan.zhihu.com/p/583812704

Just a moment...
知乎专栏
史上最全 Jenkins Pipeline流水线详解
一、什么是流水线jenkins 有 2 种流水线分为声明式流水线与脚本化流水线,脚本化流水线是 jenkins 旧版本使用的流水线脚本,新版本 Jenkins 推荐使用声明式流水线。文档只介绍声明流水线。 1.1 声明式流水线在声明…
unknowIfGuestInDream commented 3 weeks ago
<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>
    <groupId>com.xxx.releng</groupId>
    <artifactId>xxx-releng</artifactId>
    <version>8.3.0-SNAPSHOT</version>
  </parent>
  <groupId>com.xxx.releng</groupId>
  <artifactId>com.xxx.rcp</artifactId>
  <version>2.2.0-SNAPSHOT</version>
  <packaging>eclipse-repository</packaging>
  <repositories>
    <repository>
      <id>${id.prefix.p2deps}_justj</id>
      <url>${xxx-justj-p2-repo.url}</url>
      <layout>p2</layout>
    </repository>
    <repository>
      <id>babel</id>
      <url>${eclipse-babel-p2-repo.url}</url>
      <layout>p2</layout>
    </repository>
  </repositories>
  <build>
    <finalName>com.xxx.rcp</finalName>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-packaging-plugin</artifactId>
        <configuration>
          <format>'${buildId}'</format>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <configuration>
          <resolver>p2</resolver>
          <pomDependencies>consider</pomDependencies>
          <environments>
            <environment>
              <os>win32</os>
              <ws>win32</ws>
              <arch>x86_64</arch>
            </environment>
          </environments>
          <!--Needed for JustJ-->
          <executionEnvironment>none</executionEnvironment>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-repository-plugin</artifactId>
        <configuration>
          <includeAllDependencies>true</includeAllDependencies>
          <compress>true</compress>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.6</version>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <configuration>
              <outputDirectory>${project.build.directory}</outputDirectory>
              <overwrite>true</overwrite>
              <resources>
                <resource>
                  <directory>${basedir}</directory>
                  <includes>
                    <include>build_info.properties</include>
                  </includes>
                  <filtering>true</filtering>
                </resource>
              </resources>
            </configuration>
            <goals>
              <goal>copy-resources</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-director-plugin</artifactId>
        <executions>
          <execution>
            <id>create-distributions</id>
            <goals>
              <goal>materialize-products</goal>
              <goal>archive-products</goal>
            </goals>
            <configuration>
              <products>
                <product>
                  <id>comxxx.product</id>
                  <rootFolder>eclipse</rootFolder>
                </product>
              </products>
              <formats>
                <win32>zip</win32>
                <linux>tar.gz</linux>
                <macosx>tar.gz</macosx>
              </formats>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
unknowIfGuestInDream commented 3 weeks ago

https://www.vogella.com/tutorials/EclipseTycho/article.html

Maven Tycho for building Eclipse plug-ins, OSGi bundles and Eclipse applications with the command line - Tutorial