Jonathan,

Which version of ServiceMix are you targeting?  These artifact
versions seem to indicate you're running this with ServiceMix 3.2.x as
the target version.  Is it intentional to target an older version or
were you trying to get things running for 3.4.x or Servicemix 4.x?

Anyway, you seem to have a lot of invalid poms in this build though.
Could you try moving aside your local maven repository (in
<user.home>/.m2/repository) and then trying again?  If would be good
if you could give us an excerpt of the logs you'll get when running
this again with a clean repo.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/10/19 Jonathan Bender <[email protected]>:
> Hello,
>
> I'm learning Servicemix by going through the tutorials. Chapter 1 and 2 are 
> successfully done, but right now, I have 2 problems and I'm grateful for any 
> advice:
>
> 1. General question: Even if the examples from chapter 1 and 2 worked, I 
> always get warnings of the type "Its dependencies (if any) will NOT be 
> available to the current build." and "Unable to find resource...". Is that a 
> problem, which may even be the reason for my next issue?
>
> 2. The servicemix-camel example in chapter 3 just won't work: I followed the 
> steps for creating the tutorial-camel-su and tutorial-camel-sa projects and 
> set the dependency in the SA's pom.xml-file.
> When building the projects with the command "mvn install" from parent 
> directory, I get the error message. Since I'm not sure, which part of the 
> build log-output you need, here is the whole log output:
>
>
> D:\...\Maven Projects\Tutorial_Camel>mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Tutorial :: Camel
> [INFO]   Tutorial :: Camel SU
> [INFO]   Tutorial :: Camel SA
> [WARNING] POM for 'org.springframework:spring-beans: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-core:pom:2.0.6: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 'org.springframework:spring-context: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-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 'xerces:xerces:pom:2.0.2:runtime' is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Tutorial :: Camel
> [INFO]    task-segment: [install]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing D:\...\Maven Projects\Tutorial_Camel\pom.xml to 
> C:\...\.m2\repository\org\apache\servicemix\tutorial\camel\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT.pom
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Tutorial :: Camel SU
> [INFO]    task-segment: [install]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources,
> i.e. build is platform dependent!
> [INFO] Copying 1 resource
> Downloading: 
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in 
> repository apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> Downloading: 
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' 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/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in 
> repository apache-incubating 
> (http://people.apache.org/repo/m2-incubating-repository)
> Downloading: 
> http://repository.codehaus.org/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in 
> repository codehaus (http://repository.codehaus.org)
> Downloading: 
> http://download.java.net/maven/1/org.apache.santuario/poms/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in 
> repository java.net (http://download.java.net/maven/1)
> Downloading: 
> http://ws.zones.apache.org/repository2//org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in 
> repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2/)
> Downloading: 
> http://repo1.maven.org/maven2//org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in 
> repository maven2 (http://repo1.maven.org/maven2/)
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in 
> repository central (http://repo1.maven.org/maven2)
> Downloading: 
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> Downloading: 
> http://svn.apache.org/repos/asf/servicemix/m2-repo/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository servicemix-m2-repo 
> (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> Downloading: 
> http://people.apache.org/repo/m2-incubating-repository/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository apache-incubating 
> (http://people.apache.org/repo/m2-incubating-repository)
> Downloading: 
> http://repository.codehaus.org/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository codehaus (http://repository.codehaus.org)
> Downloading: 
> http://download.java.net/maven/1/bouncycastle/poms/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository java.net (http://download.java.net/maven/1)
> Downloading: 
> http://ws.zones.apache.org/repository2//bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2/)
> Downloading: 
> http://repo1.maven.org/maven2//bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository maven2 (http://repo1.maven.org/maven2/)
> Downloading: 
> http://repo1.maven.org/maven2/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in 
> repository central (http://repo1.maven.org/maven2)
> [WARNING] POM for 'commons-logging:commons-logging:pom:1.0.4:provided' is 
> invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 
> 'org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:pom:1.1.1:provided'
>  is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 
> 'org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:pom:1.0.1:provided' is 
> invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 'commons-pool:commons-pool:pom:1.3:provided' is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [WARNING] POM for 'commons-collections:commons-collections:pom:2.1:provided' 
> is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [INFO] [jbi:generate-depends-file {execution: default-generate-depends-file}]
> [INFO] Created: D:\...\Maven 
> Projects\Tutorial_Camel\tutorial-camel-su\target\classes\META-INF\maven\dependencies.properties
> [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: 21 seconds
> [INFO] Finished at: Mon Oct 19 20:29:20 CEST 2009
> [INFO] Final Memory: 24M/43M
> [INFO] 
> ------------------------------------------------------------------------
> --
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>

Reply via email to