Hi,
Just had to take over the ant build of several plugins, which fail for reasons I cannot understand. I have a runtime dependency issue too, but a separate post for that.
In my build.xml I have the following pde instruction on line 125:
<target name="build.CDOServer" depends="init">
<delete dir="${buildDirectory}/CDOServer" />
<pde run="-buildfile ${eclipse.pdebuild.scripts}/productBuild/productBuild.xml -Dproduct=/com.yambina.edm.cdoserver/CDOServer.product" name="CDOServer" />
When I run I get this output:
build.CDOServer:
[java] Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
[java] Buildfile: /Users/david/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/scripts///productBuild/productBuild.xml
[java] main:
[java] preBuild:
[java] preSetup:
[java] checkLocalMaps:
[java] getMapFiles:
[java] postSetup:
[java] checkLocalBase:
[java] getBaseComponents:
[java] processRepos:
[java] generateFeature:
[java] fetch:
[java] generateFeature:
[java] [eclipse.generateFeature] Some inter-plug-in dependencies have not been satisfied.
[java] [eclipse.generateFeature] Bundle com.yambina.edm.ui:
[java] [eclipse.generateFeature] Missing required plug-in com.yambina.edm.ui.internal_1.0.0.
[java] [eclipse.generateFeature] Missing required plug-in com.yambina.edm.ui.internal.converter_1.0.0.
But if I look in the MANIFEST.INF for the com.yambina.edm.ui bundle I see this:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %plugin.name
Bundle-Localization: plugin
Bundle-SymbolicName: com.yambina.edm.ui;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.yambina.mdwmui.MDWMUIPlugin
Bundle-Vendor: %plugin.providerName
Require-Bundle: com.yambina.edm.commons;bundle-version="1.0.0",
com.yambina.edm.ui.internal;bundle-version="1.0.0",
com.yambina.edm.ui.internal.converter;bundle-version="1.0.0",
When I look at the PDE view it show that com.yambina.edm.ui.internal and com.yambina.edm.ui.internal.converter have a minimum version of 1.0.0 and no maximum version showing. So it should resolve them right? Why are they not being resolved by p2?
Actually I cannot understand why CDOServer has these dependencies on com.yambina.edm.ui When I inspect the Dependency hierarchy for com.yambina.edm.cdoserver whose product file I am trying to build the only yambina plugin dependency it has is com.yambina.edm.commons, which depends only on eclipse plugins. So how is p2 determining there is a requirement on a unrelated set of yambina plugins? There are a whole raft of other plugins p2 fails to resolve which are eclipse plugins and as far as I can see have nothing to do with the product I am trying to build. What is confusing is that the dependency tree in the PDE View seems to work out the correct dependencies but the build cannot?
Anyway then it goes on to fail on the 5th line here:
<macrodef name="pde">
<attribute name="run" />
<attribute name="name" />
<sequential>
<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true">
<classpath>
<fileset dir="${eclipse.home}/plugins/">
<include name="org.eclipse.equinox.launcher_*.jar" />
</fileset>
</classpath>
<arg line="-application org.eclipse.ant.core.antRunner" />
<arg line="@{run}" />
<arg line="-DarchivePrefix=@{name}" />
<arg line="-DarchiveNamePrefix=@{name}" />
<arg line="-Dconfigs=${configs}" />
<arg line="-Dbuilder=${builder}" />
<arg line="-DbuildDirectory=${buildDirectory}" />
<arg line="-DbaseLocation=${baseLocation}" />
<arg line="-DpluginPath=${pluginPath}" />
<arg line="-DskipBase=true" />
<arg line="-DskipMaps=true" />
<arg line="-DskipFetch=true" />
<arg line="-DbuildLabel=@{name}" />
<arg line="-DcollectingFolder=@{name}" />
<arg line="-DjavacSource=${javacSource}" />
<arg line="-DjavacTarget=${javacTarget}" />
<arg line="-DjavacFailOnError=true" />
<arg line="-DallowBinaryCycles=true" />
<arg line="-DrunPackager=true" />
</java>
</sequential>
</macrodef>
with:
/Users/david/git/EDM/builds/build.xml:125: The following error occurred while executing this line:
/Users/david/git/EDM/builds/build.xml:624: Java returned: 13
If you can explain what I need to do to fix this much appreciated. My plugin.xml and MANIFEST.MF all look right to me.
Thx.
David