You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Balasubramanian, Ravi Shankar" <rb...@informatica.com> on 2007/03/21 12:47:46 UTC

Downloading of artifacts from the maven repository

Hi all,

I have been hitting this issue for quite sometime and have no idea why
this is happening. Whenever I do a maven build, after cleaning up my
local repository, maven is not able to download certain artifacts on
which I am indirectly/transitively/directly dependent on. This only
happens with a certain set of artifacts and not with all artifacts. 

 

Just to confirm:

==>     I am not behind a firewall. Maven does download some artifacts
from the central maven repository. This always happens only with a
certain set of artifacts.

==>     My repositories/mirrors are correctly configured in my
settings.xml. I don't see setting as an issue as maven is able to
download some artifacts from the central maven repository.

 

Following is the error I am getting for the artifact
"commons-collections" available in the maven repository:

 

"

Downloading:
http://maven/maven2/commons-collections/commons-collections/2.1.1/common
s-collections-2.1.1.jar

[WARNING] Unable to get resource from repository infa-maven-releases
(http://maven/maven2)

Downloading:
http://maven/maven2/commons-collections/commons-collections/2.1.1/common
s-collections-2.1.1.jar

[WARNING] Unable to get resource from repository external
(http://www.ibiblio.org/maven2)

Downloading:
http://maven/maven2/commons-collections/commons-collections/2.1.1/common
s-collections-2.1.1.jar

[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

1) commons-collections:commons-collections:jar:2.1.1

 

  Try downloading the file manually from the project website.

 

  Then, install it using the command:

      mvn install:install-file -DgroupId=commons-collections
-DartifactId=commons-collections \

          -Dversion=2.1.1 -Dpackaging=jar -Dfile=/path/to/file

 

  Path to dependency:

        1) com.informatica.metadatarepository.qa:qautils:jar:1.0.0

        2)
com.informatica.repository.applications:rep_admin_client:jar:1.7.0_03

        3)
com.informatica.repository.components:repository_service_client:jar:1.7.
0_03

        4)
com.informatica.metadatarepository:hibernate:jar:3.0.5-07-26-2006

        5) commons-collections:commons-collections:jar:2.1.1

 

----------

1 required artifacts are missing.

 

for artifact:

  com.informatica.metadatarepository.qa:qautils:jar:1.0.0

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2),

  infa-maven-releases (http://maven/maven2),

  external (http://www.ibiblio.org/maven2)

 

"

 

 

I am reinstating that this does not look like a problem with being
behind a firewall or not configuring the repositories correctly. Maven
is able to download other artifacts from the central maven repository
and this happens only with a certain set of artifacts. Please do let me
know if I am missing out on anything or if I am doing anything wrongly
or if you need anymore information from me.

 

 

 

Regards,

Ravi.

"Tough times never last, but tough men do..."

 


Re: Downloading of artifacts from the maven repository

Posted by Wayne Fay <wa...@gmail.com>.
I'm not quite sure what's going on there, but it is certainly odd that
the URL reported in each "Downloading: ..." line is the same --
http://maven/maven2/...

I would expect to see http://repo1.maven.org/ and
http://www.ibiblio.org/ at some point in those Downloading lines,
similar to the WARNING lines.

Seems like a bug of some kind to me.

Wayne

On 3/21/07, Balasubramanian, Ravi Shankar <rb...@informatica.com> wrote:
> Hi all,
>
> I have been hitting this issue for quite sometime and have no idea why
> this is happening. Whenever I do a maven build, after cleaning up my
> local repository, maven is not able to download certain artifacts on
> which I am indirectly/transitively/directly dependent on. This only
> happens with a certain set of artifacts and not with all artifacts.
>
>
>
> Just to confirm:
>
> ==>     I am not behind a firewall. Maven does download some artifacts
> from the central maven repository. This always happens only with a
> certain set of artifacts.
>
> ==>     My repositories/mirrors are correctly configured in my
> settings.xml. I don't see setting as an issue as maven is able to
> download some artifacts from the central maven repository.
>
>
>
> Following is the error I am getting for the artifact
> "commons-collections" available in the maven repository:
>
>
>
> "
>
> Downloading:
> http://maven/maven2/commons-collections/commons-collections/2.1.1/common
> s-collections-2.1.1.jar
>
> [WARNING] Unable to get resource from repository infa-maven-releases
> (http://maven/maven2)
>
> Downloading:
> http://maven/maven2/commons-collections/commons-collections/2.1.1/common
> s-collections-2.1.1.jar
>
> [WARNING] Unable to get resource from repository external
> (http://www.ibiblio.org/maven2)
>
> Downloading:
> http://maven/maven2/commons-collections/commons-collections/2.1.1/common
> s-collections-2.1.1.jar
>
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Failed to resolve artifact.
>
> 1) commons-collections:commons-collections:jar:2.1.1
>
>
>
>   Try downloading the file manually from the project website.
>
>
>
>   Then, install it using the command:
>
>       mvn install:install-file -DgroupId=commons-collections
> -DartifactId=commons-collections \
>
>           -Dversion=2.1.1 -Dpackaging=jar -Dfile=/path/to/file
>
>
>
>   Path to dependency:
>
>         1) com.informatica.metadatarepository.qa:qautils:jar:1.0.0
>
>         2)
> com.informatica.repository.applications:rep_admin_client:jar:1.7.0_03
>
>         3)
> com.informatica.repository.components:repository_service_client:jar:1.7.
> 0_03
>
>         4)
> com.informatica.metadatarepository:hibernate:jar:3.0.5-07-26-2006
>
>         5) commons-collections:commons-collections:jar:2.1.1
>
>
>
> ----------
>
> 1 required artifacts are missing.
>
>
>
> for artifact:
>
>   com.informatica.metadatarepository.qa:qautils:jar:1.0.0
>
>
>
> from the specified remote repositories:
>
>   central (http://repo1.maven.org/maven2),
>
>   infa-maven-releases (http://maven/maven2),
>
>   external (http://www.ibiblio.org/maven2)
>
>
>
> "
>
>
>
>
>
> I am reinstating that this does not look like a problem with being
> behind a firewall or not configuring the repositories correctly. Maven
> is able to download other artifacts from the central maven repository
> and this happens only with a certain set of artifacts. Please do let me
> know if I am missing out on anything or if I am doing anything wrongly
> or if you need anymore information from me.
>
>
>
>
>
>
>
> Regards,
>
> Ravi.
>
> "Tough times never last, but tough men do..."
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Downloading of artifacts from the maven repository

Posted by Armin Ehrenfels <Ar...@t-online.de>.
Ravi,

what maven version are you using ?

Balasubramanian, Ravi Shankar wrote:

>Hi all,
>
>I have been hitting this issue for quite sometime and have no idea why
>this is happening. Whenever I do a maven build, after cleaning up my
>local repository, maven is not able to download certain artifacts on
>which I am indirectly/transitively/directly dependent on. This only
>happens with a certain set of artifacts and not with all artifacts. 
>
> 
>
>Just to confirm:
>
>==>     I am not behind a firewall. Maven does download some artifacts
>from the central maven repository. This always happens only with a
>certain set of artifacts.
>
>==>     My repositories/mirrors are correctly configured in my
>settings.xml. I don't see setting as an issue as maven is able to
>download some artifacts from the central maven repository.
>
> 
>
>Following is the error I am getting for the artifact
>"commons-collections" available in the maven repository:
>
> 
>
>"
>
>Downloading:
>http://maven/maven2/commons-collections/commons-collections/2.1.1/common
>s-collections-2.1.1.jar
>
>[WARNING] Unable to get resource from repository infa-maven-releases
>(http://maven/maven2)
>
>Downloading:
>http://maven/maven2/commons-collections/commons-collections/2.1.1/common
>s-collections-2.1.1.jar
>
>[WARNING] Unable to get resource from repository external
>(http://www.ibiblio.org/maven2)
>
>Downloading:
>http://maven/maven2/commons-collections/commons-collections/2.1.1/common
>s-collections-2.1.1.jar
>
>[WARNING] Unable to get resource from repository central
>(http://repo1.maven.org/maven2)
>
>[INFO]
>------------------------------------------------------------------------
>
>[ERROR] BUILD ERROR
>
>[INFO]
>------------------------------------------------------------------------
>
>[INFO] Failed to resolve artifact.
>
>1) commons-collections:commons-collections:jar:2.1.1
>
> 
>
>  Try downloading the file manually from the project website.
>
> 
>
>  Then, install it using the command:
>
>      mvn install:install-file -DgroupId=commons-collections
>-DartifactId=commons-collections \
>
>          -Dversion=2.1.1 -Dpackaging=jar -Dfile=/path/to/file
>
> 
>
>  Path to dependency:
>
>        1) com.informatica.metadatarepository.qa:qautils:jar:1.0.0
>
>        2)
>com.informatica.repository.applications:rep_admin_client:jar:1.7.0_03
>
>        3)
>com.informatica.repository.components:repository_service_client:jar:1.7.
>0_03
>
>        4)
>com.informatica.metadatarepository:hibernate:jar:3.0.5-07-26-2006
>
>        5) commons-collections:commons-collections:jar:2.1.1
>
> 
>
>----------
>
>1 required artifacts are missing.
>
> 
>
>for artifact:
>
>  com.informatica.metadatarepository.qa:qautils:jar:1.0.0
>
> 
>
>from the specified remote repositories:
>
>  central (http://repo1.maven.org/maven2),
>
>  infa-maven-releases (http://maven/maven2),
>
>  external (http://www.ibiblio.org/maven2)
>
> 
>
>"
>
> 
>
> 
>
>I am reinstating that this does not look like a problem with being
>behind a firewall or not configuring the repositories correctly. Maven
>is able to download other artifacts from the central maven repository
>and this happens only with a certain set of artifacts. Please do let me
>know if I am missing out on anything or if I am doing anything wrongly
>or if you need anymore information from me.
>
> 
>
> 
>
> 
>
>Regards,
>
>Ravi.
>
>"Tough times never last, but tough men do..."
>
> 
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org