Eclipse PDE构建无法在customAssembly上找到jar位置

时间:2022-09-11 19:55:50

I'm running a PDE build - pretty much defaults ( see at the end of the message ) which manages to copy all my plugins/features, resolve them, compile them and generate p2 metadata.

我正在运行PDE构建 - 几乎是默认的(参见消息的末尾),它设法复制我的所有插件/功能,解析它们,编译它们并生成p2元数据。

At the customAssembly step it fails misteriously with

在customAssembly步骤,它失败了

BUILD FAILED
/home/robert/apps/eclipse/plugins/org.eclipse.pde.build_3.5.0.v20090527-1800/scripts    /build.xml:38: The following error occurred while executing this line:
/home/robert/apps/eclipse/plugins/org.eclipse.pde.build_3.5.0.v20090527-1800/scripts   /build.xml:129: The following error occurred while executing this line:
/home/robert/apps/eclipse/plugins/org.eclipse.pde.build_3.5.0.v20090527-1800/templates/headless-build/customTargets.xml:12: The following error occurred while executing this line:
/home/robert/apps/eclipse/plugins/org.eclipse.pde.build_3.5.0.v20090527-1800/templates/headless-build/allElements.xml:16: The following error occurred while executing this line:
/home/robert/apps/eclipse/plugins/org.eclipse.pde.build_3.5.0.v20090527-1800/scripts/genericTargets.xml:192: The following error occurred while executing this line:
/tmp/eclipse.build/package.com.itsolut.mantis_feature.all.xml:23: The following error occurred while executing this line:
/tmp/eclipse.build/package.com.itsolut.mantis_feature.all.xml:15: The following error occurred while executing this line:
/home/robert/apps/eclipse/plugins/org.eclipse.pde.build_3.5.0.v20090527-1800/templates/headless-build/allElements.xml:31: The following error occurred while executing this line:
/tmp/eclipse.build/package.com.itsolut.mantis_feature.xml:99: The following error occurred while executing this line:
/tmp/eclipse.build/package.com.itsolut.mantis_feature.xml:169: /tmp/eclipse.build/tmp/eclipse/plugins/javax.xml.soap_1.3.0.v200904281458 not found.

Strangely enough, there is a jar file located in the /tmp/eclipse.build/tmp/eclipse/plugins/ directory:

奇怪的是,/tmp/eclipse.build/tmp/eclipse/plugins/目录中有一个jar文件:

/tmp/eclipse.build/tmp/eclipse/plugins/javax.xml.soap_1.3.0.v200904281458.jar

I'm out of idea since this is supposed to be a completely automatic process, but yet it fails misteriously.

我不在乎,因为这应该是一个完全自动化的过程,但它却不知所措。

Any ideas?


Build file

<?xml version="1.0" encoding="UTF-8"?>
<project name="Build Mylyn-Mantis" default="runBuild">

<property name="builder" location="."/>
<property name="topLevelElementId" value="com.itsolut.mantis_feature"/>
<property name="baseLocation" location="${eclipse.home}"/>
<property name="base" location="${baseLocation}/.."/>
<property name="buildDirectory" location="${java.io.tmpdir}/eclipse.build"/>

<import file="${eclipse.pdebuild.scripts}/build.xml"/>

<target name="copyProjects">
    <delete dir="${buildDirectory}"/>
    <mkdir dir="${buildDirectory}"/>

    <record name="${buildDirectory}/${topLevelElementId}-build.log" loglevel="verbose"/>

    <echoproperties/>

    <mkdir dir="${buildDirectory}/features/${topLevelElementId}"/>
    <copy todir="${buildDirectory}/features/${topLevelElementId}">
        <fileset dir="../com.itsolut.mantis-feature"/>
    </copy>

    <mkdir dir="${buildDirectory}/plugins"/>

    <copy todir="${buildDirectory}/plugins">
        <fileset dir="..">
            <include name="com.itsolut.mantis/**"/>
            <include name="com.itsolut.mantis.core/**"/>
            <include name="com.itsolut.mantis.ui/**"/>
            <exclude name="*/bin/**"/>
        </fileset>
    </copy>
</target>

<target name="runBuild" depends="copyProjects,main"/>

Complete source

Brave souls can take a look at the project in svn for more information.

勇敢的灵魂可以在svn中查看项目以获取更多信息。

1 个解决方案

#1


I believe you are hitting this bug.

我相信你正在遇到这个bug。

As a workaround, try adding unpack="false" attributes to your com.itsolut.mantis_feature/feature.xml for the binary jar'ed plugins you are including (ie probably most of the javax.* bundles).

作为一种解决方法,尝试将unpack =“false”属性添加到com.itsolut.mantis_feature / feature.xml中,以获取您所包含的二进制jar'ed插件(即可能是大多数javax。*包)。

#1


I believe you are hitting this bug.

我相信你正在遇到这个bug。

As a workaround, try adding unpack="false" attributes to your com.itsolut.mantis_feature/feature.xml for the binary jar'ed plugins you are including (ie probably most of the javax.* bundles).

作为一种解决方法,尝试将unpack =“false”属性添加到com.itsolut.mantis_feature / feature.xml中,以获取您所包含的二进制jar'ed插件(即可能是大多数javax。*包)。