Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Headless build fails
Headless build fails [message #1053693] Tue, 07 May 2013 08:57 Go to next message
Dhanya M is currently offline Dhanya MFriend
Messages: 18
Registered: April 2013
Junior Member
Hello ,

I am using Eclipse 3.6 for building my RCP product. Headless build fails for some reason. Log:

[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 b
een satisfied.
[java] [eclipse.generateFeature] Bundle org.eclipse.emf.common.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.emf.common.ui_2.6.0.v20100914-1218
[java] [eclipse.generateFeature] Bundle org.eclipse.emf.common:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.emf.common_2.6.0.v20100914-1218
[java] [eclipse.generateFeature] Bundle org.eclipse.emf.ecore.change:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.emf.ecore.change_2.5.1.v20100907-1643
[java] [eclipse.generateFeature] Bundle org.eclipse.emf.ecore.edit:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.emf.ecore.edit_2.6.0.v20100914-1218
[java] [eclipse.generateFeature] Bundle org.eclipse.emf.ecore:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.emf.ecore_2.6.1.v20100914-1218
[java] [eclipse.generateFeature] Bundle org.eclipse.emf.edit.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.emf.edit.ui_2.6.0.v20100914-1218
[java] [eclipse.generateFeature] Bundle org.eclipse.emf.edit:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.emf.edit_2.6.0.v20100914-1218
[java] [eclipse.generateFeature] Bundle org.eclipse.epp.usagedata.gathering
:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.epp.usagedata.gathering_1.3.1.R201102081640
[java] [eclipse.generateFeature] Bundle org.eclipse.epp.usagedata.recording
:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.epp.usagedata.recording_1.3.1.R201102081640
[java] [eclipse.generateFeature] Bundle org.eclipse.epp.usagedata.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.epp.usagedata.ui_1.3.1.R201102081640
[java] [eclipse.generateFeature] Bundle org.eclipse.gef:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.gef_3.6.2.v20110110-2020
[java] [eclipse.generateFeature] Bundle org.eclipse.jem.util:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.jem.util_2.1.3.v201012070000
[java] [eclipse.generateFeature] Bundle org.eclipse.pde.api.tools.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.pde.api.tools.ui_1.0.201.v20100820_r361
[java] [eclipse.generateFeature] Bundle org.eclipse.pde.api.tools:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.pde.api.tools_1.0.202.v20100820_r361
[java] [eclipse.generateFeature] Bundle org.eclipse.pde.build:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.pde.build_3.6.2.R36x_20110203
[java] [eclipse.generateFeature] Bundle org.eclipse.pde.core:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.pde.core_3.6.2.v20110210_r362
[java] [eclipse.generateFeature] Bundle org.eclipse.pde.doc.user:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.pde.doc.user_3.6.2.v20101118_r362
[java] [eclipse.generateFeature] Bundle org.eclipse.pde.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.pde.ui_3.6.1.v20110210_r362
[java] [eclipse.generateFeature] Bundle org.eclipse.pde:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.pde_3.6.1.v201102101200
[java] [eclipse.generateFeature] Bundle org.eclipse.ui.views.log:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.ui.views.log_1.0.100.v20110210_r362
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.common.emfworkbench
.integration:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.common.emfworkbench.integration_1.2.3.v201012020600
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.common.emf:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.common.emf_1.2.3.v201012100400
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.common.modulecore.u
i:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.common.modulecore.ui_1.0.4.v201101101700
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.common.modulecore:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.common.modulecore_1.2.5.v201101270100
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.common.project.face
t.core:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.common.project.facet.core_1.4.102.v201008170019
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.common.snippets:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.common.snippets_1.2.2.v201101130441
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.dtd.core:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.dtd.core_1.1.401.v201101122255
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.server.core:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.server.core_1.1.206.v20110110
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.sse.core:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.sse.core_1.1.504.v201102160550
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.sse.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.sse.ui_1.2.3.v201102102045
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.validation:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.validation_1.2.201.v201101270100
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.xml.core:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.xml.core_1.1.503.v201102102045
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.xml.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.xml.ui_1.1.103.v201101122108
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.xsd.core:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.xsd.core_1.1.503.v201011121919
[java] [eclipse.generateFeature] Bundle org.eclipse.wst.xsd.ui:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.wst.xsd.ui_1.2.304.v201101251958
[java] [eclipse.generateFeature] Bundle org.eclipse.xsd.edit:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.xsd.edit_2.6.0.v20100914-1218
[java] [eclipse.generateFeature] Bundle org.eclipse.xsd:
[java] [eclipse.generateFeature] Another singleton version selected: org.
eclipse.xsd_2.6.0.v20100914-1218

[java] BUILD FAILED
[java] D:\Build\eclipse\eclipse\plugins\org.eclipse.pde.build_3.6.2.R36x_20
110203\scripts\productBuild\productBuild.xml:39: The following error occurred wh
ile executing this line:
[java] D:\Build\eclipse\eclipse\plugins\org.eclipse.pde.build_3.6.2.R36x_20
110203\scripts\productBuild\productBuild.xml:69: Unable to find plug-in: org.w3c
.dom.events_0.0.0. Please check the error log for more details.

[java] Total time: 41 seconds

My build.properties
topLevelElementType =plugin
topLevelElementId =rcpprojectname
product=D:/Build/Workspace/Checkout/plugins/rcpprojectname/sample.product
runPackager=true

archiveNamePrefix=eclipse
archivePrefix=eclipse
collectingFolder=${archivePrefix}

configs =win32, win32, x86
allowBinaryCycles = true

#Arguments to send to the zip executable
zipargs=

#Arguments to send to the tar executable
tarargs=


buildDirectory=D:/Build/Workspace/Checkout
buildType=I
buildId=id
buildLabel=${buildId}
timestamp=007

#The value to be used for the qualifier of a plugin or feature when you want to override the value computed by pde.
#The value will only be applied to plugin or features indicating build.properties, qualifier = context


base=D:/Build/eclipse
baseLocation=${base}/eclipse

#Os/Ws/Arch/nl of the eclipse specified by baseLocation
baseos=win32
basews=win32
basearch=x86

#this property indicates whether you want the set of plug-ins and features to be considered during the build to be limited to the ones reachable from the features / plugins being built
filteredDependencyCheck=false

#this property indicates whether the resolution should be done in development mode (i.e. ignore multiple bundles with singletons)
resolution.devMode=false

skipBase=true
eclipseURL=<url for eclipse download site>
eclipseBuildId=<Id of Eclipse build to get>
eclipseBaseURL=${eclipseURL}/eclipse-platform-${eclipseBuildId}-win32.zip

logExtension=.log
javacDebugInfo=true
javacFailOnError=true
javacVerbose=true
javacSource=1.6
javacTarget=1.6


What could be wrong in this?

Thanks,
Dhanya
Re: Headless build fails [message #1058471 is a reply to message #1053693] Tue, 14 May 2013 09:45 Go to previous messageGo to next message
Dhanya M is currently offline Dhanya MFriend
Messages: 18
Registered: April 2013
Junior Member
I am not using a Delta pack. However i am able to export product using the Eclipse export wizard. But not headless.
I have 2 versions of same plugins in the plugins folder. can that be a reason?


Thanks,
Dhanya
Re: Headless build fails [message #1562233 is a reply to message #1058471] Tue, 13 January 2015 15:29 Go to previous message
Jens  übler is currently offline Jens üblerFriend
Messages: 17
Registered: July 2009
Junior Member
The eclipse headless build uses the default OSGi resolver for resolving all bundles. It takes all plugins from the eclipse installation and the plugins folder specified during the build. If it happens to be that there are two versions of a singleton bundle during resolve the highest version will be ALWAYS selected. Even if the feature restricts version numbers the resolver does not respect it during headless build. In development mode when the IDE is active singleton versions are not resolved so you won't see a problem in the IDE.

So there are three options
1) Remove the singleton version you don't want to have
2) Provide a particular implemented SelectionPolicy to the resolver
3) Provide a particular implemented ResolverHook to the resolver that removes the required bundles during build.

Previous Topic:Redirect ProcessBuilder output to Eclipse Console
Next Topic:Where is Preferences->Plug-in Development in Luna 4.4.1(SR1a)
Goto Forum:
  


Current Time: Fri Jul 31 05:09:17 GMT 2015

Powered by FUDForum. Page generated in 0.03665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software