cstamas commented on issue #14082:
URL: https://github.com/apache/maven/issues/14082#issuecomment-7041447574

   IMHO, the "problem" sits between the keyboard and monitor, and is not in 
Maven itself. In essence, you want to use modern Maven in a "Maven 2 way", 
where local repository was just a bunch of files... I will not try to explain 
how bad this idea is, but this is and was always possible with any Maven 3.x 
version. Look into documentation before you push nonsensical pull requests.
   
   There are two LRM implementations, the "enhanced" (Maven 3, that does all 
these "bad things" to cover your back) and "simple" that is basically how Maven 
2 worked ("bunch of files, no idea which came from where, YOLO mode").
   
   To use "simple" LRM, all you need is configure Maven (any Maven, since 3.0 
onward...). In example below the `foo` goal does not matter, as I only want to 
show you Maven debug output. Normal case:
   
   ```
   $ mvn -X foo
   ....
   [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
/home/cstamas/.m2/repository-oss
   ```
   
   YOLO case (make "simple" carry higher priority than "enhanced", so a number 
that is higher than 10):
   
   ```
   $ mvn -X foo -Daether.priority.SimpleLocalRepositoryManager=15
   ...
   [DEBUG] Using manager SimpleLocalRepositoryManager with priority 15.0 for 
/home/cstamas/.m2/repository-oss
   ```
   
   But really, you should instead figure out what your _real_ problem is, 
instead to do this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to