首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Eclipse构建无法在customAssembly上找到jar位置

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

Stack Overflow用户
提问于 2009-06-18 16:40:25
回答 1查看 1K关注 0票数 0

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

customAssembly步骤中,它失败的原因是

代码语言:javascript
复制
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文件:

代码语言:javascript
复制
/tmp/eclipse.build/tmp/eclipse/plugins/javax.xml.soap_1.3.0.v200904281458.jar

我没有想法,因为这应该是一个完全自动的过程,但它失败了。

有什么想法吗?

生成文件

代码语言:javascript
复制
<?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"/>

完全源

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-06-18 17:20:45

我相信你在打这只虫子

作为一种解决办法,尝试将unpack="false"属性添加到您包含的二进制jar‘’ed插件(即大部分javax.* bundle)的com.itsolt.mantis_Feature.xml中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1013795

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档