>>>>> On Sat, 16 Sep 2006 09:55:57 +0200, Markus KARG <markus.karg_at_gmx.net> said:
MK> Dear Glassfish Administration,
MK> The usage of the "Maven2" (MVN2) tool is quite common to wide areas of
MK> the global software industry and amateur programmers community. A core
MK> idea of MVN2 is to support automatic downloads of dependencies (i. e.
MK> libraries needed for compilation) from a central repository
MK> (
http://repo1.maven.org).
Perhaps I missed something, but I can't believe that after nearly a week
of activity on this thread, no-one has pointed out the fact that most
Java EE 5 jars are available in a public maven repository and have been
for months:
https://maven-repository.dev.java.net/nonav/repository
This is a Maven 1 layout repository, so to use it in Maven2, you have to
have this entry in your pom.xml:
<repositories>
<repository>
<snapshots />
<id>java.net</id>
<name>Java.net Maven 1.x Repository for external projects</name>
<url>
https://maven-repository.dev.java.net/nonav/repository</url>
<layout>legacy</layout>
</repository>
<repository>
<snapshots />
<id>java.net.shared</id>
<name>Java.net Maven 1.x Repository for glassfish dependencies</name>
<url>
http://download.java.net/javaee5/external/shared</url>
<layout>legacy</layout>
</repository>
</repositories>
Note the "legacy" element.
Now, the jars
<dependencies>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
These are not the only Java EE 5 jars in this maven repo. Please mine
the repo for others.
Ed
--
| ed.burns_at_sun.com | {home: 407 869 9587, office: 408 884 9519 OR x31640}
| homepage: | http://purl.oclc.org/NET/edburns/
| aim: edburns0sunw | iim: ed.burns_at_sun.com