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 2007/10/28 10:14:50 UTC

[jira] Created: (FELIX-413) OBR Repository cleaning goal

OBR Repository cleaning goal
----------------------------

                 Key: FELIX-413
                 URL: https://issues.apache.org/jira/browse/FELIX-413
             Project: Felix
          Issue Type: Improvement
          Components: Maven Bundle Plugin
            Reporter: Clement Escoffier
            Priority: Minor


The maven-obr-plugin( and the maven-bundle-plugin) does not support when the local maven repository is managed "manually", specially when we delete a part of the maven repository (to check a compilation process from scratch).In these cases, if the generated repository  file contain bundles from the deleted part, the repository descriptor is no more consistent, and content references on missing resources.





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


RE: [jira] Commented: (FELIX-413) OBR Repository cleaning goal

Posted by Clement Escoffier <cl...@gmail.com>.
Hello Stuart,

As you want, I can apply it. But I want to sure you accept the contribution.

Clement

> -----Message d'origine-----
> De : Stuart McCulloch (JIRA) [mailto:jira@apache.org]
> Envoyé : mercredi 31 octobre 2007 07:58
> À : dev@felix.apache.org
> Objet : [jira] Commented: (FELIX-413) OBR Repository cleaning goal
> 
> 
>     [ https://issues.apache.org/jira/browse/FELIX-
> 413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-
> tabpanel#action_12539013 ]
> 
> Stuart McCulloch commented on FELIX-413:
> ----------------------------------------
> 
> Hi Clement, do you want me to apply this patch to the maven-obr-plugin
> in trunk or are you planning to commit it yourself?
> 
> > OBR Repository cleaning goal
> > ----------------------------
> >
> >                 Key: FELIX-413
> >                 URL: https://issues.apache.org/jira/browse/FELIX-413
> >             Project: Felix
> >          Issue Type: Improvement
> >          Components: Maven Bundle Plugin
> >            Reporter: Clement Escoffier
> >            Priority: Minor
> >         Attachments: obr-clean-patch.txt
> >
> >
> > The maven-obr-plugin( and the maven-bundle-plugin) does not support
> when the local maven repository is managed "manually", specially when
> we delete a part of the maven repository (to check a compilation
> process from scratch).In these cases, if the generated repository  file
> contain bundles from the deleted part, the repository descriptor is no
> more consistent, and content references on missing resources.
> 
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (FELIX-413) OBR Repository cleaning goal

Posted by Stuart McCulloch <st...@jayway.net>.
On 31/10/2007, Clement Escoffier <cl...@gmail.com> wrote:
>
> Hello Stuart,
>
> As you want, I can apply it. But I want to sure you accept the
> contribution.


yes, I've tested it locally by removing bundles from my local repo and
running the
clean goal and it works as advertised - I can go ahead and commit this now
if u like.

just one question - the new ObrClean.java file doesn't have a standard APL
header,
can I go ahead and add one to it? ( I see you've granted the patch, but just
wanted
to confirm )

Clement
>
> > -----Message d'origine-----
> > De : Stuart McCulloch (JIRA) [mailto:jira@apache.org]
> > Envoyé : mercredi 31 octobre 2007 07:58
> > À : dev@felix.apache.org
> > Objet : [jira] Commented: (FELIX-413) OBR Repository cleaning goal
> >
> >
> >     [ https://issues.apache.org/jira/browse/FELIX-
> > 413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-
> > tabpanel#action_12539013 ]
> >
> > Stuart McCulloch commented on FELIX-413:
> > ----------------------------------------
> >
> > Hi Clement, do you want me to apply this patch to the maven-obr-plugin
> > in trunk or are you planning to commit it yourself?
> >
> > > OBR Repository cleaning goal
> > > ----------------------------
> > >
> > >                 Key: FELIX-413
> > >                 URL: https://issues.apache.org/jira/browse/FELIX-413
> > >             Project: Felix
> > >          Issue Type: Improvement
> > >          Components: Maven Bundle Plugin
> > >            Reporter: Clement Escoffier
> > >            Priority: Minor
> > >         Attachments: obr-clean-patch.txt
> > >
> > >
> > > The maven-obr-plugin( and the maven-bundle-plugin) does not support
> > when the local maven repository is managed "manually", specially when
> > we delete a part of the maven repository (to check a compilation
> > process from scratch).In these cases, if the generated repository  file
> > contain bundles from the deleted part, the repository descriptor is no
> > more consistent, and content references on missing resources.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
>
>


-- 
Cheers, Stuart

[jira] Commented: (FELIX-413) OBR Repository cleaning goal

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

Stuart McCulloch commented on FELIX-413:
----------------------------------------

Hi Clement, do you want me to apply this patch to the maven-obr-plugin in trunk or are you planning to commit it yourself?

> OBR Repository cleaning goal
> ----------------------------
>
>                 Key: FELIX-413
>                 URL: https://issues.apache.org/jira/browse/FELIX-413
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>            Reporter: Clement Escoffier
>            Priority: Minor
>         Attachments: obr-clean-patch.txt
>
>
> The maven-obr-plugin( and the maven-bundle-plugin) does not support when the local maven repository is managed "manually", specially when we delete a part of the maven repository (to check a compilation process from scratch).In these cases, if the generated repository  file contain bundles from the deleted part, the repository descriptor is no more consistent, and content references on missing resources.

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


[jira] Updated: (FELIX-413) OBR Repository cleaning goal

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

Clement Escoffier updated FELIX-413:
------------------------------------

    Attachment: obr-clean-patch.txt

The attached patch provides a clean goal to the maven-obr-plugin. This goal analyze the OBR repository file and delete all inexistent resources (resources where the URI does not point on an existing file). The patch updates the "lastmodified" attribute only if needed.

To use it, launch the following command :
mvn org.apache.felix:maven-obr-plugin:clean




> OBR Repository cleaning goal
> ----------------------------
>
>                 Key: FELIX-413
>                 URL: https://issues.apache.org/jira/browse/FELIX-413
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>            Reporter: Clement Escoffier
>            Priority: Minor
>         Attachments: obr-clean-patch.txt
>
>
> The maven-obr-plugin( and the maven-bundle-plugin) does not support when the local maven repository is managed "manually", specially when we delete a part of the maven repository (to check a compilation process from scratch).In these cases, if the generated repository  file contain bundles from the deleted part, the repository descriptor is no more consistent, and content references on missing resources.

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


[jira] Closed: (FELIX-413) OBR Repository cleaning goal

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

Stuart McCulloch closed FELIX-413.
----------------------------------


Clean goal is available in the 1.0.0 release of the maven-obr-plugin.

> OBR Repository cleaning goal
> ----------------------------
>
>                 Key: FELIX-413
>                 URL: https://issues.apache.org/jira/browse/FELIX-413
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven OBR Plugin
>            Reporter: Clement Escoffier
>            Priority: Minor
>         Attachments: obr-clean-patch.txt
>
>
> The maven-obr-plugin( and the maven-bundle-plugin) does not support when the local maven repository is managed "manually", specially when we delete a part of the maven repository (to check a compilation process from scratch).In these cases, if the generated repository  file contain bundles from the deleted part, the repository descriptor is no more consistent, and content references on missing resources.

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


[jira] Updated: (FELIX-413) OBR Repository cleaning goal

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

Stuart McCulloch updated FELIX-413:
-----------------------------------

    Component/s:     (was: Maven Bundle Plugin)
                 Maven OBR Plugin

Moving to new component for the OBR plugin

> OBR Repository cleaning goal
> ----------------------------
>
>                 Key: FELIX-413
>                 URL: https://issues.apache.org/jira/browse/FELIX-413
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven OBR Plugin
>            Reporter: Clement Escoffier
>            Priority: Minor
>         Attachments: obr-clean-patch.txt
>
>
> The maven-obr-plugin( and the maven-bundle-plugin) does not support when the local maven repository is managed "manually", specially when we delete a part of the maven repository (to check a compilation process from scratch).In these cases, if the generated repository  file contain bundles from the deleted part, the repository descriptor is no more consistent, and content references on missing resources.

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


[jira] Resolved: (FELIX-413) OBR Repository cleaning goal

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

Clement Escoffier resolved FELIX-413.
-------------------------------------

    Resolution: Fixed

I apply the patch with some small modifications : 
- add the header
- improve javadoc, comments and error messages

> OBR Repository cleaning goal
> ----------------------------
>
>                 Key: FELIX-413
>                 URL: https://issues.apache.org/jira/browse/FELIX-413
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven OBR Plugin
>            Reporter: Clement Escoffier
>            Priority: Minor
>         Attachments: obr-clean-patch.txt
>
>
> The maven-obr-plugin( and the maven-bundle-plugin) does not support when the local maven repository is managed "manually", specially when we delete a part of the maven repository (to check a compilation process from scratch).In these cases, if the generated repository  file contain bundles from the deleted part, the repository descriptor is no more consistent, and content references on missing resources.

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