About your questions
Questions: Is this going to work? Does "org.ops4j.pax.url.mvn.repositories" support repos with authentication? Is there a way to test connectivity with this repo?
Yes, "org.ops4j.pax.url.mvn.repositories" support it, as we have internal restrict repo and we configure it this way like
To test the connectivity with restrict repo I think you can
configure your maven settings.xml, add
and create a maven project on your local machine which need download artifacts from restrict repo, to see if it works.
Question: Does the mvn: URL in servicemix allow for classifier? i.e., Can I install a bundle, via mvn URL, that has a classifier? Example please?
actually the syntax is
Here is an example I can come up with
Edited by: ffang on Nov 11, 2010 2:22 AM
Edited by: ffang on Nov 11, 2010 2:23 AM
Thanks I got this working.
For the record (help someone else), I did have an issue with maven 2.x, repository, deployment, classifiers, metadata and snapshots.
I implemented my bundle by adding a "osgi" maven classifier. I then deploying the bundle to Nexus (the repository). When the bundle is created in Nexus the timestamp/build-number is NOT getting added, because the artifact's classifier isn't included in the repository's metadata (maven-metadata.xml).
When I did a karaf@root> install mvn:..., org.ops4j.pax.url.mvn would use the timestamp/build-number in the metadata and no jar existed.
java.lang.RuntimeException: URL [mvn:com.inc.headoffice/project/1.9-SNAPSHOT/jar/osgi] could not be resolved.
Note: fix in maven 3.0.