java - Can not find where maven local repository path in netbeans 8.0.2 is set -
in netbeans when go tools->options->java->maven panel showing maven home: bundeled maven home
but can not find in netbeans 8.0.2 maven local repository path can seen in netbeans 7.0.1
maven local repository in 7.0.1
in system .m2 folder located @ c:\users\acs\.m2
but there repository @ c:\users\acs\appdata\roaming\netbeans\8.0.2\config\preferences\org\netbeans\modules\maven
now have installed apache-maven(which have not installed on sysetm) , set maven home path c:\users\acs\apache-maven-3.3.9 in netbeans
and wanted know @ location netbeans maven local repository path is. unable find in 8.0.2
does know how find it?
using external maven installations, local repository @ (by default)
${user.home}/.m2/repository
check out maven settings or maven mini guide
you can set local repository dir path, changing
global settings
${maven.home}/conf/settings.xml
or
user settings
${user.home}/.m2/settings.xml
like here:
<settings xmlns="http://maven.apache.org/settings/1.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/settings/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <localrepository>/any_other_dir/repository</localrepository> ... </settings>
if so, project use maven , global/user settings, use repository local repository.
Comments
Post a Comment