tycho-p2-director-plugin Materialize-products 执行失败,因为需要一个目录,但是是 .jar

发布于 2024-12-28 10:49:09 字数 2139 浏览 4 评论 0原文

我尝试使用 Tycho 0.13.0 构建产品,但在 Materialize-product 执行时出现以下错误:

安装项目会话上下文时发生错误 是:(配置文件=默认配置文件, 阶段=org.eclipse.equinox.internal.p2.engine.phases.Install, 操作数=null --> [R]org.jruby 1.2.0, 动作=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.ChmodAction)。 神器 ${PATH_TO_PRODUCT_PLUGIN}/target/products/ewa/linux/gtk/x86/plugins/org.jruby_1.2.0.jar 不是目录。

Reactor总结后出现以下错误:

[错误] 未能执行目标 org.eclipse.tycho:tycho-p2-director-plugin:0.13.0:materialize-products (materialize-products) 项目 org.ewazone.ewa.project:P2 总监 返回代码为 13 -> [帮助1]

项目插件中的 pom.xml

<parent>
        <artifactId>ewa</artifactId>
        <groupId>ewa.ewa</groupId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    <groupId>ewa</groupId>
    <artifactId>org.ewazone.ewa.project</artifactId>
    <version>1.0.0.qualifier</version>
    <packaging>eclipse-repository</packaging>
    <build>
        <plugins>
            <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>
</project>

我不知道如何解决该问题。

I try to build a product with Tycho 0.13.0, but I get a following error while materialize-product execute:

An error occurred while installing the items session context
was:(profile=DefaultProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Install,
operand=null --> [R]org.jruby 1.2.0,
action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.ChmodAction).
The artifact
${PATH_TO_PRODUCT_PLUGIN}/target/products/ewa/linux/gtk/x86/plugins/org.jruby_1.2.0.jar is not a directory.

And the following error after Reactor summary:

[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-p2-director-plugin:0.13.0:materialize-products
(materialize-products) on project org.ewazone.ewa.project: P2 director
return code was 13 -> [Help 1]

pom.xml in a project plugin:

<parent>
        <artifactId>ewa</artifactId>
        <groupId>ewa.ewa</groupId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    <groupId>ewa</groupId>
    <artifactId>org.ewazone.ewa.project</artifactId>
    <version>1.0.0.qualifier</version>
    <packaging>eclipse-repository</packaging>
    <build>
        <plugins>
            <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>
</project>

I have no ideas about how to solve that problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴意少年 2025-01-04 10:49:09

如果您进入 org.jruby 插件的清单文件,您可以添加 Eclipse-BundleShape: dir 行(区分大小写),然后它将作为目录弹出您产品的插件文件夹。

If you go into the org.jruby plugin's manifest file, you can add the Eclipse-BundleShape: dir line (Case Sensitive) and it will then pop out as a directory in your product's plugins folder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文