> This message has the only known fix that I could make work.  Add it to the 
> topmost pom.xml in your project heirarchy and it should hide the bad repo.

Which message do you mean? The snippet from Gert, suggesting to add 
dependencyManagement?

After all, this is an issue, which would have to concern anybody, who tries to 
learn Servicemix by means of the tutorial. I just want to follow the tutorial 
and cannot believe that my problem concerning the example in 
http://servicemix.apache.org/31-starting-a-new-project.html is of such special 
type, since I used the newest (prominent linked) Servicemix files (ver. 3.3.1) 
and Maven files(ver. 2.2.1) and didn't do and try anything special...


-------- Original-Nachricht --------
> Datum: Tue, 20 Oct 2009 11:55:12 -0600
> Von: Chris Custine <[email protected]>
> An: [email protected]
> Betreff: Re: Build/Compilation Failure and Warnings

> Unfortunately, the dependencyManagement declaration is not even enough.
> Maven resolves the older dependency anyway and adds its repository entries
> to its internal list even if it is excluded or specifically set in
> dependencyManagement.  These fixes keep it from being used for
> compilation,
> etc. but do not remove its repository declaration from the internal list.
> This message has the only known fix that I could make work.  Add it to the
> topmost pom.xml in your project heirarchy and it should hide the bad repo.
> Of course you will still have to clean your maven repo before you try it
> as
> well.
> 
> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td25602583
> 
> Chris
> --
> Chris Custine
> FUSESource :: http://fusesource.com
> My Blog :: http://blog.organicelement.com
> Apache ServiceMix :: http://servicemix.apache.org
> Apache Directory Server :: http://directory.apache.org
> 
> 
> On Tue, Oct 20, 2009 at 11:24 AM, Gert Vanthienen
> <[email protected]
> > wrote:
> 
> > Jonathan,
> >
> > You should be able to use a <dependencyManagement> section in your
> > root pom.xml to enforce the use of jencks 2.2 instead of 2.1 as a
> > workaround until the fixes get released.  Something like
> > <dependencyManagement>
> >    <dependencies>
> >      <dependency>
> >          <groupId>org.jencks</groupId>
> >          <artifactId>jencks</artifactId>
> >          <version>2.2/version>
> >      </dependency>
> >  </dependencies>
> > </dependencyManagement>
> >
> > Regards,
> >
> > Gert Vanthienen
> > ------------------------
> > Open Source SOA: http://fusesource.com
> > Blog: http://gertvanthienen.blogspot.com/
> >
> >
> >
> > 2009/10/20 Jonathan Bender <[email protected]>:
> > > Indeed, the .jar-file is an HTML-File.
> > > I deleted all files in ...\.m2\repository and run: mvn install (from
> > Project-Directory) - without success as the output shows. Any idea, what
> to
> > do next?
> > >
> > > Excerpt of output:
> > >
> > > [INFO] Scanning for projects...
> > > [INFO] Reactor build order:
> > > [INFO]   Tutorial :: Camel
> > > [INFO]   Tutorial :: Camel SU
> > > [INFO]   Tutorial :: Camel SA
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.2.3/jbi-maven-plugin-3.2.3.pom
> > > [INFO] Unable to find resource
> > 'org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.2.3' in repository
> > apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/servicemix/tooling/jbi-maven-plugin/3.2.3/jbi-maven-plugin-3.2.3.pom
> > > 4/6K 6/6K 6K downloaded  (jbi-maven-plugin-3.2.3.pom)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/tooling/tooling/3.2.3/tooling-3.2.3.pom
> > > [INFO] Unable to find resource
> > 'org.apache.servicemix.tooling:tooling:pom:3.2.3' in repository apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/servicemix/tooling/tooling/3.2.3/tooling-3.2.3.pom
> > > 2/2K 2K downloaded  (tooling-3.2.3.pom)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/parent/3.2.3/parent-3.2.3.pom
> > > [INFO] Unable to find resource
> 'org.apache.servicemix:parent:pom:3.2.3'
> > in repository apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/servicemix/parent/3.2.3/parent-3.2.3.pom
> > > 4/7K 7/7K 7K downloaded  (parent-3.2.3.pom)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/servicemix/3.2.3/servicemix-3.2.3.pom
> > > [INFO] Unable to find resource
> > 'org.apache.servicemix:servicemix:pom:3.2.3' in repository apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/servicemix/servicemix/3.2.3/servicemix-3.2.3.pom
> > > 4/89K 8/89K 12/89K 12/89K 15/89K 17/89K 21/89K 25/89K 26/89K 30/89K
> > 31/89K 32/89K 35/89K 36/89K 40/89K 41/89K 45/89K 47/89K 49/89K 53/89K
> 56/89K
> > 57/89K 61/89K 62/89K 66/89K 70/89K 72/89K 75/89K 79/89K 83/89K 87/89K
> 88/89K
> > 89/89K 89K downloaded  (servicemix-3.2.3.pom)
> > > Downloading:
> >
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/apache/apache/1/apache-1.pom
> > > [INFO] Unable to find resource 'org.apache:apache:pom:1' in repository
> > servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-incubating-repository/org/apache/apache/1/apache-1.pom
> > > [INFO] Unable to find resource 'org.apache:apache:pom:1' in repository
> > apache-incubating
> (http://people.apache.org/repo/m2-incubating-repository)
> > > Downloading:
> > http://repository.codehaus.org/org/apache/apache/1/apache-1.pom
> > > [INFO] Unable to find resource 'org.apache:apache:pom:1' in repository
> > codehaus (http://repository.codehaus.org)
> > > Downloading:
> > http://download.java.net/maven/1/org.apache/poms/apache-1.pom
> > > [INFO] Unable to find resource 'org.apache:apache:pom:1' in repository
> > java.net (http://download.java.net/maven/1)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/apache/1/apache-1.pom
> > > [INFO] Unable to find resource 'org.apache:apache:pom:1' in repository
> > apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> > http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom
> > > 3/3K 3K downloaded  (apache-1.pom)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.2.3/jbi-maven-plugin-3.2.3.jar
> > > [INFO] Unable to find resource
> > 'org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.2.3' in
> > repository apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/servicemix/tooling/jbi-maven-plugin/3.2.3/jbi-maven-plugin-3.2.3.jar
> > > 4/109K 8/109K 9/109K 13/109K 17/109K 19/109K 23/109K 27/109K 29/109K
> > 33/109K 36/109K 40/109K 44/109K 46/109K 50/109K 54/109K 58/109K 60/109K
> > 64/109K 66/109K 70/109K 74/109K 74/109K 78/109K 79/109K 80/109K 84/109K
> > 88/109K 89/109K 93/109K 94/109K 98/109K 102/109K 104/109K 105/109K
> 108/109K
> > 109/109K 109K downloaded  (jbi-maven-plugin-3.2.3.jar)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom
> > > [INFO] Unable to find resource
> > 'org.apache.maven:maven-plugin-api:pom:2.0.1' in repository apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom
> > > [INFO] Unable to find resource
> > 'org.apache.maven:maven-plugin-api:pom:2.0.1' in repository
> > servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-incubating-repository/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom
> > > [INFO] Unable to find resource
> > 'org.apache.maven:maven-plugin-api:pom:2.0.1' in repository
> > apache-incubating
> (http://people.apache.org/repo/m2-incubating-repository)
> > > Downloading:
> >
> http://repository.codehaus.org/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom
> > > [INFO] Unable to find resource
> > 'org.apache.maven:maven-plugin-api:pom:2.0.1' in repository codehaus (
> > http://repository.codehaus.org)
> > > Downloading:
> >
> http://download.java.net/maven/1/org.apache.maven/poms/maven-plugin-api-2.0.1.pom
> > > [INFO] Unable to find resource
> > 'org.apache.maven:maven-plugin-api:pom:2.0.1' in repository java.net (
> > http://download.java.net/maven/1)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom
> > > 643/643b 643b downloaded  (maven-plugin-api-2.0.1.pom)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/maven/maven/2.0.1/maven-2.0.1.pom
> > > [INFO] Unable to find resource 'org.apache.maven:maven:pom:2.0.1' in
> > repository apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/apache/maven/maven/2.0.1/maven-2.0.1.pom
> > > [INFO] Unable to find resource 'org.apache.maven:maven:pom:2.0.1' in
> > repository servicemix-m2-repo (
> > http://svn.apache.org/repos/asf/servicemix/m2-repo)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-incubating-repository/org/apache/maven/maven/2.0.1/maven-2.0.1.pom
> > > [INFO] Unable to find resource 'org.apache.maven:maven:pom:2.0.1' in
> > repository apache-incubating (
> > http://people.apache.org/repo/m2-incubating-repository)
> > > Downloading:
> >
> http://repository.codehaus.org/org/apache/maven/maven/2.0.1/maven-2.0.1.pom
> > > [INFO] Unable to find resource 'org.apache.maven:maven:pom:2.0.1' in
> > repository codehaus (http://repository.codehaus.org)
> > > Downloading:
> > http://download.java.net/maven/1/org.apache.maven/poms/maven-2.0.1.pom
> > > [INFO] Unable to find resource 'org.apache.maven:maven:pom:2.0.1' in
> > repository java.net (http://download.java.net/maven/1)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.1/maven-2.0.1.pom
> > > 4/11K 8/11K 11/11K 11K downloaded  (maven-2.0.1.pom)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/maven/maven-project/2.0.1/maven-project-2.0.1.pom
> > > [INFO] Unable to find resource
> 'org.apache.maven:maven-project:pom:2.0.1'
> > in repository apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > >
> > > .....
> > >
> > >
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar
> > > [INFO] Unable to find resource
> > 'org.codehaus.plexus:plexus-compiler-api:jar:1.5.3' in repository apache
> (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar
> > > 4/19K 8/19K 9/19K 13/19K 17/19K 19/19K 19K downloaded
> >  (plexus-compiler-api-1.5.3.jar)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar
> > > [INFO] Unable to find resource
> > 'org.codehaus.plexus:plexus-compiler-manager:jar:1.5.3' in repository
> apache
> > (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar
> > > 4/5K 5/5K 5K downloaded  (plexus-compiler-manager-1.5.3.jar)
> > > Downloading:
> >
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar
> > > [INFO] Unable to find resource
> > 'org.codehaus.plexus:plexus-compiler-javac:jar:1.5.3' in repository
> apache (
> > http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> > > Downloading:
> >
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar
> > > 4/13K 8/13K 12/13K 13/13K 13/13K 13K downloaded
> >  (plexus-compiler-javac-1.5.3.jar)
> > > [INFO] [compiler:compile {execution: default-compile}]
> > > [INFO] Compiling 1 source file to D:\...\Maven
> > Projects\Tutorial_Camel\tutorial-camel-su\target\classes
> > > [INFO]
> > ------------------------------------------------------------------------
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > ------------------------------------------------------------------------
> > > [INFO] Compilation failure
> > >
> > > error: error reading
> >
> C:\...\.m2\repository\org\springframework\spring-dao\2.0.6\spring-dao-2.0.6.jar;
> > error in opening zip file
> > > error: error reading
> >
> C:\...\.m2\repository\org\springframework\spring-support\2.0.6\spring-support-2.0.6.jar;
> > error in opening zip file
> > > error: error reading
> > C:\...\.m2\repository\xerces\xerces\2.0.2\xerces-2.0.2.jar; error in
> opening
> > zip file
> > >
> > > [INFO]
> > ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > ------------------------------------------------------------------------
> > > [INFO] Total time: 12 minutes 12 seconds
> > > [INFO] Finished at: Tue Oct 20 18:04:37 CEST 2009
> > > [INFO] Final Memory: 24M/43M
> > > [INFO]
> > ------------------------------------------------------------------------
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > -------- Original-Nachricht --------
> > >> Datum: Mon, 19 Oct 2009 19:00:25 -0400
> > >> Von: "Greg Lucas" <[email protected]>
> > >> An: [email protected]
> > >> Betreff: Re: Build/Compilation Failure and Warnings
> > >
> > >> Jonathan Bender wrote:
> > >> > @Greg: I'm not sure, if I got you right: Do you mean the
> > download-links
> > >> > of e.g. the pom-files are invalid, so that necessary pom-files are
> > >> > missing, which leads to the build error? And does Jenks 2.2 contain
> > the
> > >> > components servicemix-common, servicemix-eip, servicemix-jms plus
> the
> > >> > correct download-links?
> > >>
> > >> Not quite. Assuming you haven't already deleted it, take a look at
> one
> > of
> > >> the files it complained about, e.g.
> > >>
> > >>
> >
> C:\...\.m2\repository\org\springframework\spring-dao\2.0.6\spring-dao-2.0.6.jar
> > >>
> > >> I suspect if you look at that file with a text editor it is actually
> an
> > >> HTML file, not a jar. The issue we had with jencks 2.1 is that its
> pom
> > has
> > >>
> > >> a reference to a repository URL that is no longer valid but that does
> > not
> > >> result in an HTTP 404 when maven tries to download from it. So rather
> > than
> > >>
> > >> giving up and trying another repo, maven happily downloads the HTML
> > >> content served up and saves it as the desired artifact.
> > >>
> > >> The first step as Gert suggested is to delete or rename your local
> repo
> > >> and try again to see if you end up in the same state.
> > >>
> > >> --
> > >> Greg
> > >
> > > --
> > > Neu: GMX DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
> > > http://portal.gmx.net/de/go/dsl02
> > >
> >

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

Reply via email to