Thanks for the suggestins guys, but still no luck :-(

1) Tried subdirectory of /conf
2) The above code snippet

       String uh = System.getProperty("user.home");
        System.out.println("user.home is " + uh);
        java.io.File m2 = new java.io.File(uh, ".m2");
        java.io.File settings = new java.io.File(m2, "settings_test.xml");
        settings.createNewFile();

user.home is \\FILESERVER\Users\<myLoginId>

however putting the settings.xml in \\FILESERVER\Users\<mylogin>\.m2\ 
<file://\\FILESERVER\Users\<mylogin>\.m2\
 >user.home=\\FILESERVER\Users\pthomas> next to the test
file settings_test.xml still doesn't work !

Also tried subdirectory of /conf

Any more ideas - this is normally something that just works, I must be
missing something simple here ?


On 21/03/06, Milos Kleint <[EMAIL PROTECTED]> wrote:
>
> afaik teh algorithm is this:
> String uh = System.getproperty("user.home");
> File m2 = new File(uh, ".m2");
> File settings = new File(m2, "settings.xml");
>
> so probably maven is looking at some other place for your settings
> than you expect it to..
>
> Milos
>
> On 3/21/06, Pete <[EMAIL PROTECTED]> wrote:
> > Hi there I'm used to Maven2 picking up the settings.xml from
> >
> > C:\Documents and Settings\<login>\.m2
> >
> > when in a windows environment, however I'm using Maven2 at a new company
> > now, and for some reason the user's settings.xml doesn't seem to be
> being
> > picked up.
> >
> >
> > I have
> >
> > <profiles>
> >  <profile>
> >    <id>developer_me</id>
> >    <properties>
> >      <JBossHome>D:/java/jboss-4.0/server/default/deploy</JBossHome>
> >    </properties>
> >   </profile>
> >  </profiles>
> >
> >   <activeProfiles>
> >       <activeProfile>developer_me</activeProfile>
> >   </activeProfiles>
> >
> > yet when I do
> >
> > mvn projecthelp:active-profiles
> >
> > the profile isn't listed and the properties are unset.
> >
> > Any idea how I can verify where Maven2 is looking for the user's
> > settings.xml.
> >
> > I did create the .m2 directory and settings.xml manually.
> >
> > PS. The conf/settings.xml is working.
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to