|
Replies:
8
-
Last Post:
Nov 29, 2007 2:12 AM
by: erkan
|
|
|
|
|
|
|
Maven2 Repository
Posted:
Nov 28, 2007 2:06 AM
|
|
|
Hi all,
Is there any Maven2 Repository where Glassfish libs are installed?
Regards, erkan
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 28, 2007 2:32 AM
in response to: erkan
|
|
|
Yes, it's http://download.java.net/maven/2/. To use, add something like this to your settings.xml or pom.xml between the tags <repositories> :
<repository> <id>maven2-repository.dev.java.net</id> <name>Java.net Repository for Maven</name> <url>http://download.java.net/maven/2/</url> <layout>default</layout> </repository>
Some GlassFish components are also available in standard ibiblio maven2 repository.
Thanks, Sahoo
glassfish@javadesktop.org wrote: > Hi all, > > Is there any Maven2 Repository where Glassfish libs are installed? > > Regards, > erkan > [Message sent by forum member 'erkan' (erkan)] > > http://forums.java.net/jive/thread.jspa?messageID=247549 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 28, 2007 4:20 AM
in response to: Sahoo
|
|
|
Thanks for your quick reply Sahoo.
But i couldn't find any libraries in java.net repository. Group com/sun/enterprise/glassfish has only artifact maven-skin.
Do i overlook sth? Could you give me artifact and groupId?
Thanks in advance, erkan
|
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 28, 2007 5:44 AM
in response to: erkan
|
|
|
it's usually given the id of java.net2 not java.net
most people use an id of java.net to refer to maven-repository.dev.java.net while an id of java.net2 refers to maven2-repository.dev.java.net
I wish that the maven-repository.dev.java.net would just die as it's a legacy repository and it would be better if there was only one repository and some of the repository proxying tools were used to expose it's contents as a Maven1 repository for those projects that have not upgraded to maven2
If I had €0.01 for every time a Maven 2 build issue was caused by artifacts being split across the two repositories or improperly deployed artifacts in the Maven1 repository, i'd be well able to afford quitting the day job.
-Stephen
On Nov 28, 2007 12:20 PM, <glassfish@javadesktop.org> wrote: > Thanks for your quick reply Sahoo. > > But i couldn't find any libraries in java.net repository. Group > com/sun/enterprise/glassfish has only artifact maven-skin. > > Do i overlook sth? Could you give me artifact and groupId? > > Thanks in advance, > erkan > [Message sent by forum member 'erkan' (erkan)] > > http://forums.java.net/jive/thread.jspa?messageID=247582 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 28, 2007 6:42 AM
in response to: Stephen Connolly
|
|
|
As a newbei at Maven, i can only say that i'm agree with you despite the fact that €0,01 for every issue is too cheap for me but i could survive with €0,10 
To be honest, i only need appserv-rt.jar and javaee.jar in my path to be able to initialize and use an InitialContext object - which i couldn't manage yet. I've added the repository and dependency as follows but i couldn't get it work.
In Glassfish libs are they included, so adding this should work, i thought...
<repository> <id>maven2-glassfish</id> <name>Glassfish Repository</name> <url>http://repo1.maven.org/maven2/</url> </repository> .... <dependency> <groupId>net.java.dev.glassfish</groupId> <artifactId>glassfish</artifactId> <version>b32g</version> </dependency>
Any help?
|
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 28, 2007 6:42 AM
in response to: erkan
|
|
|
Ohh
well don't make the mistake I made.
The javaee.jar in the java.net repo is a stub jar and can only be used for compile time, not runtime.
On Nov 28, 2007 2:42 PM, <glassfish@javadesktop.org> wrote: > As a newbei at Maven, i can only say that i'm agree with you despite the fact that €0,01 for every issue is too cheap for me but i could survive with €0,10  > > To be honest, i only need appserv-rt.jar and javaee.jar in my path to be able to initialize and use an InitialContext object - which i couldn't manage yet. I've added the repository and dependency as follows but i couldn't get it work. > > In Glassfish libs are they included, so adding this should work, i thought... > > <repository> > <id>maven2-glassfish</id> > <name>Glassfish Repository</name> > <url>http://repo1.maven.org/maven2/</url> > </repository> > .... > <dependency> > <groupId>net.java.dev.glassfish</groupId> > <artifactId>glassfish</artifactId> > <version>b32g</version> > </dependency> > > Any help? > [Message sent by forum member 'erkan' (erkan)] > > http://forums.java.net/jive/thread.jspa?messageID=247609 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 28, 2007 6:52 AM
in response to: Stephen Connolly
|
|
|
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
http://weblogs.java.net/blog/ludo/archive/2007/01/java_ee_5_apis.html
On Nov 28, 2007 2:42 PM, Stephen Connolly <stephen.alan.connolly@gmail.com> wrote: > Ohh > > well don't make the mistake I made. > > The javaee.jar in the java.net repo is a stub jar and can only be used > for compile time, not runtime. > > > > > On Nov 28, 2007 2:42 PM, <glassfish@javadesktop.org> wrote: > > As a newbei at Maven, i can only say that i'm agree with you despite the fact that €0,01 for every issue is too cheap for me but i could survive with €0,10  > > > > To be honest, i only need appserv-rt.jar and javaee.jar in my path to be able to initialize and use an InitialContext object - which i couldn't manage yet. I've added the repository and dependency as follows but i couldn't get it work. > > > > In Glassfish libs are they included, so adding this should work, i thought... > > > > <repository> > > <id>maven2-glassfish</id> > > <name>Glassfish Repository</name> > > <url>http://repo1.maven.org/maven2/</url> > > </repository> > > .... > > <dependency> > > <groupId>net.java.dev.glassfish</groupId> > > <artifactId>glassfish</artifactId> > > <version>b32g</version> > > </dependency> > > > > Any help? > > [Message sent by forum member 'erkan' (erkan)] > > > > http://forums.java.net/jive/thread.jspa?messageID=247609 > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > > For additional commands, e-mail: users-help@glassfish.dev.java.net > > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 28, 2007 6:55 AM
in response to: Stephen Connolly
|
|
|
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@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 >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: Maven2 Repository
Posted:
Nov 29, 2007 2:12 AM
in response to: Stephen Connolly
|
|
|
Thanks for your help Stephen!
The problem i have is somehow more specific and complex, i believe. I'm trying to extend a software which is developed to load artifacts reading maven2 pom file by using a new classloader for each artifact which requires that i have all the runtime dependencies defined in pom.
I've installed all the jars as you said by using mvn install and modified poms so that they have required *runtime dependencies* but it doesnt function either.
|
|
|
|
|