You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2008/05/30 17:32:45 UTC

[jira] Updated: (FELIX-580) Allows maven-bunde-plugin to generate a repository file outide a maven repository with absolute url

     [ https://issues.apache.org/jira/browse/FELIX-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier updated FELIX-580:
------------------------------------

    Attachment: obr-patch.patch

The attached patch allows the creation of OBRs with absolute URL on bundle file. The OBR file is not necessary deployed on a maven repository.

The contribution is twofold: 

The deploy goal can take an prefix attribute used to compute absolute URLs.
This allows deploying an OBR file with pointing on bundles located on another server (the configured deployment repository and the altDeploymentRepository attribute are generally used to deploy the OBR file, but I add an url attribute to differentiate the two potential locations). If the prefix is not specified, the process is executed normally and the url attribute is ignored.

The deploy-file goal checks if a project is attached to the build. If it is, it uses this project. This allows simplifying the usage (no more need to specify the pom file and the obr.xml file). The url attribute (giving information to upload the repository file) supports the maven syntax too.
Absolute URLs are computed if the bundleURL (that can be an absolute url) attribute and file attribute are not specified. In this case, the prefix attribute is used to computes the URL. This attribute has a default value pointing on repo1.maven.org/maven2.


> Allows maven-bunde-plugin to generate a repository file outide a maven repository with absolute url
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-580
>                 URL: https://issues.apache.org/jira/browse/FELIX-580
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>            Reporter: Clement Escoffier
>         Attachments: obr-patch.patch
>
>
> The actual maven-bunde-plugin:deploy goal generates OBR repository files but this file is necessary at the root of a maven repository where the artifacts are deployed. So, creating a new OBR often requires to duplicate bundle files. The deploy-file goal can generate this kind of OBR (with absolute URL and no duplication) but does not support multi-module project and is a pain to configure.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.