[
https://issues.apache.org/jira/browse/FELIX-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Clement Escoffier updated FELIX-553:
------------------------------------
Attachment: remote-clean.patch
I implement a very simple maven goal to clean a remote OBR file.
This goal analyse the acutal repository and try to access every mentionned
resources. If a file does not exist, the OBR resource is deleted. Before the
delete, the user have to accept the modification. I add this interaction to
avoid the timeout effects. It does not delete artifacts only their OBR
descriptions.
The goal uses a non standard argument named repositoryPrefix. This argument
specified the prefix to use in order to download resources from the repository.
Then, the file are accessed with the following url:
the-prefix-url/obr-resource-uri
Notice that this must be a valid URL.
Here is a simple example:
mvn org.apache.felix:maven-bundle-plugin:remote-clean
-DaltDeploymentRepository=blabla::blabla::blabla -DremoteOBR=enable
-DrepositoryPrefix=the-prefix-url
> allow cleaning a remote OBR
> ---------------------------
>
> Key: FELIX-553
> URL: https://issues.apache.org/jira/browse/FELIX-553
> Project: Felix
> Issue Type: New Feature
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.0, maven-bundle-plugin-1.4.1
> Environment: any
> Reporter: Gerodolle
> Assignee: Stuart McCulloch
> Priority: Minor
> Fix For: maven-bundle-plugin-1.4.2
>
> Attachments: remote-clean.patch
>
>
> there is a "clean" goal on the local repository, which suppresses the
> references to non-existent files.
> It would be nice to have a similar feature for a remote repository (managed
> with "mvn deploy -DremoteOBR") .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.