Hi Guy, That link doesn't host code anymore. I'm trying to create a replacement dummy project to reproduce the bug. Can you help me?
I've attached a dummy maven project that use eclipselink and expects the pre-processor to generate a class Meaning_ in order to compile. I did not get as far as reproducing the bug because I didn't even get it to generate Meaning_ as a 'single' maven app. Will you please fix the sample so that it does generate Meaning_?
A very useful diagnosis to reproduce the bug was performed by Pascal in the SO.com question linked in the bug: "Ok, I reproduced the problem and here is my analysis. EclipseLink's annotation processor uses the following parameter -Aeclipselink.persistencexml=src/main/resources/META-INF/persistence.xml to find the persistence.xml using a relative path. When running a reactor build, this relative path is wrong (it points on MemoPlatform/src/main/...) and the persistence.xml isn't found. I tried to use an absolute path (using -Aeclipselink.persistencexml=${basedir}/src/main/resources/META-INF/persistence.xml) but then the annotation processor complains about a non relative path"
Thank you for the
reply.
When is 2.3 likely to be released (I also had
issues with eclipselink maven depedencies!)?
Also, that solves the problem of having to first
compile the module alone, but doesn't simplify the
configuration.
In Java 6 annotation processors are registered
automatically, there shouldn't be a need for a
complicated maven plugin for that.
Using eclipselink + criteria api
has created enough trouble for me
that it's worth reconsidering. I
expected the generated classes to
be generated without speciale
configuration (unlike what is
shown below) since beside
complicating my build (https://bugs.eclipse.org/bugs/show_bug.cgi?id=328560).
I'm looking for simpler
configurations / alternatives .
Thank you.
<plugin><groupId>org.bsc.maven</groupId><artifactId>maven-processor-plugin</artifactId><version>1.3.7</version><executions><execution><id>process</id><goals><goal>process</goal></goals><phase>generate-sources</phase><configuration><!-- Without this, the annotation processor complains about persistence.xml not being present and fail --><compilerArguments>-Aeclipselink.persistencexml=src/main/resources/META-INF/persistence.xml -Aeclipselink.persistenceunits=com.mysimpatico_MemoPlatform-database_nbm_1.0-SNAPSHOTPU</compilerArguments><!-- For an unknown reason, the annotation processor is not discovered, have to list it explicitly --><processors><processor>org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor</processor></processors></configuration></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><inherited>true</inherited><configuration><compilerArgument>-proc:none</compilerArgument></configuration></plugin>
--- unchanged since 20/9/10 ---
P.S. If the subject contains
"[LON]" or the addressee
acknowledges the receipt within 48
hours then I don't resend the
email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈
MyInbox ∧ Acknowledges(x, this) ∧
time(x) < Now + 48h) ⇒
¬resend(I, this).
If an email is sent by a sender
that is not a trusted contact or
the email does not contain a valid
code then the email is not
received. A valid code starts with
a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈
MySafeSenderList ∨ (∃y. y ∈
subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).
--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the
addressee acknowledges the receipt within 48
hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧
Acknowledges(x, this) ∧ time(x) < Now +
48h) ⇒ ¬resend(I, this).
If an email is sent by a sender that is not a
trusted contact or the email does not contain
a valid code then the email is not received. A
valid code starts with a hyphen and ends with
"X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨
(∃y. y ∈ subject(x) ∧ y ∈ L(-[a-z]+[0-9]X)).
--
Regards,
K. Gabriele
--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee
acknowledges the receipt within 48 hours then I don't
resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧
Acknowledges(x, this) ∧ time(x) < Now + 48h) ⇒
¬resend(I, this).
If an email is sent by a sender that is not a trusted
contact or the email does not contain a valid code
then the email is not received. A valid code starts
with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y
∈ subject(x) ∧ y ∈ L(-[a-z]+[0-9]X)).
--
Cheers from Leeds,
K. Gabriele
--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges
the receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this)
∧ time(x) < Now + 48h) ⇒ ¬resend(I, this).
If an email is sent by a sender that is not a trusted contact or
the email does not contain a valid code then the email is not
received. A valid code starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x)
∧ y ∈ L(-[a-z]+[0-9]X)).
-- Cheers from Leeds, K. Gabriele
--- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x) < Now + 48h) ⇒ ¬resend(I, this).