Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 546100

Summary: Builds are failing after removal of IPluginDescriptor and related API
Product: [WebTools] WTP Java EE Tools Reporter: Nitin Dahyabhai <thatnitind>
Component: jst.j2eeAssignee: Nitin Dahyabhai <thatnitind>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: blocker    
Priority: P3    
Version: 3.14   
Target Milestone: 3.14   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=475944
https://git.eclipse.org/r/#/c/139937/
https://git.eclipse.org/r/140252
https://git.eclipse.org/c/jeetools/webtools.javaee.git/commit/?id=4224c982c1cfe62146a81099259334118124f366
Whiteboard:

Description Nitin Dahyabhai CLA 2019-04-03 22:07:42 EDT
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.3.0:compile (default-compile) on project org.eclipse.jst.j2ee.jca: Compilation failure: Compilation failure: 
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/plugins/org.eclipse.jst.j2ee.jca/jcaedit/org/eclipse/jst/j2ee/internal/jca/providers/JcaEditPlugin.java:[20] 
[ERROR] 	import org.eclipse.core.runtime.IPluginDescriptor;
[ERROR] 	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.core.runtime.IPluginDescriptor cannot be resolved
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/plugins/org.eclipse.jst.j2ee.jca/jcaedit/org/eclipse/jst/j2ee/internal/jca/providers/JcaEditPlugin.java:[46] 
[ERROR] 	public JcaEditPlugin(IPluginDescriptor descriptor) {
[ERROR] 	                     ^^^^^^^^^^^^^^^^^
[ERROR] IPluginDescriptor cannot be resolved to a type
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.3.0:compile (default-compile) on project org.eclipse.jst.j2ee.webservice: Compilation failure: Compilation failure: 
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservicej2eeEditPlugin.java:[13] 
[ERROR] 	import org.eclipse.core.runtime.IPluginDescriptor;
[ERROR] 	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.core.runtime.IPluginDescriptor cannot be resolved
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservicej2eeEditPlugin.java:[84] 
[ERROR] 	public Implementation(IPluginDescriptor descriptor) {
[ERROR] 	                      ^^^^^^^^^^^^^^^^^
[ERROR] IPluginDescriptor cannot be resolved to a type
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.3.0:compile (default-compile) on project org.eclipse.jst.validation.sample: Compilation failure: Compilation failure: 
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java:[24] 
[ERROR] 	import org.eclipse.core.runtime.IPluginDescriptor;
[ERROR] 	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.core.runtime.IPluginDescriptor cannot be resolved
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java:[60] 
[ERROR] 	cl = plugin.getDescriptor().getPluginClassLoader();
[ERROR] 	            ^^^^^^^^^^^^^
[ERROR] The method getDescriptor() is undefined for the type Plugin
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java:[158] 
[ERROR] 	URL[] cp = ((URLClassLoader)p.getDescriptor().getPluginClassLoader()).getURLs();
[ERROR] 	                              ^^^^^^^^^^^^^
[ERROR] The method getDescriptor() is undefined for the type Plugin
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java:[176] 
[ERROR] 	IPluginDescriptor pluginDesc = registry.getPluginDescriptor(pluginId);
[ERROR] 	^^^^^^^^^^^^^^^^^
[ERROR] IPluginDescriptor cannot be resolved to a type
[ERROR] /jobs/genie.webtools/webtools-javaee_master/workspace/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java:[176] 
[ERROR] 	IPluginDescriptor pluginDesc = registry.getPluginDescriptor(pluginId);
[ERROR] 	                                        ^^^^^^^^^^^^^^^^^^^
[ERROR] The method getPluginDescriptor(String) is undefined for the type IPluginRegistry
[ERROR] 98 problems (5 errors, 93 warnings)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.eclipse.jst.j2ee.jca
Comment 2 Nitin Dahyabhai CLA 2019-04-09 17:00:59 EDT
Fixed.