如何为mvnrepository工件创建徽标 [英] How to create a logo for mvnrepository artifact

查看:238
本文介绍了如何为mvnrepository工件创建徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

mvnrepository 中的人工制品上有徽标.找不到做到这一点的方法. 示例: http://mvnrepository.com/artifact/org.apache.nifi/nifi -api

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

这是我的工件,图标为{h}: https://mvnrepository.com/artifact/ru.sadv1r.vk/vk-parser

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

如何更改?

推荐答案

您应该能够将pom.xml文件中带有徽标URL的徽标标记直接放在项目和组织标记下.有关更多信息,您可以在此处查看Maven文档: http://maven.apache.org/archives/maven-1.x/reference/maven-model/3.0.2/maven.html

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

编辑

对于Maven 1.x来说确实如此.据我所知,Maven 2.x从您的SCM获得徽标.例如,这是我在GitHub上的项目之一,该项目也在Maven上具有相同的徽标,而无需在POM上放置任何内容:

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=打开搜索

这篇关于如何为mvnrepository工件创建徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆