title: OSGi how to install two identical bundle?
body: <p>I want to install two identical bundle or the same bundle twice in OSGi container. The OSGi container I am using is FUSE ESB. Here is the bundle information:</p>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;groupId&gt;com.helloworldbundle&lt;/groupId&gt;
  &lt;artifactId&gt;HelloWorldBundle&lt;/artifactId&gt;
  &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  </code></pre>
  
  <p>blueprint:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"&gt;
  
    &lt;bean id="helloworldbundlecopybean"
      class="com.helloworldbundle.HelloWorld"
      init-method="init" destroy-method="destroy"&gt;
    &lt;/bean&gt;
  
  &lt;/blueprint&gt;
  </code></pre>
  
  <p>The first installation is successful. When I try to install it again, it failed. Then I make a copy of the project and modify it:</p>
  
  <p>change project folder name to HelloWorldBundleCopy</p>
  
  <p>change the artifact to </p>
  
  <pre><code>&lt;artifactId&gt;HelloWorldBundleCopy&lt;/artifactId&gt;
  </code></pre>
  
  <p>change bean id to </p>
  
  <pre><code>&lt;bean id="helloworldbundlecopybeancopy"
  </code></pre>
  
  <p>But still I cannot install the modified bundle:</p>
  
  <pre><code>Error executing command: Error installing bundles:
  Unable to install bundle /home/li/Documents/Java/HelloWorldBundleCopy/target/HelloWorldBundleCpoy-1.0.0-SNAPSHOT.jar
  </code></pre>
  
  <p>update to my question:</p>
  
  <p>Here is my scenario:</p>
  
  <p>I have three hosts: Host1, Host2 and Host3</p>
  
  <p>FUSE ESB OSGi container is installed in Host3.
  I need to run a service, for example HelloWorld on both Host1 and Host2. And this service is registered with FUSE ESB which is on Host3.</p>
  
  <p>That is why I need to register the same bundle twice with FUSE ESB.</p>
  
  <p>Here is my question:</p>
  
  <ol>
  <li><p>Is it possible to run a bundle outside the container, like running HelloWorld bundle on one host but register it to FUSE ESB on a different host? And how to do it? The experiment I have done before is to register a service bundle to FUSE ESB on the same machine by: </p>
  
  <p>FuseESB:karaf@root> install file:/home/li/Documents/Java/HelloWorldBundle/target/HelloWorldBundle-1.0.0-SNAPSHOT.jar</p></li>
  </ol>
  
  <p>2.How to modify the existing maven project to enable install it again without creating a new maven project?</p>