Yeah, that's what we do now. It becomes problematic when we share the project with other parties. Plus, it seems to be frowned upon to put repositories in poms.
Thanks though. On Thu, Sep 20, 2012 at 8:58 PM, Igor Fedorenko <i...@ifedorenko.com> wrote: > No, this is not possible and no plans to adds this functionality. > > The whole point of settings.xml is to provide configuration specific to > build environment, which cannot be part of project source tree. Things > like proxy settings and mirrors, that tend to vary from one computer to > the next. If your company projects must access certain repositories, > pom.xml is the place capture this. > > -- > Regards, > Igor > > > On 12-09-20 5:47 PM, Alex Chaphiv wrote: > >> Hi, >> >> I know you can do this manually with Preferences->Maven->User Settings, >> but I was hoping for something more automated. >> >> Ideally I would like to be able to have my project as: >> >> src/ >> pom.xml >> settings.xml (this declares a mirror to my company's internal repository) >> >> And inside pom.xml perhaps there would be something like: >> >> <build> >> <pluginManagement> >> <plugins> >> <!-- This doesn't exist --> >> <plugin> >> <groupId>org.eclipse.m2e</**groupId> >> <artifactId>m2e-config</**artifactId> >> <version>1.0.0</version> >> <configuration> >> <settings>settings.xml</**settings> >> </configuration> >> </plugin> >> </plugins> >> </pluginManagement> >> </build> >> >> The end result would be as if eclipse called every maven command with >> mvn -s settings.xml ... >> >> >> >> ______________________________**_________________ >> m2e-users mailing list >> m2e-users@eclipse.org >> https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users> >> >> ______________________________**_________________ > m2e-users mailing list > m2e-users@eclipse.org > https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users> >
_______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users