The default given in the generator will work with a fresh install. I you
look at the definitions of the virtual repositories used in the
generator, you will see they include all the relevant local repositories.
The settings.xml within $M2_HOME/conf is the default and a fallback for
when there is no settings.xml within ~/.m2. So you can use only 1 in
$M2_HOME and if the user has no settings within his home .m2, maven will
use the settings located in conf.
Noam
eyal edri wrote:
My question is, how do you config a default settings.xml for a fresh
install of maven+artifactory?
if i will use the generated settings.xml file will it work?
also, does it suffice to put settings.xml in $M2_HOME/conf?
or does it have to be in every ~/.m2 dir as well?
Eyal.
On Sun, Mar 7, 2010 at 10:15 AM, Noam Y. Tenne <[email protected]
<mailto:[email protected]>> wrote:
Hi Eyal
The maven settings generator uses only virtual repository
references, not local.
HTH,
Noam
eyal edri wrote:
I think there is a bug in the "Home/Maven Settings".
when you create the default settings.xml the name of the
repositories are"
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-releases</name>
<url>http://server.com:8081/artifactory*/libs-releases*</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshots</name>
<url>http://server.com:8081/artifactory/*libs-snapshots*</url>
</repository>
</repositories>
while the real address of the repo (when you browse them) has a
-local suffix.
<distributionManagement>
<repository>
<id>server.com <http://server.com></id>
<name>server.com-releases</name>
<url>http://server.com:8081/artifactory/libs-releases-local</url>
</repository>
</distributionManagement>
--
Eyal Edri
------------------------------------------------------------------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval Try the new software
tools for yourself. Speed compiling, find bugs proactively, and
fine-tune applications for parallel performance. See why Intel
Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/artifactory-users
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Artifactory-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/artifactory-users
--
Eyal Edri
------------------------------------------------------------------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users