【问题标题】:Eclipse PDE build fails to find jar location on customAssemblyEclipse PDE 构建无法在 customAssembly 上找到 jar 位置
【发布时间】:2014-03-11 18:06:50
【问题描述】:

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

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.

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

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

我不知道,因为这应该是一个完全自动的过程,但它却莫名其妙地失败了。

有什么想法吗?


构建文件

<?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"/>

完整来源

勇敢的灵魂可以查看the project in svn了解更多信息。

【问题讨论】:

    标签: eclipse eclipse-plugin eclipse-pde


    【解决方案1】:

    我相信你在打this bug

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      • 2010-11-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多