This does not help for me. I use a Galileo installation, also with maven2
plugin. I follow your instructions, but the "JPA Content" Descriptor is
empty and after selecting an Entity Class the "JPA Details" view
shows: "Details are not available for current selection".

Did you use the stable Maven Plugin or the development release?

harpritt wrote:

> Ok..... sods law
>
> as soon as i post my problem on the news group... i flipping well work out
> the solution. How annoying!
>
> The solution was to add src/main/resources to the source (under build
> path) BEFORE i set up the JPA Facet
>
> ...BEFORE... AFTER.... BEFORE AFTER..... baaaaaaaa
>
> anyway it works now...
>
> hope it helps someone else.

Jochen Buchholz wrote:
> This does not help for me. I use a Galileo installation, also with maven2
> plugin. I follow your instructions, but the "JPA Content" Descriptor is
> empty and after selecting an Entity Class the "JPA Details" view
> shows: "Details are not available for current selection".
>
> Did you use the stable Maven Plugin or the development release?

There are a couple of tricks to get Dali working with Maven. The first
is that it needs to be a WTP project (actually faceted). For this you
need to set <wtpversion> [1]. Then you need to add the jpt.jpa facet.
You can do this manually or with <additionalProjectFacets>. In the later
case you'll probably also need some configuration files, see
<additionalConfig>.

Hello,
you might want to add one more step to the described method:
1. Remove the Java Persistence facet.
2. Add the resources folder to the src
3. AT BUILD PATH -> ORDER AND EXPORT TAB, MOVE THE RESOURCES FOLDER TO THE TOP
4. Add Java Persistence facet.

When I followed these steps I managed to get it working.
Best regards,
Gyorgy

I have solved the probelm with maven2 and eclipse JPA by removing the exclused: '**' from the src/main/resources entry in the classpath in the project properties. Instead I set the Includes to 'META-INF/persistence.xml'

This does not help for me. I use a Galileo installation, also with maven2
plugin. I follow your instructions, but the "JPA Content" Descriptor is
empty and after selecting an Entity Class the "JPA Details" view
shows: "Details are not available for current selection".

Did you use the stable Maven Plugin or the development release?

harpritt wrote:

> Ok..... sods law
>
> as soon as i post my problem on the news group... i flipping well work out
> the solution. How annoying!
>
> The solution was to add src/main/resources to the source (under build
> path) BEFORE i set up the JPA Facet
>
> ...BEFORE... AFTER.... BEFORE AFTER..... baaaaaaaa
>
> anyway it works now...
>
> hope it helps someone else.

Jochen Buchholz wrote:
> This does not help for me. I use a Galileo installation, also with maven2
> plugin. I follow your instructions, but the "JPA Content" Descriptor is
> empty and after selecting an Entity Class the "JPA Details" view
> shows: "Details are not available for current selection".
>
> Did you use the stable Maven Plugin or the development release?

There are a couple of tricks to get Dali working with Maven. The first
is that it needs to be a WTP project (actually faceted). For this you
need to set <wtpversion> [1]. Then you need to add the jpt.jpa facet.
You can do this manually or with <additionalProjectFacets>. In the later
case you'll probably also need some configuration files, see
<additionalConfig>.

Hello,
you might want to add one more step to the described method:
1. Remove the Java Persistence facet.
2. Add the resources folder to the src
3. AT BUILD PATH -> ORDER AND EXPORT TAB, MOVE THE RESOURCES FOLDER TO THE TOP
4. Add Java Persistence facet.

When I followed these steps I managed to get it working.
Best regards,
Gyorgy

I have solved the probelm with maven2 and eclipse JPA by removing the exclused: '**' from the src/main/resources entry in the classpath in the project properties. Instead I set the Includes to 'META-INF/persistence.xml'