users@glassfish.java.net

Re: Maven2 Repository

From: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Wed, 28 Nov 2007 14:55:32 +0000

I can't find my rant about this artifact being a bag of cats and how
it's almost useless given how most people will have unit tests in
Maven that will blow up when trying to use the stub jar.

Your best bet is to use mvn install:install-file to put the _real_ jar
into your local repository

On Nov 28, 2007 2:52 PM, Stephen Connolly
<stephen.alan.connolly_at_gmail.com> wrote:
> Found the link... here's the disclaimer:
>
> > You can compile you code with this jar, but of course you cannnot run your
> > application with it since it contains only the Java EE 5 APIs and does not contain
> > any method bodies. If you try to run, you would get this exception:
> >
> > Exception in thread "main" java.lang.ClassFormatError:
> > Absent Code attribute in method that is not native or abstract in class file
> > javax/mail/Session
> >
> > In order to execute a Java EE 5 application, you'll still need a Java EE 5 container,
> > like for example the GlassFish application server.
> > Ludo
>