You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Chris Custine <ch...@gmail.com> on 2009/09/24 23:56:57 UTC

Re: Problem building apache-servicemix-3.3.1 from source - spring-support-2.0.6.jar

This is a recent thing that is happening.  We have an older dependency on
jencks, and jencks pom specifies a maven repository url that we no longer
maintain.  Unfortunately, a domain squatter now owns servicemix.org and is
serving up html in place of requested jar files.  You will have to clean out
your maven repo, or at least grep for "trucks" or some unique text like that
from the http://servicemix.org web page and remove any found files.  No, I
am not kidding.  :-(

We'll have to fix the SMX 3 branches of this issue, but in the mean time,
you can try adding this to your higher level poms to fake maven out of
attempting the bad url.  If you see that "error opening zip file" message
this is most likely the cause.

       <!--This is a hack to short circuit the jencks 2.1 problem with
servicemix.org repo
           It can probably be deleted if we update to jencks 2.2 in
ServiceMix 3.3.x -->
       <repository>
         <id>servicemix-repo</id>
         <name>ServiceMix Repository</name>
         <url>http://svn.apache.org/repos/asf/servicemix/m2-repo/</url>
         <releases>
           <enabled>true</enabled>
         </releases>
         <snapshots>
           <enabled>false</enabled>
         </snapshots>
       </repository>


Let me know if this works out for you.

Thanks,
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 Thu, Sep 24, 2009 at 2:59 PM, Brian Nielsen <br...@sweetxml.org> wrote:

> Hi ServiceMixers
>
> Since I've had problems running some of the samples I wanted to build it
> all from source, but unfortunately I've run it some other problems. Any
> Ideas as howto work around this?
>
> Sysinfo
>
> /opt/apache-maven-2.2.1/bin/mvn -version
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.5.0_09
> Java home: /opt/jdk1.5.0_09/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.27.30-170.2.82.fc10.x86_64" arch: "i386"
> Family: "unix"
>
> I ends with the error
>
> error: error reading
> /home/<user>/.m2/repository/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar;
> error in opening zip file
>
> and before the following warnings come
>
> Here's the warnings
> [WARNING] POM for 'commons-pool:commons-pool:pom:1.3:runtime' is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 'org.springframework:spring-dao:pom:2.0.6:runtime' is
> invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 'org.springframework:spring-support:pom:2.0.6:runtime' is
> invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 'commons-collections:commons-collections:pom:2.1:runtime'
> is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 'commons-pool:commons-pool:pom:1.2:runtime' is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 'xerces:xerces:pom:2.0.2:runtime' is invalid.
> Its dependencies (if any) will NOT be available to the current build.
> Downloading:
> http://repository.apache.org/snapshots/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> [INFO] Unable to find resource
> 'org.springframework:spring-support:jar:2.0.6' in repository
> apache.snapshots (http://repository.apache.org/snapshots)
> Downloading:
> http://svn.apache.org/repos/asf/servicemix/m2-repo//org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> [INFO] Unable to find resource
> 'org.springframework:spring-support:jar:2.0.6' in repository servicemix.m2 (
> http://svn.apache.org/repos/asf/servicemix/m2-repo/)
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> [INFO] Unable to find resource
> 'org.springframework:spring-support:jar:2.0.6' in repository
> apache.incubating (http://people.apache.org/repo/m2-incubating-repository)
> Downloading:
> http://repository.codehaus.org/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> [INFO] Unable to find resource
> 'org.springframework:spring-support:jar:2.0.6' in repository codehaus (
> http://repository.codehaus.org)
> Downloading:
> http://download.java.net/maven/1/org.springframework/jars/spring-support-2.0.6.jar
> [INFO] Unable to find resource
> 'org.springframework:spring-support:jar:2.0.6' in repository java.net (
> http://download.java.net/maven/1)
> Downloading:
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> [INFO] Unable to find resource
> 'org.springframework:spring-support:jar:2.0.6' in repository
> servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> [INFO] Unable to find resource
> 'org.springframework:spring-support:jar:2.0.6' in repository
> apache-incubating (http://people.apache.org/repo/m2-incubating-repository)
> Downloading:
> http://servicemix.org/m2-repo/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> 8K downloaded  (spring-support-2.0.6.jar)
>
>
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '1559863a375499e55c9adee606c51a69e546b69a'; remote = '<!DOCTYPE' - RETRYING
>                      Downloading:
> http://servicemix.org/m2-repo/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
> 8K downloaded  (spring-support-2.0.6.jar)
>
>
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '1559863a375499e55c9adee606c51a69e546b69a'; remote = '<!DOCTYPE' - IGNORING
>
>
>
> Brgds
> Brian
>
>

Re: Problem building apache-servicemix-3.3.1 from source - spring-support-2.0.6.jar

Posted by Brian Nielsen <br...@sweetxml.org>.
Hi Chris

Thanx. I'm a total Maven Noob, but I managed to use the pom-snip into 
the pom in the src-folder (and deleting the corrupt spring jar file) and 
got it running for some while, but it terminated the listing below. From 
your mail is sounded like it wouldn't even help to pull from trunk, is 
that right and that earlier releases will behave the same?

[INFO] [remote-resources:process {execution: 
default}]                                                                                                                                                                     

[WARNING] Invalid project model for artifact 
[commons-pool:commons-pool:1.2]. It will be ignored by the remote 
resources 
Mojo.                                                                                             

[WARNING] Invalid project model for artifact [xerces:xerces:2.0.2]. It 
will be ignored by the remote resources 
Mojo.                                                                                                       

[INFO] [servicemix-build:copy {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] skip non existing resourceDirectory 
/home/<user>/Download/apache-servicemix-3.3.1/src/common/servicemix-components/target/generated
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 117 source files to 
/home/<user>/Download/apache-servicemix-3.3.1/src/common/servicemix-components/target/classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 87 resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Not compiling test sources
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: 
/home/<user>/Download/apache-servicemix-3.3.1/src/common/servicemix-components/target/servicemix-components-3.3.1.jar
[INFO] [install:install {execution: default-install}]
[INFO] Installing 
/home/<user>/Download/apache-servicemix-3.3.1/src/common/servicemix-components/target/servicemix-components-3.3.1.jar 
to 
/home/<user>/.m2/repository/org/apache/servicemix/servicemix-components/3.3.1/servicemix-components-3.3.1.jar
[INFO] 
------------------------------------------------------------------------
[INFO] Building ServiceMix :: Service Engines
[INFO]    task-segment: [install]
[INFO] 
------------------------------------------------------------------------
[INFO] artifact org.apache.servicemix:servicemix-build: checking for 
updates from apache.snapshots
[INFO] artifact org.apache.servicemix:servicemix-build: checking for 
updates from central
[INFO] snapshot org.apache.servicemix:servicemix-build:1.1-SNAPSHOT: 
checking for updates from apache.snapshots
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.servicemix:servicemix-build

Reason: Error getting POM for 'org.apache.servicemix:servicemix-build' 
from the repository: Failed to resolve artifact, possibly due to a 
repository list that is not appropriately equipped for this artifact's 
metadata.
  org.apache.servicemix:servicemix-build:pom:1.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://repository.apache.org/snapshots)

 for project org.apache.servicemix:servicemix-build


[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 4 minutes 53 seconds
[INFO] Finished at: Fri Sep 25 19:37:08 CEST 2009
[INFO] Final Memory: 75M/216M
[INFO] 
------------------------------------------------------------------------




Brgds Brian


Chris Custine wrote:
> This is a recent thing that is happening.  We have an older dependency on
> jencks, and jencks pom specifies a maven repository url that we no longer
> maintain.  Unfortunately, a domain squatter now owns servicemix.org and is
> serving up html in place of requested jar files.  You will have to clean out
> your maven repo, or at least grep for "trucks" or some unique text like that
> from the http://servicemix.org web page and remove any found files.  No, I
> am not kidding.  :-(
>
> We'll have to fix the SMX 3 branches of this issue, but in the mean time,
> you can try adding this to your higher level poms to fake maven out of
> attempting the bad url.  If you see that "error opening zip file" message
> this is most likely the cause.
>
>        <!--This is a hack to short circuit the jencks 2.1 problem with
> servicemix.org repo
>            It can probably be deleted if we update to jencks 2.2 in
> ServiceMix 3.3.x -->
>        <repository>
>          <id>servicemix-repo</id>
>          <name>ServiceMix Repository</name>
>          <url>http://svn.apache.org/repos/asf/servicemix/m2-repo/</url>
>          <releases>
>            <enabled>true</enabled>
>          </releases>
>          <snapshots>
>            <enabled>false</enabled>
>          </snapshots>
>        </repository>
>
>
> Let me know if this works out for you.
>
> Thanks,
> 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 Thu, Sep 24, 2009 at 2:59 PM, Brian Nielsen <br...@sweetxml.org> wrote:
>
>   
>> Hi ServiceMixers
>>
>> Since I've had problems running some of the samples I wanted to build it
>> all from source, but unfortunately I've run it some other problems. Any
>> Ideas as howto work around this?
>>
>> Sysinfo
>>
>> /opt/apache-maven-2.2.1/bin/mvn -version
>> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
>> Java version: 1.5.0_09
>> Java home: /opt/jdk1.5.0_09/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux" version: "2.6.27.30-170.2.82.fc10.x86_64" arch: "i386"
>> Family: "unix"
>>
>> I ends with the error
>>
>> error: error reading
>> /home/<user>/.m2/repository/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar;
>> error in opening zip file
>>
>> and before the following warnings come
>>
>> Here's the warnings
>> [WARNING] POM for 'commons-pool:commons-pool:pom:1.3:runtime' is invalid.
>>
>> Its dependencies (if any) will NOT be available to the current build.
>> [WARNING] POM for 'org.springframework:spring-dao:pom:2.0.6:runtime' is
>> invalid.
>>
>> Its dependencies (if any) will NOT be available to the current build.
>> [WARNING] POM for 'org.springframework:spring-support:pom:2.0.6:runtime' is
>> invalid.
>>
>> Its dependencies (if any) will NOT be available to the current build.
>> [WARNING] POM for 'commons-collections:commons-collections:pom:2.1:runtime'
>> is invalid.
>>
>> Its dependencies (if any) will NOT be available to the current build.
>> [WARNING] POM for 'commons-pool:commons-pool:pom:1.2:runtime' is invalid.
>>
>> Its dependencies (if any) will NOT be available to the current build.
>> [WARNING] POM for 'xerces:xerces:pom:2.0.2:runtime' is invalid.
>> Its dependencies (if any) will NOT be available to the current build.
>> Downloading:
>> http://repository.apache.org/snapshots/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> [INFO] Unable to find resource
>> 'org.springframework:spring-support:jar:2.0.6' in repository
>> apache.snapshots (http://repository.apache.org/snapshots)
>> Downloading:
>> http://svn.apache.org/repos/asf/servicemix/m2-repo//org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> [INFO] Unable to find resource
>> 'org.springframework:spring-support:jar:2.0.6' in repository servicemix.m2 (
>> http://svn.apache.org/repos/asf/servicemix/m2-repo/)
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> [INFO] Unable to find resource
>> 'org.springframework:spring-support:jar:2.0.6' in repository
>> apache.incubating (http://people.apache.org/repo/m2-incubating-repository)
>> Downloading:
>> http://repository.codehaus.org/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> [INFO] Unable to find resource
>> 'org.springframework:spring-support:jar:2.0.6' in repository codehaus (
>> http://repository.codehaus.org)
>> Downloading:
>> http://download.java.net/maven/1/org.springframework/jars/spring-support-2.0.6.jar
>> [INFO] Unable to find resource
>> 'org.springframework:spring-support:jar:2.0.6' in repository java.net (
>> http://download.java.net/maven/1)
>> Downloading:
>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> [INFO] Unable to find resource
>> 'org.springframework:spring-support:jar:2.0.6' in repository
>> servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo)
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> [INFO] Unable to find resource
>> 'org.springframework:spring-support:jar:2.0.6' in repository
>> apache-incubating (http://people.apache.org/repo/m2-incubating-repository)
>> Downloading:
>> http://servicemix.org/m2-repo/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> 8K downloaded  (spring-support-2.0.6.jar)
>>
>>
>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
>> '1559863a375499e55c9adee606c51a69e546b69a'; remote = '<!DOCTYPE' - RETRYING
>>                      Downloading:
>> http://servicemix.org/m2-repo/org/springframework/spring-support/2.0.6/spring-support-2.0.6.jar
>> 8K downloaded  (spring-support-2.0.6.jar)
>>
>>
>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
>> '1559863a375499e55c9adee606c51a69e546b69a'; remote = '<!DOCTYPE' - IGNORING
>>
>>
>>
>> Brgds
>> Brian
>>
>>
>>     
>
>