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:30:44 UTC

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

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


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.


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

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619361#action_12619361 ] 

Stuart McCulloch commented on FELIX-580:
----------------------------------------

This is available for testing in the latest 1.4.2-SNAPSHOT

> 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
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-1.4.2
>
>         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.


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

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch resolved FELIX-580.
------------------------------------

    Resolution: Fixed

Ok, I've committed a variation of this patch:

  the deploy goal now supports prefixUrl (to force absolute locations) and bundleUrl (to force an explicit location)
  it also supports obrDeploymentRepository, which will override the standard altDeploymentRepository setting.

this allows much more flexibility when deploying OBR metadata - I've also updated the remote-clean goal to match.

I've left the deploy-file goal alone for the moment, because imho it should be kept purely as a command-line variant
that doesn't read in the current pom.xml - this is what maven users typically expect, and changing it to do otherwise
is potentially confusing. (if users want to use the current pom.xml they should use the deploy goal instead)

> 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
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-1.4.2
>
>         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.


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

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-580 started by Stuart McCulloch.

> 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
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-1.4.2
>
>         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.


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

Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
     [ 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.