Can't install examples
vitoing.info Apr 26, 2013 5:35 AMI have installed Jboss Fuse version jboss-fuse-6.0.0.redhat-024.
I have configured etc/org.ops4j.pax.url.mvn.cfg in order to point the maven settings.xml file and maven local repository.
And, being behind a company proxy, I have enabled the flag org.ops4j.pax.url.mvn.proxySupport to true.
org.ops4j.pax.url.mvn.settings=C:/VITO/Programmi/apache-maven-3.0.4/conf/settings.xml
org.ops4j.pax.url.mvn.localRepository=C:/Documents and Settings/ingrassia/.m2/repository
org.ops4j.pax.url.mvn.proxySupport=true
I can compile and install examples with my local maven installation, the same I'd like to use in karaf.
During compile maven downloads all the necessary dependencies (passing through the proxy).
Then, from the same shell windows command, I run karaf and try to install the example (rest)
osgi:install -s fab:mvn:org.jboss.fuse.examples/rest/6.0.0.redhat-024
but fuse gets hanged in downloading some artifacts (although the artifact is available in the local maven repository!!).
This is the beginning of the traces about this scenario:
10:57:50,825 | DEBUG | l Console Thread | MavenResolverImpl | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Resolving artifact: org.apache.servicemix.specs:specs:pom:1.9.0^M
10:57:50,825 | DEBUG | l Console Thread | MavenResolverImpl | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Resolved artifact: org.apache.servicemix.specs:specs:pom:1.9.0 on fusesource.ea (http://repo.fusesource.com/nexus/content/groups/ea, releases)^M
[omissis]
10:57:50,841 | DEBUG | l Console Thread | MavenResolverImpl | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Resolving artifact: org.apache.servicemix:servicemix-pom:pom:5^M
10:57:50,841 | DEBUG | l Console Thread | Aether | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Verifying availability of C:\Documents and Settings\ingrassia\.m2\repository\org\apache\servicemix\servicemix-pom\5\servicemix-pom-5.pom from [repos0 (http://repo1.maven.org/maven2, releases+snapshots), repos1 (http://repo.fusesource.com/nexus/content/repositories/releases, releases+snapshots), repos2 (http://repo.fusesource.com/nexus/content/groups/ea, releases+snapshots), repos3 (http://svn.apache.org/repos/asf/servicemix/m2-repo, releases+snapshots), repos4 (http://repository.springsource.com/maven/bundles/release, releases+snapshots), repos5 (http://repository.springsource.com/maven/bundles/external, releases+snapshots), repos6 (http://scala-tools.org/repo-releases, releases+snapshots), fusesource.m2 (http://repo.fusesource.com/nexus/content/repositories/releases, releases), fusesource.ea (http://repo.fusesource.com/nexus/content/groups/ea, releases), central (http://repo1.maven.org/maven2, releases), java.net.2 (http://download.java.net/maven/2, releases), servicemix (http://svn.apache.org/repos/asf/servicemix/m2-repo, releases+snapshots)]^M
10:57:50,841 | DEBUG | l Console Thread | MavenResolverImpl | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Artifact downloading: org.apache.servicemix:servicemix-pom:pom:5 on repos0 (http://repo1.maven.org/maven2, releases+snapshots)^M
10:57:50,856 | DEBUG | l Console Thread | Aether | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2^M
10:57:55,366 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint started.^M
10:57:55,366 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint done.^M
10:58:09,395 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint started.^M
10:58:09,395 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint done.^M
10:58:11,954 | DEBUG | l Console Thread | MavenResolverImpl | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Metadata downloaded: org.apache.servicemix:servicemix-pom:pom:5 on repos0 (http://repo1.maven.org/maven2, releases+snapshots)^M
10:58:11,954 | DEBUG | l Console Thread | MavenResolverImpl | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Artifact downloading: org.apache.servicemix:servicemix-pom:pom:5 on repos1 (http://repo.fusesource.com/nexus/content/repositories/releases, releases+snapshots)^M
10:58:11,954 | DEBUG | l Console Thread | Aether | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Using connector WagonRepositoryConnector with priority 0 for http://repo.fusesource.com/nexus/content/repositories/releases^M
10:58:14,404 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint started.^M
10:58:14,404 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint done.^M
10:58:19,413 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint started.^M
10:58:19,413 | DEBUG | heckpoint Worker | MessageDatabase | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint done.^M
[omissis]
at the end I get a connection timeout (after a few minuts!)
Caused by: java.net.ConnectException: Connection timed out: connect^M
at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.6.0_33]^M
and in the karaf console
JBossFuse:karaf@root> osgi:install -s fab:mvn:org.jboss.fuse.examples/rest/6.0.0.redhat-024
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle fab:mvn:org.jboss.fuse.examples/rest/6.0.0.redhat-024
This is my list of remote repository (I didn't change it, so it's the default)
org.ops4j.pax.url.mvn.repositories= \
http://repo1.maven.org/maven2@id=maven.central.repo, \
http://repo.fusesource.com/nexus/content/repositories/releases@id=fusesource.release.repo, \
http://repo.fusesource.com/nexus/content/groups/ea@id=fusesource.ea.repo, \
http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix.repo, \
http://repository.springsource.com/maven/bundles/release@id=springsource.release.repo, \
http://repository.springsource.com/maven/bundles/external@id=springsource.external.repo, \
http://scala-tools.org/repo-releases@id=scala.repo
My question is: why karaf search for an artifact that is available in local repository and downloaded just before by maven during example installation?
And, Is any remote repository missing in my configuration or can't Karaf manage proxy configuration?
thanks
Vito