Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342705 - Packaging type eclipse-repository should produce files with a specific file name extension instead of ".zip"
Summary: Packaging type eclipse-repository should produce files with a specific file n...
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-13 08:20 EDT by Holger Oehm CLA
Modified: 2021-04-28 16:54 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Oehm CLA 2011-04-13 08:20:27 EDT
Build Identifier: 

The build result of eclipse-repository is a zipped p2 repository with the file name extension ".zip".
It would be preferrable to have a distinguishable file name extension for p2 repositories, say ".p2repo".

With a distinguishable file name extension it is much easier to find p2 repositories in a enterprise repository (e.g. Nexus).

Just like a .jar file is a zip file with java metadata (MANIFEST.MF), a .p2repo file is a zip file with p2 metadata (content.xml). (Or think about .war files, etc.)

Also the file name extension usually corresponds to the maven packaging type: The eclipse-repository packaging type produces more than a simple zip archive.

Reproducible: Always

Steps to Reproduce:
1. Create a repository with the packaging type eclipse-repository
Comment 1 Eric Jain CLA 2011-04-13 13:52:15 EDT
Following that logic, shouldn't all bundles get a .p2jar extension etc?

I'm not familiar with Nexus, but if all repositories had file names like xyz-repository.zip, would that still be difficult to fine?
Comment 2 Tobias Oberlies CLA 2011-04-14 08:35:49 EDT
(In reply to comment #1)
> I'm not familiar with Nexus, but if all repositories had file names like
> xyz-repository.zip, would that still be difficult to fine?

A classifier suffix for the full zipped p2 repository (i.e. including aritifacts) is already planned[1]: 

"The complete p2 metadata and artifact repository is zipped into an 'assembly' attached artifact". 

In the advanced search of Nexus, the classifier can be used as criterion (just like the file extension), so maybe this could be an option?


[1] https://docs.sonatype.org/display/TYCHO/Discussion+on+eclipse-repository+packaging+type+clean-up
Comment 3 Archimedes Trajano CLA 2013-03-03 22:21:18 EST
I don't think it is needed because the repository project should only target the creation of a zip file.

For the other types like a source.zip, the classifier can be present.
Comment 4 Tobias Oberlies CLA 2013-03-04 04:06:21 EST
I don't think that "zipped p2 repositories" will get a use wide enough to justify its own file extension.

The specific problem (search in Nexus) could also be solved locally, e.g. by adding attributes to the Nexus search ("archives containing xyz") or even a completely separate zipped p2 repository search mode. A dedicated search would anyway be needed if you want to be able to search inside the zipped p2 repositories.