You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/06/21 16:42:26 UTC

[GitHub] [netbeans] ganigurgah opened a new issue, #4263: Maven configuration settings.xml

ganigurgah opened a new issue, #4263:
URL: https://github.com/apache/netbeans/issues/4263

   ### Description
   
   Read maven settings.xml file from defined maven home property
   
   When change Maven Home from Tools>Options>Java>Maven, IDE continues reading maven settings.xml file from .m2 directory. it should Actually read configs from new defined Maven Home/conf/settings.xml
   
   ### Use case/motivation
   
   IDE should Actually read configs from new defined Maven Home/conf/settings.xml
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow the Apache Software Foundation's [Code of Conduct](https://www.apache.org/foundation/policies/conduct.html)
   


-- 
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: notifications-unsubscribe@netbeans.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
mbien commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1162165795

   Maven Home sets the path to maven. The `.m2` directory is shared since it is the default which also means `.m2/settings.xml` is shared too.
   
   I don't see how changing Maven Home would influence what settings.xml is read.


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] ebarboni commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
ebarboni commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1164349611

   settings.xml in maven home is supposed to be for all users on you computer. 
   you have you personal .m2 containing your settings.xml
   
   personal + global are merged but personal take precedence. Remove settings.xml from you .m2 and you respect maven way of handling settings.
   IMHO We should not alter Maven way of managing 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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] OndroMih commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
OndroMih commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1175122112

   I would change the description of this issue to allow setting path to the settings.xml globally in Maven settings (ideally also per project). IntelliJ Idea allows that and it's then possible to use different Maven settings (including a different local repository) for different projects if the settings collide (e.g. when working on projects for different clients)


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] neilcsmith-net commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1175179082

   @tbw777 did you try just adding the CLI options directly to the text field?


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] ganigurgah commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
ganigurgah commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1164114269

   There is conf/settings.xml under apache_maven directory. If I change the maven_home parameter from the IDE, I want it to read the settings from the new home too. Why am I forced to .m2 when I can change maven_home whenever I want?


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] OndroMih commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
OndroMih commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1177905851

   Adding -s option to the text field works in the sense that the build passes. But Netbeans shows a lot of errors in thr project view, because it's trying to find the dependencies in the standard local repo path where they don't exist. Repository in the services view also shows only the standard local 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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] tbw777 commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
tbw777 commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1172834715

   
   ![image](https://user-images.githubusercontent.com/15821889/176987041-ae8e6c14-9b1e-47aa-b4de-e8262ac4544b.png)
   
   Also can't use default maven settings path becouse its used by other projects. Need to have ability to change maven settings.


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] tbw777 commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
tbw777 commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1172836869

   ![image](https://user-images.githubusercontent.com/15821889/176987457-b13dafb2-fcfd-417f-a5e9-babca3864644.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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] neilcsmith-net commented on issue #4263: Maven configuration settings.xml

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1177940744

   @OndroMih The `Services` view also has an `Add repository` option that might be of use there.  Not sure if there's anything that might get this configured on a per-project level though.


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] todor-t commented on issue #4263: Maven configuration settings.xml

Posted by "todor-t (via GitHub)" <gi...@apache.org>.
todor-t commented on issue #4263:
URL: https://github.com/apache/netbeans/issues/4263#issuecomment-1449854385

   > Adding -s option to the text field works in the sense that the build passes. But Netbeans shows a lot of errors in thr project view, because it's trying to find the dependencies in the standard local repo path where they don't exist. Repository in the services view also shows only the standard local repo.
   
   Also the settings.xml file show in Project Files seems to be hard coded to ~/.m2/settings.xml
   It would make more sense to show the one configured with **-s** option.
   Additionally it would be great if -s option can be set per Project Group. Currently it's only possible to set Maven Home.
   In any case NetBeans should use internally the same settings.xml as the maven build. And show it in Project Files, so it can be viewed or edited in NetBeans if necessary.


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists