May be the openjpa devs already aware that for module 'openjpa-kernel' the generated sources are not added correctly as Eclipse source folders. This could be to do with the javacc-maven-plugin.

Cheers,

Rahul

----- Original Message ----- From: "Rahul Thakur" <[EMAIL PROTECTED]>
To: <open-jpa-dev@incubator.apache.org>
Sent: Sunday, January 07, 2007 9:57 AM
Subject: Re: Errors setting up openjpa projects in Eclipse


Hi,

The following snippet in the root pom.xml causes those folders to be added as source folders in Eclipse.

[snip from line: 202]
            <resource>
               <directory>${basedir}/../openjpa-project/</directory>
               <includes>
                   <include>NOTICE.txt</include>
                   <include>LICENSE.txt</include>
                   <include>DISCLAIMER.txt</include>
               </includes>
               <targetPath>META-INF</targetPath>
           </resource>
[/snip]

IMHO, as a work around these resources could be setup in a <profile> element which could be activated when a release JAR is built :-)

Cheers,

Rahul


----- Original Message ----- From: "Michael Dick" <[EMAIL PROTECTED]>
To: <open-jpa-dev@incubator.apache.org>
Sent: Sunday, January 07, 2007 9:39 AM
Subject: Re: Errors setting up openjpa projects in Eclipse


On 1/6/07, Igor Fedorenko <[EMAIL PROTECTED]> wrote:

How do you "generate" Eclipse projects? "mvn eclipse:eclipse" from
OpenJPA source root almost ;-) works for me. I manually fix
openjpa-kernel/target/generated-sources source path after importing
projects, but everything else seems to be handled properly.


This works for me. The only other thing you need to do is define a M2_REPO
classpath variable which points to your maven 2 repository.

Rahul Thakur wrote:
> Hi,
>
> I am just starting out with OpenJPA and tried generating and > importing > projects in an Eclipse workspace but I get to see the following > errors
> for all the imported modules.
>
> [snip - as copied from Problems view]
>
> Severity and Description Path Resource Location Creation Time Id
> Cannot nest output folder > 'openjpa-examples/target/classes/META-INF' > inside output folder 'openjpa-examples/target/classes' > openjpa-examples
> Build path 1168072979859 63185
>


It looks like you have openjpa-examples/target/classes/ specified as a source folder, and openjpa-examples/target/classes/META-INF specified as the
output folder.

Try using these

Source Folders :
   openjpa-examples/src/main/java
   openjpa-examples/src/test/java

Output Folder :
   openjpa-examples/target/classes

This is what maven should set up when you run mvn eclipse:eclipse.

[/snip]
>
> Thanks in advance,
>
> Rahul
>

--
-Michael Dick



Reply via email to