I have an OSGi bundle that was built using Maven by another team. The POM file declares its packaging as "bundle" and uses the Apache Felix plugin.

I need to deploy this artifact to a local Maven repository (Nexus) so that it can be used by our internal projects.

I have used the deploy:deploy-file target to deploy the bundle to the repository, just as you would with a standard JAR file and this works without error. I extracted the embedded POM from the bundle and passed that on the command line, so the command line was:

mvn deploy:deploy-file -Dfile=3rdpartybundle.jar -DpomFile=pom.xml -DrepositoryId=internal -Durl=http://internalserver/nexus


The issue is that when I deploy it like this, the packaging is set to bundle and as a result the name of the artifact in the repository ends up with a .bundle extension, instead of a .jar extension.

Now, we cannot figure out how to declare it as a dependency. If we declare it like this:

        &lt;dependency&gt;
            &lt;groupId&gt;...&lt;/groupId&gt;
            &lt;artifactId&gt;...&lt;/artifactId&gt;
            &lt;version&gt;...&lt;/version&gt;
            &lt;type&gt;bundle&lt;/type&gt;
        &lt;/dependency&gt;


We get an error stating that the dependency cannot be resolved. The interesting thing is that the GAV coordinates in the error message actually has "jar" as the value for the type of the dependency even though we set it as "bundle".

If we change the dependency to:

        &lt;dependency&gt;
            &lt;groupId&gt;...&lt;/groupId&gt;
            &lt;artifactId&gt;...&lt;/artifactId&gt;
            &lt;version&gt;...&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
        &lt;/dependency&gt;


We get the exact same unresolved dependency error.

So how are you supposed to deploy an artifact packaged as a bundle to a Maven repository, so that it can be used as a compile time dependency for another project?

Thanks


Question: How to i update an iPhone 4 with iOS 4.3.5 offline
Answer: If you want to do an offline upgrade iOS to iOS 7.1, follow the steps in this guide

http://echo.com.ng/2013/howto-apple-ios-7-offline-manual-upgrade