You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Benoît Thiébault <th...@artenum.com> on 2013/10/27 22:27:22 UTC

[Maven-bundle-plugin] Lock when deploying a bundle to an OBR

Hi everyone,

I'm trying to deploy my bundles to an OBR I set up.

So I added to the super POM of my project the following configuration in the <plugins> section:

<plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>deploy</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <remoteOBR>repository.xml</remoteOBR>
        <altDeploymentRepository>my.obr.id::default::http://obr.mydomain.com</altDeploymentRepository>
        <ignoreLock/>
    </configuration>
</plugin>

First, is this the correct way to do it?
Or should I rather add something in the <pluginManagement> settings, which already contain:

<plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <version>2.3.7</version>
    <extensions>true</extensions>
</plugin>

When performing the mvn deploy command, I have the following error message:
[INFO] --- maven-bundle-plugin:2.3.7:deploy (default-deploy) @ org-test-bundle ---
[INFO] Using alternate deployment repository my.obr.id::default::http://obr.mydomain.com
[INFO] LOCK http://obr.mydomain.com/repository.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

I have updated the settings.xml file with login/password information for the OBR.

Is it an authentication issue or a problem in my BND configuration?

Thanks for your help

Ben



Re: [Maven-bundle-plugin] Lock when deploying a bundle to an OBR

Posted by Benoît Thiébault <th...@artenum.com>.
Hi,

I found the solution, it was an authentication problem on the server. So nothing OSGi or Maven related.

Kind regards,

Ben

Le 27 oct. 2013 à 22:27, Benoît Thiébault a écrit :

> Hi everyone,
> 
> I'm trying to deploy my bundles to an OBR I set up.
> 
> So I added to the super POM of my project the following configuration in the <plugins> section:
> 
> <plugin>
>    <groupId>org.apache.felix</groupId>
>    <artifactId>maven-bundle-plugin</artifactId>
>    <executions>
>        <execution>
>            <goals>
>                <goal>deploy</goal>
>            </goals>
>        </execution>
>    </executions>
>    <configuration>
>        <remoteOBR>repository.xml</remoteOBR>
>        <altDeploymentRepository>my.obr.id::default::http://obr.mydomain.com</altDeploymentRepository>
>        <ignoreLock/>
>    </configuration>
> </plugin>
> 
> First, is this the correct way to do it?
> Or should I rather add something in the <pluginManagement> settings, which already contain:
> 
> <plugin>
>    <groupId>org.apache.felix</groupId>
>    <artifactId>maven-bundle-plugin</artifactId>
>    <version>2.3.7</version>
>    <extensions>true</extensions>
> </plugin>
> 
> When performing the mvn deploy command, I have the following error message:
> [INFO] --- maven-bundle-plugin:2.3.7:deploy (default-deploy) @ org-test-bundle ---
> [INFO] Using alternate deployment repository my.obr.id::default::http://obr.mydomain.com
> [INFO] LOCK http://obr.mydomain.com/repository.xml
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> 
> I have updated the settings.xml file with login/password information for the OBR.
> 
> Is it an authentication issue or a problem in my BND configuration?
> 
> Thanks for your help
> 
> Ben
> 
>