You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/01/17 01:51:22 UTC

[GitHub] [maven-mvnd] ScathonLin opened a new issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

ScathonLin opened a new issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583


   I want to use mvnd in company intranet, we have inner private maven center repository in company, so I need to change the settings.xml. What I do is to replace the settings.xml in the maven preset in the mvnd, but after changed it, it doesn't workout when I execute `mvn clean package -Dmaven.test.skip=true -Dquickly` in cmd, and the error output is as follow:
   ![image](https://user-images.githubusercontent.com/40821407/149688617-9a24b8a2-3eb2-4f1b-b5c3-32d8ff802e07.png)
   


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] ScathonLin commented on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
ScathonLin commented on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1019664596


   > > replace the settings.xml in the maven preset in the mvnd
   > 
   > Could you provide more details about what you mean exactly ?
   
   I mean that  I replace the settings.xml in mvnd installed dir with our customized settings.xml so that I can download jars from the company intranet , but after replacement,  when I execute `mvnd clean package -Dmaven.test.skip` , It still download jars from maven centrol repo.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] mailbyms edited a comment on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
mailbyms edited a comment on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1019654909


   Same problem.
   I add a repo mirror in ${MVND_HOME}/mvn/conf/settings.xml, 
   when running `mvnd clean package`, it always download jars from central repo.
   
   
   Then I add the ${MVND_HOME}/mvn/bin to the system PATH, and run `mvn clean package`, mvn runs well.
   
   
   Well, I run `mvnd -s ${MVND_HOME}/mvn/conf/settings.xml clean package` , mvnd works as expected!
   
   OK, finally, other threads have mentioned that we should put settings.xml in ~/.m2/ , problem solved indeed.
   


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] ScathonLin commented on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
ScathonLin commented on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1019876212


   > > replace the settings.xml in the maven preset in the mvnd
   > 
   > Could you provide more details about what you mean exactly ?
   
   I find the method to resolve my problem, I can specified the `maven.settings` in the mvnd.properties!
   ```
   # The location of the maven settings file. The client normally uses default settings in {@code ~/.m2/settings.xml}.
   maven.settings=D:/devtools/apache-maven-3.6.3/conf/settings.xml
   ```


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] ScathonLin commented on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
ScathonLin commented on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1019665955


   > 
   
   Thank you!!!  I did what you said and it worked as expected!!!


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] mailbyms edited a comment on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
mailbyms edited a comment on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1019654909


   Same problem.
   I add a repo mirror in ${MVND_HOME}/mvn/conf/settings.xml, 
   when running `mvnd clean package`, it always download jars from central repo.
   
   
   Then I add the ${MVND_HOME}/mvn/bin to the system PATH, and run `mvn clean package`, mvn runs well.
   
   
   Finally, I run `mvnd -s ${MVND_HOME}/mvn/conf/settings.xml clean package` , mvnd works as expected!
   


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] ScathonLin edited a comment on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
ScathonLin edited a comment on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1019664596


   > > replace the settings.xml in the maven preset in the mvnd
   > 
   > Could you provide more details about what you mean exactly ?
   
   I mean that  I replace the settings.xml in mvnd installed dir with our customized settings.xml so that I can download jars from the company intranet , but after replacement,  when I execute `mvnd clean package -Dmaven.test.skip` , It still downloads jars from maven centrol repo.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] mailbyms commented on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
mailbyms commented on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1019654909


   Same problem.
   I add a repo mirror in ${MVND_HOME}/mvn/conf/settings.xml, 
   when running `mvnd clean package`, it always download jars from central repo.
   
   
   Then I add the ${MVND_HOME}/mvn/bin to the system PATH, and run `mvn clean package`, mvn runs well.
   


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] gnodet commented on issue #583: modified the settings.xml file in the maven preset in the mvnd, but doesn't workout

Posted by GitBox <gi...@apache.org>.
gnodet commented on issue #583:
URL: https://github.com/apache/maven-mvnd/issues/583#issuecomment-1014274602


   > replace the settings.xml in the maven preset in the mvnd
   
   Could you provide more details about what you mean exactly ?


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org