Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将GitHub项目放在maven上?_Git_Maven_Github_Maven Central - Fatal编程技术网

如何将GitHub项目放在maven上?

如何将GitHub项目放在maven上?,git,maven,github,maven-central,Git,Maven,Github,Maven Central,简单明了 我在Github.com上有一个开源项目,人们要求我添加maven支持。 因为我对maven不是很熟悉,所以我真的不知道该怎么办 如何为我的项目添加maven支持?如何将项目上载到maven central 另一个问题:既然可以很方便地在github上克隆我的项目,为什么人们希望我的项目在maven上?关于Mavenizing现有Eclipse项目的一般指导原则 您可以按照以下指南对项目进行专业化: 人们希望它出现在Maven中,因为: 他们希望它被mavenized,以便从Mave

简单明了

我在Github.com上有一个开源项目,人们要求我添加maven支持。 因为我对maven不是很熟悉,所以我真的不知道该怎么办

如何为我的项目添加maven支持?如何将项目上载到maven central


另一个问题:既然可以很方便地在github上克隆我的项目,为什么人们希望我的项目在maven上?

关于Mavenizing现有Eclipse项目的一般指导原则

您可以按照以下指南对项目进行专业化:

人们希望它出现在Maven中,因为:


他们希望它被mavenized,以便从Maven central获得对用户非常方便的依赖性。如果我只想使用你的项目,我不想克隆它。可以在github上提供项目的位置吗?链接?这就是我正在谈论的项目:
Create an empty Maven project of the same type as your original project (i.e. jar, war…) using the appropriate archetype.
cd into the project directory that you just created and which now has a pom.xml file for your project.
Run mvn eclipse:eclipse -DdownloadSources=true in this directory.
Import the Maven project into Eclipse
Move the original project’s source code and resources into the new Maven project structure.
Get all your classpath dependencies into your pom.xml