Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Download additional server adapters?

On 07/01/2014 09:50 AM, Silgidjian, Alexander wrote:
Hello,
Hello,
I am trying to add the option to download SAP HANA Cloud Platform server adapter from the New Server wizard.
Our update site is packaged with Maven as eclipse-repository and not as eclipse-update-site.
On the other side it looks like the Server Discovery relies on site.xml.
Would you advice me how to proceed?
Should I convert back to the deprecated eclipse-update-site packaging or there is a Maven option to generate repository with site.xml?
Indeed, WTP discovery mechanism relies on existence of a site.xml, and will resolve features that have category "org.eclipse.wst.server.core.serverAdapter" as server adapters.
Instead of switching back to the old format, I'd recommend you keep the eclipse-repository format and generate a site.xml that contains the server adapters. See for example, this mojo: https://github.com/jbosstools/jbosstools-maven-plugins/blob/master/tycho-plugins/repository-utils/src/main/java/org/jboss/tools/tycho/sitegenerator/GenerateRepositoryFacadeMojo.java which (among others) creates a site.xml derived from the category.xml and with the actual versions, so that WTP discovery can consume it. Output is http://download.jboss.org/tools/updates/webtools/luna/

See also the following Bugzilla entries for discussions & suggestions on this topic:
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=434185
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=291094

HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top