This article applies to Nexus 2.4 and greater. See NEXUS-5525
Maven packaging types are provided by Maven plugins - these map the packaging type to extension.
Out of the box Nexus knows about commonly used packaging types, but it has no way to map unknown types. Consequentially these will not show up in search results.
To make Nexus aware of these, add a line like this to "${nexus-work}/conf/packaging2extension-mapping.properties":
my-custom-packaging=myextension
Note: You will need to create this file if it doesn't already exist. After doing this run a "repair index" task against the repositories that contain the custom packaging.
3 Comments
Rich, it should be "After doing this run a "repair index" task.". Repair, and not Update.... as update will not overwrite existing (but wrong, due to not existing properties file) entries in index...
Thanks for pointing that out, I've fixed it.
We are closing this article for comments.
If you have a support license, please contact us by submitting a support ticket.
If you do not have a support license, please use our Nexus Users List or our other free support resources.