Hi Rolf!
Yes, this is the right list.
First, please add the
<version>1.0</version
to the openjpa-maven-plugin section.
2nd, You may now use
<configuration>
<addDefaultConstructor>true</addDefaultConstructor>
<enforcePropertyRestrictions>true<enforcePropertyRestrictions>
</configuration
instead of writing them to the toolProperties section in the long form.
You could also specify specific classpaths to include which would look like
this:
<configuration>
<includes>
com/mycomp/myproject/backend/template.entities/*.class,com/mycomp/myproject/backend/coin.entities/*.class
</includes>
<addDefaultConstructor>true</addDefaultConstructor>
<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
</configuration>
If it still doesn't work, then please run a
$> mvn clean
and then a
$> mvn -X openjpa:enhance
and pastebin the output again.
txs and LieGrue,
strub
--- Rolf Schumacher <[email protected]> schrieb am Mi, 25.3.2009:
> Von: Rolf Schumacher <[email protected]>
> Betreff: [mojo-user] openjpa:enhance
> An: [email protected]
> Datum: Mittwoch, 25. März 2009, 22:29
> Is this the right list I'm requesting
> help from?
>
> openjpa:enhance did not succeed and I need help in order to
> understand why.
>
> see the complete stack trace here: http://apache.pastebin.com/m1ac3be64
>
> I included openjpa-maven-plugin in pom.xml.
> see the complete pom.xml here: http://apache.pastebin.com/m1be8d0c5
>
> When I compile I expected that the entity classes will be
> enhanced, not
> all classes.
>
> What I got is a stack trace telling the error:
>
> 964 INFO [main] openjpa.MetaData -
> Parsing class
> "eu.ngong.ehour.report.impl.Bill".
> Exception in thread "main" java.lang.NoClassDefFoundError:
> Leu/ngong/registry/Resources;
>
> It seems that openjpa:enhance tries to enhance all
> classes.
> It tries to enhance bill.class which is not an entity
> class.
> bill depends on a class eu.ngong.registry.Resources
> that is available at runtime, not at compiletime.
>
> Seems that I misunderstood several things.
> What did I miss? What should I have read before?
>
> Rolf
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email