Community
Participate
Working Groups
Build Identifier: 20100917-0705 Exporting the product fails if "Generate metadata repository" is selected. The output given by Eclipse is as follows: /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:90: The following error occurred while executing this line: /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line: /Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:237: A problem occured while invoking the director. The following error occurred while executing this line: /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line: /Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:237: A problem occured while invoking the director. Log output is: !MESSAGE /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:90: The following error occurred while executing this line: /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line: /Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:236: A problem occured while invoking the director. !STACK 0 /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:90: The following error occurred while executing this line: /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line: /Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:236: A problem occured while invoking the director. at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378) at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:424) at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:287) at org.eclipse.pde.internal.core.exports.ProductExportOperation.run(ProductExportOperation.java:106) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line: /Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:236: A problem occured while invoking the director. at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416) ... 25 more Reproducible: Always Steps to Reproduce: 1. Export a product without "Generating metadata repository" -> Works 2. Do the same WITH "Generating metadata repository" -> FAILS
I am having the same problem, although the error output is different. I have stumbled onto this, because we would like to add p2 update support to a rcp application. The build works fine, when "Generate metadata repository" is not selected. If it is selected, the build fails with this error: Cannot complete the install because one or more required items could not be found. Software being installed: Kompetenzmanager 1.8.0 (de.emsw.gosa.product.kompman.export 1.8.0) Missing requirement: toolingorg.eclipse.core.runtime 1.8.0 requires 'bundle org.eclipse.core.runtime [3.8.0.v20120521-2346]' but it could not be found Cannot satisfy dependency: This is strange, since the "repository" folder was created as expected. The missing plugin (org.eclipse.core.runtime_3.8.0.v20120521-2346.jar) is in the repository/plugins folder. In the export folder, only the p2 folder is generated. After this the build fails. Version: Juno Service Release 1 Build id: 20121004-1855
For further testing a used the RCP Mail template project and a target definition to test the error (attachments will follow). One thing that I noticed is that, if I use "Running Platform" as the Target Platform everything works fine. As soon as I change to a custom target definition (which only uses local directories), the export fails. Using the mail.test project, the error message is slightly different than in my earlier comment, but I have the feeling that the issue is connected: An error occurred while collecting items to be installed session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Problems downloading artifact: osgi.bundle,org.eclipse.equinox.launcher.win32.win32.x86,1.1.200.v20120522-1813. As described earlier, the missing plugin is available and has already been exported to the repository/plugins directory. To reproduce: - Import the TestTarget project - Activate the error.target target platform - Import the test.mail project - Open mail.product and choose the "Eclipse Product export wizard" - Activate "Generate metadata repository" - Finish If the working.target is used (which uses the active Platform) everything works fine.
Created attachment 225771 [details] test.mail project to reproduce the error
Created attachment 225772 [details] Target definition project to reproduce the error
Created attachment 225773 [details] Target definition project to reproduce the error (reduced)
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. Please reopen, if you plan to provide a fix.