How to create a logo for mvnrepository artifact

て烟熏妆下的殇ゞ 提交于 2019-12-30 08:24:33

问题


There are a logo on artifcats in mvnrepository. Can't find the way to do that. Example: http://mvnrepository.com/artifact/org.apache.nifi/nifi-api

This is my artifact and the icon is {h}: https://mvnrepository.com/artifact/ru.sadv1r.vk/vk-parser

How to change it?


回答1:


You should be able to put a logo tag directly under the project and organization tag with the URL of your logo in your pom.xml file. For more info you can check the Maven doc here: http://maven.apache.org/archives/maven-1.x/reference/maven-model/3.0.2/maven.html

EDIT

This was true for Maven 1.x. As far as I know, Maven 2.x takes the logo from your SCM. For instance, this is one of my projects on GitHub which is also on Maven with the same logo without me putting anything on the POM:

Github: https://github.com/BotMill

Maven: http://mvnrepository.com/search?q=botmill&ref=opensearch



来源:https://stackoverflow.com/questions/40197177/how-to-create-a-logo-for-mvnrepository-artifact

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!