Hej!

Building of 3.0 "will-be-release" version did not work automatically when I
tried it first (last thursday); I got BUILD ERRORs due to undownloadable
files. For a successful build, I had to do over two dozen manual searches --
far too many for an official distro IMHO. Wasn't the first time. Some days
ago others reported similar issues (e.g. subject "error building servicemix
3.0") so it happens not only here in Sweden (maybe due to longer delays, too
many hops for the TTL,...) but elsewhere as well. 

As an example: Maven was looking for maven-plugin-parent-2.1.pom (and the
JARs) but was unable to find it on the 4 mirrors it tried to download from.
The mirrors did not even have a 2.1 directory (!), thus for sure no v2.1
files, what leads me to this assumtion: Whoever was commiting these build
instructions obviously had all the missing things locally available (maybe
as he/she already build another project with same dependencies) and thus did
not stumble over those problems. 
==> Possible solution 1: For releases, the commiter's local Maven repository
has to be renamed temporary thus Maven has to download everything and
reports all problems.

What I do not really understand, as I am just a Maven beginner and no
expert: The official maven repro (repro1.maven.org) had most of the missing
stuff (finding of my manual search) BUT was _not even tried_ for the failed
things! It seems like the ServiceMix pom (or whatever) is kind of limiting
the mirrors tried for the things that did NOT work -- the other mirrors (all
that are mentioned at
http://maven.apache.org/guides/mini/guide-mirror-settings.html are in my
settings.xml) are used for all downloads but the failed ones.
==> Possible solution 2: In case this limiting really applies, broaden the
list of mirrors.
==> Possible solution 3: In case it has some other reasons, explicitly
include at least the official maven repro -- would heal not all but most of
the bothering problems I experienced.

Attached you find a screenshot of one issue. I think these two lines are
pretty strange as they do not fit together:
Downloading:
http://mirrors.sunsite.dk/maven2/org/apache/xbean/xbean-server/2.6/xbean-server-2.6.pom
[WARNING] Unable to get resource from repository central
(http://www.ibiblio.org/maven2)

BTW: I will put some detailed hints on how to solve Maven problems in the
user's guide, maybe as links to the maven site.

Thanks for hints how to get an automated solution for those downloads, Georg





[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
        Artifact hsqldb:hsqldb:jar:1.7.3.3:test retains local scope 'test'
overriding broader scope 'compile'
        given by a dependency. If this is not intended, modify or remove the
local scope.

Downloading:
http://mirrors.sunsite.dk/maven2/org/apache/xbean/xbean-server/2.6/xbean-server-2.6.pom
[WARNING] Unable to get resource from repository central
(http://www.ibiblio.org/maven2)
Downloading:
http://servicemix.org/m2-repo/org/apache/xbean/xbean-server/2.6/xbean-server-2.6.pom
[WARNING] Unable to get resource from repository servicemix-m2-repo
(http://servicemix.org/m2-repo)
Downloading:
http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/org/apache/xbean/xbean-server/2.6/xbean-server-2.6.pom
[WARNING] Unable to get resource from repository activemq-tmp-repo
(http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2)
Downloading:
http://mirrors.sunsite.dk/maven2/org/apache/xbean/xbean-server/2.6/xbean-server-2.6.jar
[WARNING] Unable to get resource from repository central
(http://www.ibiblio.org/maven2)
Downloading:
http://servicemix.org/m2-repo/org/apache/xbean/xbean-server/2.6/xbean-server-2.6.jar
[WARNING] Unable to get resource from repository servicemix-m2-repo
(http://servicemix.org/m2-repo)
Downloading:
http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/org/apache/xbean/xbean-server/2.6/xbean-server-2.6.jar
[WARNING] Unable to get resource from repository activemq-tmp-repo
(http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.xbean:xbean-server:jar:2.6

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.xbean
-DartifactId=xbean-server \
          -Dversion=2.6 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.servicemix:servicemix-core:jar:3.0-incubating
        2) org.apache.xbean:xbean-server:jar:2.6

----------
1 required artifact is missing.

for artifact:
  org.apache.servicemix:servicemix-core:jar:3.0-incubating

from the specified remote repositories:
  central (http://www.ibiblio.org/maven2),
  servicemix-m2-repo (http://servicemix.org/m2-repo),
  apache.snapshots (http://svn.apache.org/maven-snapshot-repository),
  activemq-tmp-repo
(http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2)


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 29 seconds
[INFO] Finished at: Fri Sep 15 14:45:06 CEST 2006
[INFO] Final Memory: 15M/27M
[INFO]
------------------------------------------------------------------------
-- 
View this message in context: 
http://www.nabble.com/Maven-using-limited-set-of-download-mirrors-%3D%3E-errors-tf2318528.html#a6449715
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Reply via email to