最简单的方法在服务器上创建Maven仓库:

huangapple go评论67阅读模式
英文:

Most simple way to create maven repository at server

问题

I have a problem - 我有一个问题 - I've got some java code at my computer in 3 or 4 projects. This code is used in a lot of places in other projects. - 我的计算机上有一些Java代码,分布在3或4个项目中。这些代码在其他项目中的许多地方都在使用。Not i'm using this cod that - 现在我正在使用这个代码 - I'm adding to dependencies groupId, artifactId and version, then add manually in IntelliJ IDEA place with this files pom. - 我正在添加依赖项的groupId、artifactId和版本,然后在IntelliJ IDEA中手动添加这些文件的pom。In future it will be used by more people than me, so i need to share this files (on my physical server). - 将来将有更多的人使用它,所以我需要共享这些文件(在我的物理服务器上)。So i need send it to server but not as a jar only as a java code. - 所以我需要将它发送到服务器,但不是只作为一个JAR文件,而是作为Java代码。I need same effect as in for example in Junit. - 我需要与JUnit中的效果相同的效果。I add dependencies, and i can use TestCase class. - 我添加依赖项,然后我可以使用TestCase类。How can I made it in easiest way ??? - 如何以最简单的方式做到这一点?

英文:

I have problem- I'v got some java code at my computer in 3 or 4 projects. This code is used in a lot of places in other projects.Not i'm using this cod that- I'm adding to dependencies groupId, artifactId and version, then add manually in inteliji idea place with this files pom. In future it will be used by more people than me, so i need to share this files(on my physical server).So i need send it to server but not as a jar only as a java code.I need same effect as in for example in Junit. I add dependencies, and i can use TestCase class . How can I made it in easiest way ???

答案1

得分: 1

如果您想共享您构建的JAR文件,您可以设置一个Nexus或Artifactory服务器并在那里部署它们。

其他人可以使用这些仓库来下载这些构件。

英文:

If you want to share jars that you have build, you can set up a Nexus or Artifactory server and deploy them there.

Other people can use these repositories to download the artifacts.

huangapple
  • 本文由 发表于 2020年8月7日 23:07:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/63304452.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定