我最近将我们的RCP应用程序的构建从PDE Build转移到了tycho(0.14.0)。到目前为止一切正常,但启动画面不再显示。 osgi.splashPath属性设置正确,并且splash.bmp文件存在于导出的bundle root中(如果重要,则bundle在启动时甚至是活动的)。打包是eclipse-repository。还有什么需要寻找的吗?
这是pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>com.my.client.parent</artifactId>
<groupId>com.my</groupId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../com.my.client.parent/pom.xml</relativePath>
</parent>
<artifactId>com.my.client.product</artifactId>
<packaging>eclipse-repository</packaging>
<version>2.0.0-SNAPSHOT</version>
<properties>
<product-id>com.my</product-id>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
* 编辑:* 我在我们的CI服务器上集成了项目,结果显示了漂亮的启动画面 - 感谢您的支持,问题神奇地修复了......
答案 0 :(得分:1)
tycho教程有一个带有初始屏幕的演示版本
https://github.com/jsievers/tycho-demo/tree/master/exercises/Exercise_05_Solution
答案 1 :(得分:0)
据我所见,你的pom还可以。你能检查你的build.properties,看看splash.bmp
是否被标记为要导出?我知道你说插件包含你的启动,但只是为了确认...
我不知道这是否会有所帮助,但这是我的pom.xml
工作
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>br.com.germantech.parent</groupId>
<artifactId>ws</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../br.com.germantech.parent/pom.xml</relativePath>
</parent>
<groupId>br.com.germantech</groupId>
<artifactId>br.com.germantech</artifactId>
<version>1.8.13</version>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
<createArtifactRepository>true</createArtifactRepository>
<compress>true</compress>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>archive-repository</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
<configuration>
<profile>Installer</profile>
</configuration>
</execution>
<execution>
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
<configuration>
<products>
<product>
<id>br.com.germantech.ecfNfe</id>
<rootFolder>germantechEcfNfe</rootFolder>
<attachId>${project.version}</attachId>
</product>
</products>
<formats>
<win32>zip</win32>
<linux>tar.gz</linux>
<macosx>tar.gz</macosx>
</formats>
</configuration>
</plugin>
</plugins>
</build>
</project>
我正在使用tycho 0.14.0