Home > Back-end >  The use of maven: I'm from the SNAPSHOT download a lot of packages, and modify its part of the
The use of maven: I'm from the SNAPSHOT download a lot of packages, and modify its part of the

Time:09-16

I modified a version for x. 0.0 - the snapshot bag code, then the idea of debugging, can really into my modified code

But I use the MVN package packaging, MVN sometimes from remote repositories to pull a snapshot of the original package, package failure that causes me to modify,
Online said that the snapshot is a snapshot, will check the update at any time, but I want to look at the local modification after no longer to down its jar packages from the Internet, I need to use git manually merge changes online, and keep my changes,

How to break this? In addition I manually change the snapshot version number, what for?

CodePudding user response:

Maven basic function no calls in the source code version management (git), should be this project has been submitted to the maven central, you in other references to the project project, the maven update cause to download

Now that you're going to use your own code, modify the groupId, artifactId just into your own project,

CodePudding user response:

Check the pom file, see whether have & lt; Scm> Set, remove the

CodePudding user response:

reference tianfang reply: 3/f
maven basic function no calls in the source code version management (git), should be this project has been submitted to the maven central, you in other references to the project project, the maven update cause to download

Now that you're going to use your own code, modify the groupId, artifactId just into your own project,


He is not to download the source code to me, he is to download the remote maven Treasury's latest SNAPSHOT of the jar package, because the SNAPSHOT is refreshed from time to time

CodePudding user response:

reference 5 floor bwangel reply:
Quote: refer to the third floor tianfang response:
maven basic function no calls in the source code version management (git), should be this project has been submitted to the maven central, you in other references to the project project, has carried on the maven update cause to download

Now that you're going to use your own code, modify the groupId, artifactId just into your own project,


He is not to download the source code to me, he is to download the remote maven Treasury's latest SNAPSHOT of the jar package, because the SNAPSHOT is flushed


Information posted on the console

CodePudding user response:

reference 5 floor bwangel reply:
Quote: refer to the third floor tianfang response:
maven basic function no calls in the source code version management (git), should be this project has been submitted to the maven central, you in other references to the project project, has carried on the maven update cause to download

Now that you're going to use your own code, modify the groupId, artifactId just into your own project,


He is not to download the source code to me, he is to download the remote maven Treasury's latest SNAPSHOT of the jar package, because the SNAPSHOT is flushed


I hope the following article helpful to you

https://www.cnblogs.com/huang0925/p/5169624.html

CodePudding user response:

Want to points, how to solve?

CodePudding user response:

Know, estimation is I don't have a MVN clean install your changes to the local cache, check when using maven to pack it so remote warehouse was not updated,

Thank you upstairs two Suggestions,
  • Related