Skip to main content

problems with maven repository

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
alegen
Offline
Joined: 2012-03-02

Hello to everyone and sorry if I am not asking this question in the right place.

I have a netbeans/maven project and in my pom file I have added

<dependency>

     <groupId>jetty</groupId>

     <artifactId>javax.servlet</artifactId>

     <version>5.1.12</version>

</dependency>

and of course

<repository>

    <id>glassfish</id>

    <name>glassfish</name>

    <url>http://maven.glassfish.org/content/groups/glassfish/</url>

</repository>

When I try to build I get this error: Could not transfer artifact jetty\:javax.servlet\:pom\:5.1.12 from/to glassfish (http\://maven.glassfish.org/content/groups/glassfish/)\: Error transferring file\: Connection timed out\: connect

Am I doing something wrong or is there a problem with the repository?

Thank you in advance to anyone who can give me an answer.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexismp
Offline
Joined: 2005-01-06

Assuming you're looking just for the API, I would recommend removing the definition and moving to a standard artifact definition such as :

javax.servlet
javax.servlet-api
3.0.1

or better yet reference the platform APIs instead :

javax
javaee-web-api
6.0
provided

Both are in Maven central.

-Alexis

On 2 mars 2012, at 12:18, forums@java.net wrote:

> Hello to everyone and sorry if I am not asking this question in the right
> place.
>
> I have a netbeans/maven project and in my pom file I have added
>
>  jetty
> javax.servlet 5.1.12
>
> and of course
>
>  glassfish glassfish
> http://maven.glassfish.org/content/groups/glassfish/
> When I try to build I get this error: Could not transfer artifact
> jetty\:javax.servlet\:pom\:5.1.12 from/to glassfish
> (http\://maven.glassfish.org/content/groups/glassfish/)\: Error transferring
> file\: Connection timed out\: connect
>
> Am I doing something wrong or is there a problem with the repository?
>
> Thank you in advance to anyone who can give me an answer.
>
>
> --
>
> [Message sent by forum member 'alegen']
>
> View Post: http://forums.java.net/node/883956
>
>