Snjezana Peco wrote:
Adding Maven library for JPA (Dali) can be performed using Maven
Library provider (placed within the org.jboss.tools.maven.core plugin).
There is already an example for Maven JSF libraries.
Adding Maven library provider requires two steps:
- creating an extension point :
Is this could be configured to show user any choice between
versions? (I guess easily)
Is this will show newer versions of libraries (which come into maven
repository after user has got the plugin)?
- creating hibernate_template.xml
It is Maven pom.xml file that contains required dependencies, plugins,
repositories for the library provider.
It is possible to create different library providers for Hibernate,
Eclipselink ... as well as for different versions of libraries and
I have created https://jira.jboss.org/jira/browse/JBIDE-4688
adding Maven JPA libraries.
In order to add Maven library provider for other facets (Seam,
Portlet, WS, ESB ...), it is necessary to configure the wizardPages
ext. point to use WTP 3.1 Library Framework. The JPA and JSF facet
already use this framework. I have created
to track integrating the
Portlet facet with WTP 3.1 Library Provider.
Maven Library Provider requires m2eclipse and the JBoss Maven
Integration facet (jboss.m2).
Max Rydahl Andersen wrote:
> btw. if we could add a way to use maven repositories as the
> implementation for getting these libraries *that* would be interesting.
> Then at least we dont need to maintain a separate download system.
> still the problem of eclipse user libraries being non-sharable remains.
> Dmitry Geraskov wrote:
>> Hi, guys,
>> I find the solution which Dali uses for libmanagement on project
>> creation step.
>> They have composite which allows to user to add libraries when he
>> create project.
>> The libraries could be managed by eclipse's preferences, or could be
>> downloaded from the internet.
>> This is standard feature for faceted projects.
>> If we want some *specific* libraries to be added (or we want to help
>> to user) we could do it like dtp helps with jdbc drivers when you
>> creates new ConnectionProfile.
>> Is this we are looking for libmanagement?
>> Best regards,
>> Dmitry Geraskov dgeraskov(a)exadel.com
>> Senior Developer
>> Exadel Inc
> jbosstools-dev mailing list