Skip to main content



      Home
Home » Archived » Buckminster » Random failure resolving maven components
Random failure resolving maven components [message #379823] Thu, 21 August 2008 14:29 Go to next message
Eclipse UserFriend
Hi,

I'm getting a random failure resolving maven dependencies in a project
that I'm working on. It is random in the fact which artifact fails, but
the error/failure messages are the same for all failed artifacts. (I can
provide the entire buckminster debug output if needed, but for now I will
post the relavent snippet from the log at the end of this post) It appears
that buckminster is internally corrupting some of the pom files that it is
downloading. I think this because, I started with a clean .m2/repository,
ran my build and got the failure below. After running the build I checked
my ${HOME}/.m2/repository for the pom file
(org/apache/geronimo/genesis/config/project-config/1.2/proje ct-config-1.2.pom)
and that directory was empty. I looked at the copy on our internal
maven-repo (mirror of the ibiblio central maven repo) and it was a
perfectly valid pom/xml file. To me, it appears that the pom file is
getting corrupted between downloading from the maven repo server and
placing it into my local cache.

One interesting point, I have encountered this problem with a couple of
different maven artifacts and the pom files failing with this problem all
have a parent relationship to an artifact/pom that I am depending on. (ie.
the failing pom files are the parent poms of artifacts I am pulling in)

I am using Eclipse 3.3 and the latest 1.0.0 releases of buckminster on the
download site (ArchivedSite: 1.0.0.r09499 and Headless
Product:1.0.0.r09472)

Buckminster debug output:

[java] Downloading
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.md5
[java] Getting POM information for parent: org.apache.geronimo.specs
- specs at path org/apache/geronimo/specs/specs/1.4/specs-1.4.pom
[java] Downloading
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/specs/specs/1.4/specs-1.4.pom. md5
[java] Getting POM information for parent:
org.apache.geronimo.genesis.config - project-config at path
org/apache/geronimo/genesis/config/project-config/1.2/projec t-config-1.2.pom
[java] Downloading
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.md5
[java] Getting POM information for parent: org.apache.cxf - cxf at
path org/apache/cxf/cxf/2.0.6.1-fuse/cxf-2.0.6.1-fuse.pom
[java] Downloading
http://repo.open.iona.com/maven2/org/apache/cxf/cxf/2.0.6.1- fuse/cxf-2.0.6.1-fuse.pom.md5
[java] Getting POM information for parent:
org.apache.geronimo.genesis.config - project-config at path
org/apache/geronimo/genesis/config/project-config/1.2/projec t-config-1.2.pom
[java] Downloading
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.md5
[java]
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Using
resource map file:/x1/devel/uitools/trunk/build/buckminster/uitools.rmap
[java]
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Using
search path iona_maven_repo
[java]
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Trying
provider
maven2( http://maven-repo.boston.amer.iona.com/iona-snapshot/reposit ory)
[java] [Fatal Error] project-config-1.2.pom:1:1: Content is not
allowed in prolog.
[java] org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec:
Resolution attempt ended with exception: org.xml.sax.SAXParseException:
Content is not allowed in prolog.:
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom
at line: 1 column: 1
[java] org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec:
No provider was found that could resolve the request
[java] ERROR [0032] : No suitable provider for component
org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec was found in
searchPath iona_maven_repo_proxy_release
[java] ERROR [0032] : Resolution attempt ended with exception:
org.xml.sax.SAXParseException: Content is not allowed in prolog.:
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom
at line: 1 column: 1
[java]
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Rejecting
provider
maven2( http://maven-repo.boston.amer.iona.com/iona-snapshot/reposit ory):
No component match was found
[java]
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Trying
provider
maven2( http://maven-repo.boston.amer.iona.com/iona-release/reposito ry)
[java] [Fatal Error] project-config-1.2.pom:1:1: Content is not
allowed in prolog.
[java] Doing full workspace refresh
[java] ERROR: Error while refreshing workspace: null
[java] org.apache.geronimo.specs/geronimo-jms_1.1_spec: Resolution
attempt ended with exception: org.xml.sax.SAXParseException: Content is
not allowed in prolog.:
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom
at line: 1 column: 1
[java] Waiting for jobs to end
[java] Downloading
http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.sha1
[java] [Fatal Error] :-1:-1: Premature end of file.
[java]
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Rejecting
provider
maven2( http://maven-repo.boston.amer.iona.com/iona-release/reposito ry): No
component match was found
[java]
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: No
provider was found that could resolve the request
[java] ERROR [0033] : No suitable provider for component
com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et was found
in searchPath iona_maven_repo
[java] ERROR [0033] : Rejecting provider
maven2( http://maven-repo.boston.amer.iona.com/iona-snapshot/reposit ory):
No component match was found
[java] ERROR [0033] : Rejecting provider
maven2( http://maven-repo.boston.amer.iona.com/iona-release/reposito ry): No
component match was found
[java] JOB:
org.apache.geronimo.specs/geronimo-activation_1.1_spec(317) is still
running
[java] Command canceled

Any help would be greatly appreciated.

Thanks,
Chris
Re: Random failure resolving maven components [message #379827 is a reply to message #379823] Fri, 22 August 2008 04:26 Go to previous message
Eclipse UserFriend
Hi Chris,
This sounds like a bug that has been fixed. Can you try cleaning the
$HOME/.m2/repository completely? If that doesn't help, can you try using
Eclipse 3.4 with the latest Buckminster? (the reason for that is that
all changes there hasn't been merged to our 3.3 version yet and I'm a
bit uncertain if this particular bug fix is there).

A clarification, are you saying that all files that are corrupted ARE
parent poms or that they HAVE a parent pom?

Regards,
Thomas Hallgren

Chris Butt wrote:
> Hi,
>
> I'm getting a random failure resolving maven dependencies in a project
> that I'm working on. It is random in the fact which artifact fails, but
> the error/failure messages are the same for all failed artifacts. (I can
> provide the entire buckminster debug output if needed, but for now I
> will post the relavent snippet from the log at the end of this post) It
> appears that buckminster is internally corrupting some of the pom files
> that it is downloading. I think this because, I started with a clean
> .m2/repository, ran my build and got the failure below. After running
> the build I checked my ${HOME}/.m2/repository for the pom file
> (org/apache/geronimo/genesis/config/project-config/1.2/proje ct-config-1.2.pom)
> and that directory was empty. I looked at the copy on our internal
> maven-repo (mirror of the ibiblio central maven repo) and it was a
> perfectly valid pom/xml file. To me, it appears that the pom file is
> getting corrupted between downloading from the maven repo server and
> placing it into my local cache.
> One interesting point, I have encountered this problem with a couple of
> different maven artifacts and the pom files failing with this problem
> all have a parent relationship to an artifact/pom that I am depending
> on. (ie. the failing pom files are the parent poms of artifacts I am
> pulling in)
>
> I am using Eclipse 3.3 and the latest 1.0.0 releases of buckminster on
> the download site (ArchivedSite: 1.0.0.r09499 and Headless
> Product:1.0.0.r09472)
>
> Buckminster debug output:
>
> [java] Downloading
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.md5
>
> [java] Getting POM information for parent: org.apache.geronimo.specs
> - specs at path org/apache/geronimo/specs/specs/1.4/specs-1.4.pom
> [java] Downloading
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/specs/specs/1.4/specs-1.4.pom. md5
>
> [java] Getting POM information for parent:
> org.apache.geronimo.genesis.config - project-config at path
> org/apache/geronimo/genesis/config/project-config/1.2/projec t-config-1.2.pom
>
> [java] Downloading
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.md5
>
> [java] Getting POM information for parent: org.apache.cxf - cxf at
> path org/apache/cxf/cxf/2.0.6.1-fuse/cxf-2.0.6.1-fuse.pom
> [java] Downloading
> http://repo.open.iona.com/maven2/org/apache/cxf/cxf/2.0.6.1- fuse/cxf-2.0.6.1-fuse.pom.md5
>
> [java] Getting POM information for parent:
> org.apache.geronimo.genesis.config - project-config at path
> org/apache/geronimo/genesis/config/project-config/1.2/projec t-config-1.2.pom
>
> [java] Downloading
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.md5
>
> [java]
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Using
> resource map file:/x1/devel/uitools/trunk/build/buckminster/uitools.rmap
> [java]
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Using
> search path iona_maven_repo
> [java]
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Trying
> provider
> maven2( http://maven-repo.boston.amer.iona.com/iona-snapshot/reposit ory)
> [java] [Fatal Error] project-config-1.2.pom:1:1: Content is not
> allowed in prolog.
> [java] org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec:
> Resolution attempt ended with exception: org.xml.sax.SAXParseException:
> Content is not allowed in prolog.:
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom
> at line: 1 column: 1
> [java] org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec:
> No provider was found that could resolve the request
> [java] ERROR [0032] : No suitable provider for component
> org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec was found in
> searchPath iona_maven_repo_proxy_release
> [java] ERROR [0032] : Resolution attempt ended with exception:
> org.xml.sax.SAXParseException: Content is not allowed in prolog.:
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom
> at line: 1 column: 1
> [java]
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et:
> Rejecting provider
> maven2( http://maven-repo.boston.amer.iona.com/iona-snapshot/reposit ory):
> No component match was found
> [java]
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: Trying
> provider
> maven2( http://maven-repo.boston.amer.iona.com/iona-release/reposito ry)
> [java] [Fatal Error] project-config-1.2.pom:1:1: Content is not
> allowed in prolog.
> [java] Doing full workspace refresh
> [java] ERROR: Error while refreshing workspace: null
> [java] org.apache.geronimo.specs/geronimo-jms_1.1_spec: Resolution
> attempt ended with exception: org.xml.sax.SAXParseException: Content is
> not allowed in prolog.:
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom
> at line: 1 column: 1
> [java] Waiting for jobs to end
> [java] Downloading
> http://maven-repo.boston.amer.iona.com/maven-proxy-release/r epository/org/apache/geronimo/genesis/config/project-config/ 1.2/project-config-1.2.pom.sha1
>
> [java] [Fatal Error] :-1:-1: Premature end of file.
> [java]
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et:
> Rejecting provider
> maven2( http://maven-repo.boston.amer.iona.com/iona-release/reposito ry):
> No component match was found
> [java]
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et: No
> provider was found that could resolve the request
> [java] ERROR [0033] : No suitable provider for component
> com.iona.repository/it-repos-testutil/[2.0-M8,2.1.0.a)#Tripl et was found
> in searchPath iona_maven_repo
> [java] ERROR [0033] : Rejecting provider
> maven2( http://maven-repo.boston.amer.iona.com/iona-snapshot/reposit ory):
> No component match was found
> [java] ERROR [0033] : Rejecting provider
> maven2( http://maven-repo.boston.amer.iona.com/iona-release/reposito ry):
> No component match was found
> [java] JOB:
> org.apache.geronimo.specs/geronimo-activation_1.1_spec(317) is still
> running
> [java] Command canceled
>
> Any help would be greatly appreciated.
>
> Thanks,
> Chris
>
Previous Topic:Generating source features
Next Topic:Resolution filters
Goto Forum:
  


Current Time: Fri Oct 24 13:04:26 EDT 2025

Powered by FUDForum. Page generated in 0.04450 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top