Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Any way to use project specific settings.xml?

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@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



Back to the top