Сборка Eclipse PDE не может найти местоположение jar на customAssembly

Я запускаю сборку 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"/>

Полный источник

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


person Robert Munteanu    schedule 18.06.2009    source источник


Ответы (1)


Я полагаю, что вы столкнулись с этой ошибкой.

В качестве обходного пути попробуйте добавить атрибуты unpack="false" в файл com.itsolut.mantis_feature/feature.xml для бинарных jar-плагинов, которые вы включаете (т. е., вероятно, для большинства пакетов javax.*).

person Andrew Niefer    schedule 18.06.2009